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

feat: add support for more deployment configuration #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matt-demers
Copy link

Adds some standard deployment configuration values such as deployment annotations, priorityClassName, and extraArgs for the container.

What type of PR is this?

feature

Which issue does this PR fix:

N/A

What does this PR do / Why do we need it:

Adding some common helm values for configuring the deployment that we need.

Testing done on this change:

Manually ran helm template on the chart to ensure that the values are being set properly

Will this break upgrades or downgrades?
No

Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Adds some standard deployment configuration values
such as deployment annotations, priorityClassName,
pod labels, dns configuration, and extraArgs for
the container.
@rchincha
Copy link
Contributor

@matt-demers what was your use case motivating this PR?

@pvbouwel
Copy link

I upvoted because I like the ability to specify custom labels. It helps for example with log processing (enrichment of logs). While it is possible to do this while processing logs, standardizing labels for pods helps to keep it simple.

Copy link

@pvbouwel pvbouwel left a comment

Choose a reason for hiding this comment

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

Overall I think it looks good and I would welcome the change.

I just added a nit because the default dnsPolicy might not be wanted if the default ever changes for Kubernetes. I still approve since at time of writing it non-breaking and I am not aware of any such change being planned in the future (and it would anyway be a breaking change for Kubernetes itself)

dnsConfig:
{{- toYaml . | nindent 8 }}
{{- end }}
dnsPolicy: {{ .Values.dnsPolicy }}

Choose a reason for hiding this comment

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

I'm curious about the reasoning of not having dnsPolicy shielded with a with block like for the others. If in the future Kubernetes default ever changes it might be unexpected to have a default specified in the values of the helm chart?

Copy link
Author

Choose a reason for hiding this comment

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

I was just following convention from other public helm charts that support this feature. For example the argocd helm chart has the dnsConfig in a with block but the dnsPolicy is not https://github.com/argoproj/argo-helm/blob/main/charts/argo-cd/templates/argocd-application-controller/deployment.yaml

@matt-demers
Copy link
Author

@matt-demers what was your use case motivating this PR?

We want to install the chart in our clusters, but we need the extra configuration options to fit within our cluster policies. We can work around it right now with some hacks by modifying the deployment after it is installed, but having the options in the chart itself would be much nicer.

For instance, we want to use the chainguard provided image of zot, but that image does not have the cli args baked into the dockerfile, so we need to be able to set the args ourselves.

@rchincha
Copy link
Contributor

@matt-demers Thanks for clarifying.

DCO checks are failing in our CI.

Missing sign-off(s):

fc94e6bd741be8b19ff103d36de74ca9e0b779ce
	no sign-off found

Add a git "sign-off" and also gpg sign your commit.

@@ -3,4 +3,4 @@ appVersion: v2.0.3
description: A Helm chart for Kubernetes
name: zot
type: application
version: 0.1.53
version: 0.1.54

Choose a reason for hiding this comment

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

Please rebase and increment again. We just made a zot release and the new app version was included in .54

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.

4 participants