-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kustomize integration #56
Comments
@annp1987 - Should we assign this bug to you? |
@johnsonj , |
/cc annp1987 |
Thanks @annp1987 ! Let me know if you have any questions/want an early review |
Thanks @johnsonj. Could you have a early review for kustomize integration at https://github.com/annp1987/kubebuilder-declarative-pattern/tree/intergrate_with_krusty? |
Hey @annp1987 - sorry for the delay. Your change looks right on track. I don't have any major structural comments. I'm excited to see this one land! This likely goes without saying, but you will need to keep track of the original filesystem paths and use them when you write to the in memory filesystem ( |
Thanks @johnsonj. I've just create a PR. Could you take a look at it? |
#66 added the initial support for this feature. We still need tests, documentation, and potentially more feature work for this to be closed out. |
There's additional open issues highlighted in @atoato88's comment |
Adding further to @atoato88's comment, if an operator has Kustomize enabled (for example CoreDNS-operator to include the |
As it is today, the transformation process relies on being able to parse everything as a Kubernetes object. For example, we have a private registry transform that will go patch all of the image registries. That's something we would like to keep. We could make the file loading code more flexible: kubebuilder-declarative-pattern/pkg/patterns/declarative/pkg/manifest/objects.go Line 292 in bbf1fb2
For example, we could change Objects to hold onto parsable Kubernetes types as it does today and keep the rest as plaintext/blobs. type Objects struct {
Items []*Object
Blobs [][]byte
} |
/assign |
@johnsonj how do we know when to change the Objects or when to keep as blobs? |
@somtochiama If it can be parsed into an unstructured.Unstructured then it should be an Object. Otherwise, Blob |
@rajansandeep Are you suggesting that we do https://github.com/kubernetes-sigs/kubebuilder-declarative-pattern/blob/master/pkg/patterns/declarative/reconciler.go#L136 before building the deployment objects? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi Everyone,
Currently, we can adding labels, changing namespace of manifest before apply them. But I'm not sure there is possible to manipulate manifest from
kustomize build
then apply it? Do you have any advice?The text was updated successfully, but these errors were encountered: