Skip to content
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

Get rid of dependency on kustomize in controller #1234

Merged
merged 1 commit into from
Dec 31, 2019
Merged

Conversation

alenkacz
Copy link
Contributor

@alenkacz alenkacz commented Dec 30, 2019

What this PR does / why we need it:
Kustomize was quite heavy dependency for ONLY adding annotations, labels and namespaces. This PR just assigns those directly on runtime.Objects (Unstructured). This also fixes cryptic errors we were getting from kustomize.

Fixes #1180
Fixes #1179
Fixes #1163

Signed-off-by: Alena Varkockova <varkockova.a@gmail.com>
Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
"sigs.k8s.io/kustomize/k8sdeps/kunstruct"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@kensipe kensipe merged commit c3bf32b into master Dec 31, 2019
@kensipe kensipe deleted the av/kustomize-remove branch December 31, 2019 23:06
ANeumann82 pushed a commit that referenced this pull request Feb 13, 2020
Signed-off-by: Alena Varkockova <varkockova.a@gmail.com>
Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants