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

helm: finer control over what is going to be deployed #818

Merged
merged 1 commit into from
Jan 3, 2022

Conversation

jkremser
Copy link
Member

  • Respect the coredns values (coredns.deployment.enabled & coredns.rbac.create)
  • control whether crds (k8gb.deployCrds) and/or rbac (k8gb.deployRbac) for k8gb should be deployed

Main reason for this change is that I would like to add a terratest for a new feature I am working on (optimisation 2 described in #720) and currently it is not possible to deploy the k8gb AGAIN in the same cluster to a different namespace. I know that the behavior might be undef, because two controllers will be fighting against each other for the CRUD events. But I want to test only the startup of the operator and if it's able to recognize the labels on node and set the geo tag appropriately. Unfortunatelly, I can't do that w/ current helm chart, because some resources are created globaly in the default namespace (crd, cluster role and cluster role binding). This PR aims to make the deployment of these "global" resources optional. We choose not to be opinionated about the deployment mechanisms people can have so making it more configurable can't hurt.

Signed-off-by: Jirka Kremser jiri.kremser@gmail.com

@@ -1,3 +1,4 @@
{{- if and .Values.coredns.deployment.enabled }}
Copy link
Member

Choose a reason for hiding this comment

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

why do we have and here?

Copy link
Member Author

Choose a reason for hiding this comment

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

it worked, but it's a mistake, amended

…or k8gb should be deployed

Signed-off-by: Jirka Kremser <jiri.kremser@gmail.com>
@jkremser jkremser force-pushed the helm-finer-deployment-control branch from 2427b23 to 3ab855a Compare January 3, 2022 09:35
Copy link
Member

@ytsarev ytsarev left a comment

Choose a reason for hiding this comment

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

LGTM

@jkremser jkremser merged commit 9fcf68a into k8gb-io:master Jan 3, 2022
@jkremser jkremser deleted the helm-finer-deployment-control branch January 3, 2022 15:09
@jkremser jkremser mentioned this pull request Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants