-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Improve helmchart template adding fields #4952
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,12 +44,37 @@ spec: | |
# values: | ||
# - amd64 | ||
# - arm64 | ||
# - ppc64le | ||
# - s390x | ||
# - key: kubernetes.io/os | ||
# operator: In | ||
# values: | ||
# - linux | ||
# TODO(user): Uncomment the following code to configure the nodeSelector expression | ||
# annotations, nodeSelector, tolerations, topologySpreadConstraints. | ||
# nodeSelector: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should it be really added there or via kustomize? Is there a better way to configure it? |
||
# disktype: ssd | ||
# Annotations for the manager pod | ||
# annotations: | ||
# example-annotation: "value" | ||
# Node selector for scheduling the manager pod | ||
# nodeSelector: | ||
# disktype: ssd | ||
# Tolerations for the manager pod | ||
# tolerations: | ||
# - key: "key1" | ||
# operator: "Equal" | ||
# value: "value1" | ||
# effect: "NoSchedule" | ||
# Topology spread constraints for the manager pod | ||
# topologySpreadConstraints: | ||
# - maxSkew: 1 | ||
# topologyKey: "topology.kubernetes.io/zone" | ||
# whenUnsatisfiable: "ScheduleAnyway" | ||
# labelSelector: | ||
# matchLabels: | ||
# app: controller-manager | ||
# imagePullSecrets for pulling images from private registries | ||
# imagePullSecrets: | ||
# - name: myregistrykey | ||
securityContext: | ||
# Projects are configured by default to adhere to the "restricted" Pod Security Standards. | ||
# This ensures that deployments meet the highest security requirements for Kubernetes. | ||
|
@@ -65,6 +90,8 @@ spec: | |
- --health-probe-bind-address=:8081 | ||
image: controller:latest | ||
name: manager | ||
# imagePullPolicy for the manager container (e.g., Always, IfNotPresent, Never) | ||
# imagePullPolicy: IfNotPresent | ||
Comment on lines
+93
to
+94
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can add that as default |
||
ports: [] | ||
securityContext: | ||
readOnlyRootFilesystem: true | ||
|
@@ -93,7 +120,16 @@ spec: | |
requests: | ||
cpu: 10m | ||
memory: 64Mi | ||
# Extra volumeMounts for the manager container | ||
# volumeMounts: | ||
# - name: extra-config | ||
# mountPath: /etc/extra | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not know if that will work with the patches but is a good call I think we need a PR for that and e2e tests to ensure that we do not break the behaviour |
||
volumeMounts: [] | ||
# Extra volumes for the manager pod | ||
# volumes: | ||
# - name: extra-config | ||
# configMap: | ||
# name: extra-config | ||
volumes: [] | ||
serviceAccountName: controller-manager | ||
terminationGracePeriodSeconds: 10 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,29 @@ | ||
# [MANAGER]: Manager Deployment Configurations | ||
controllerManager: | ||
replicas: 1 | ||
pod: | ||
# imagePullSecrets for pulling images from private registries | ||
imagePullSecrets: [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I liked it 👍 less the pod above since all here would be only about controller-manager I think we will need to change that we might need a PR just to change what we have today on that |
||
# nodeSelector for scheduling the manager pod | ||
nodeSelector: {} | ||
# affinity rules for the manager pod | ||
affinity: {} | ||
# tolerations for the manager pod | ||
tolerations: [] | ||
# topologySpreadConstraints for the manager pod | ||
topologySpreadConstraints: [] | ||
# extraVolumeMounts for additional volumeMounts in the manager container | ||
extraVolumeMounts: [] | ||
# extraVolumes for additional volumes in the manager pod | ||
extraVolumes: [] | ||
# annotations for the manager pod | ||
annotations: {} | ||
container: | ||
image: | ||
repository: controller | ||
tag: latest | ||
# imagePullPolicy for the manager container (e.g., Always, IfNotPresent, Never) | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- "--leader-elect" | ||
- "--metrics-bind-address=:8443" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot remove those