Open vigneshp826 opened 2 days ago
@vigneshp826: The label(s) language/ansible
cannot be applied, because the repository doesn't have them.
@everettraven sorry for tagging you, but appreciate anyone help here to move forward with my production rollout.
Type of question
General operator-related help
Question
What did you do?
I have playbook which creates statefulset for every CR creation against my operator (for simplicity, removed all other k8 resource creation stuffs). The playbook is getting executed repeatedly as per the replica size upon the CR creation. For example, when the size of the replica is 3, the playbook is executing 2 times.
Setting "watchDependentResources: False", stops this pattern and executes only one time but it is not a better solution in my use case.
What did you expect to see?
Plays should run only once to avoid wasting resource before reconciliation period kicks in.
What did you see instead? Under which circumstances?
Multiple execution of K8 resource creation based on the status output of each loop.
Environment
Operator type:
/language ansible
$operator-sdk version
operator-sdk version: "v1.31.0", commit: "e67da35ef4fff3e471a208904b2a142b27ae32b1", kubernetes version: "1.26.0", go version: "go1.19.11", GOOS: "linux", GOARCH: "amd64"
$ kubectl version
Client Version: v1.28.1 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.25.4
Additional context
Playbook