You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior (what you expected to happen): Periodically error occurred while shell-operator trying to handle something
Actual behavior (what actually happened): Error does not occur, have enough info about problem
Steps to reproduce:
Deploy shell-operator & crd
Additional info:
Tried to enable debug log level but it doesn't help (only logs which entities are processing, each time error message meets in different places)
Environment:
Shell-operator version: v1.0.10
Kubernetes version: v1.22.12
Installation type (kubectl apply, helm chart, etc.): helm chart
Anything else we should know?:
Hook script
#!/usr/bin/env bash
set -e
echoerr() {
printf "ERROR. %s\n" "$*" >&2;
}
##### HOOK #####
if [[ $1 == "--config" ]] ; then
cat <<EOF
configVersion: v1
onStartup: 1
kubernetes:
- name: OnDiscoveryEvent
apiVersion: custom.group/v1
kind: Discovery
executeHookOnEvent:
- Added
- Deleted
- name: OnServiceEvent
apiVersion: ""
kind: Service
executeHookOnEvent:
- Added
- Modified
- Deleted
EOF
else
for context in $(jq -c '.[]' "$BINDING_CONTEXT_PATH"); do
echo "Just log"
done
fi
Custom resource definition
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: .
name: discoveries.custom.group
spec:
# group name to use for REST API: /apis//
group: custom.group
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis///
plural: discoveries
# singular name to be used as an alias on the CLI and for display
singular: discovery
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: Discovery
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: true
# The schema for validating custom objects
schema:
openAPIV3Schema:
type: object
Expected behavior (what you expected to happen): Periodically error occurred while shell-operator trying to handle something
Actual behavior (what actually happened): Error does not occur, have enough info about problem
Steps to reproduce:
Additional info:
Tried to enable debug log level but it doesn't help (only logs which entities are processing, each time error message meets in different places)
Environment:
Anything else we should know?:
Hook script
Custom resource definition
Logs
The text was updated successfully, but these errors were encountered: