Open frimik opened 1 year ago
Hi @frimik!
kapp has some default labelScopingRules and ownershipRules to inject it's labels into resources. By default, kapp should inject the labels into the spec.template.metadata.labels
of a statefulset (https://github.com/carvel-dev/kapp/blob/3e2edfa9f83878c16679ac9e37daff6f94c14e03/pkg/kapp/config/default.go#L272), unless you have the kapp.k14s.io/disable-default-ownership-label-rules
annotation present (if this is not the case, could you share your StatefulSet yaml?). I tried creating a StatefulSet and I could see the labels under spec.template.metadata.labels
.
Service has its
selector
modified by kapp:Leading to the Service not having any matching Pods.
Whereas StatefulSet does not have its
spec.template.metadata.labels
modified:Why is the selector modified at all?
What steps did you take:
What happened:
What did you expect:
One of:
Anything else you would like to add:
I would expect kapp to "just work" for passing something this simple throuigh it.
Environment:
kapp --version
):kapp version 0.54.3
/etc/os-release
):Ubuntu 22.04.1 LTS
kubectl version
)v1.22.17
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible" 👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.