kubernetes-sigs / kubebuilder-declarative-pattern

A toolkit for building declarative operators with kubebuilder
Apache License 2.0
254 stars 84 forks source link

spec.patches on CR are pruned #236

Closed atoato88 closed 1 year ago

atoato88 commented 2 years ago

What happened:

Values of "spec.patches" in CR are pruned even if controller is set with declarative.WithObjectTransform(addon.ApplyPatches).

What you expected to happen:

"spec.patches" values aren't pruned.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?: NONE

Environment:

atoato88 commented 2 years ago

As of now, CRD version is v1, so we need some additional parameters for CRD manifest, by that, we preserve spec.pathes values, I guess. Maybe this issue is related. :thinking:

/assign

atoato88 commented 2 years ago

Is it needed to add markers witten at this document?

k8s-triage-robot commented 1 year ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 1 year ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

atoato88 commented 1 year ago

/close This issue related with #237 (already closed), but that PR is closed. So I close this issue.

k8s-ci-robot commented 1 year ago

@atoato88: Closing this issue.

In response to [this](https://github.com/kubernetes-sigs/kubebuilder-declarative-pattern/issues/236#issuecomment-1386498105): >/close >This issue related with #237 (already closed), but that PR is closed. >So I close this issue. Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.