Operator behaving differently running in cluster compared to out of cluster #6678
Labels
language/go
Issue is related to a Go operator project
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
triage/support
Indicates an issue that is a support question.
Milestone
Type of question
General operator-related help
Question
I am creating an operator to work with a CI/CD system. When I run it locally, it creates pods as expected. But when I deploy it to the cluster, it fails to check if a pod has already been created and will create multiple pods of the same "task".
Pipeline Spec:
Locally using make run:
In Cluster after pushing docker image and using make deploy:
What did you do?
To run individual tasks in a pipeline, I wrote a function which uses DFS to go through a tree data structure and checks the status of child pods before generating a new pod for that
The operator then loops over the generated list of pods and creates them in the cluster.
What did you expect to see?
The correct amount of pods being created.
What did you see instead? Under which circumstances?
Multiple pods being created and the pipeline not being validated.
Environment
Operator type:
/language go
Kubernetes cluster type:
$ operator-sdk version
1.33
$ go version
1.22
$ kubectl version
1.29
Additional context
Current branch for bug: https://github.com/coillteoir/bramble/tree/develop
In the execution group of controllers.
It occurs in both Kind and MiniKube
The text was updated successfully, but these errors were encountered: