Skip to content

Helm chart improvements#1802

Open
babykart wants to merge 5 commits into
microsoft:mainfrom
babykart:helm-chart
Open

Helm chart improvements#1802
babykart wants to merge 5 commits into
microsoft:mainfrom
babykart:helm-chart

Conversation

@babykart
Copy link
Copy Markdown
Contributor

@babykart babykart commented May 14, 2026

Signed-off-by: babykart <babykart@gmail.com>
Copilot AI review requested due to automatic review settings May 14, 2026 15:46
Signed-off-by: babykart <babykart@gmail.com>
babykart added 2 commits May 14, 2026 17:51
Signed-off-by: babykart <babykart@gmail.com>
Signed-off-by: babykart <babykart@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Garnet Helm chart to use Kubernetes-native ServiceAccount token automounting and to expose Service IP family configuration for cluster networking.

Changes:

  • Replaces serviceAccount.token with serviceAccount.automount.
  • Removes the custom ServiceAccount token Secret template.
  • Adds service.ipFamilies and service.ipFamilyPolicy values and renders them on the main Service.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

File Description
charts/garnet/values.yaml Updates ServiceAccount values and adds Service IP family defaults.
charts/garnet/templates/token.yaml Removes the generated ServiceAccount token Secret.
charts/garnet/templates/serviceaccount.yaml Adds automountServiceAccountToken to created ServiceAccounts.
charts/garnet/templates/service.yaml Adds IP family fields to the main Service spec.
Comments suppressed due to low confidence (3)

charts/garnet/values.yaml:120

  • The generated chart README is not updated for these new service values, so users will not see service.ipFamilies or service.ipFamilyPolicy in the published values table unless the README is regenerated with helm-docs.
  # -- Service port
  port: 6379
  # -- Service ipFamilies
  ipFamilies:
  - IPv4

charts/garnet/templates/token.yaml:1

  • Deleting this template removes the serviceAccount.token behavior entirely. automountServiceAccountToken controls Pod token volume mounting but does not create the named ServiceAccount token Secret that existing users with serviceAccount.token: true may consume, so this is a breaking chart API change unless a compatibility path or migration note is provided.
    charts/garnet/templates/service.yaml:17
  • These fields are emitted even when the corresponding values are empty or unset, which renders null values such as ipFamilies: or ipFamilyPolicy: rather than omitting the fields. Kubernetes expects valid values here, so users cannot fall back to cluster defaults without producing an invalid Service manifest.
  ipFamilies:
    {{- with .Values.service.ipFamilies }}
    {{- toYaml . | nindent 4 }}
    {{- end }}
  ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}

Comment thread charts/garnet/values.yaml
Comment on lines +118 to +122
# -- Service ipFamilies
ipFamilies:
- IPv4
# -- Service ipFamilyPolicy SingleStack|PreferDualStack|RequireDualStack
ipFamilyPolicy: SingleStack
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The new default is the kubernetes default behavior.

Comment on lines +13 to +17
ipFamilies:
{{- with .Values.service.ipFamilies }}
{{- toYaml . | nindent 4 }}
{{- end }}
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed by 6363cd2

Comment thread charts/garnet/values.yaml
Comment on lines +39 to +40
# -- Automatically mount the service account token
automount: false
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The README.md will be updated & commited by the helm-chart github workflow.

Comment thread charts/garnet/values.yaml
Comment on lines +39 to +40
# -- Automatically mount the service account token
automount: false
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed by e6d19b3

Comment on lines +12 to 13
automountServiceAccountToken: {{ .Values.serviceAccount.automount | default false }}
{{- end }}
Signed-off-by: babykart <babykart@gmail.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

Development

Successfully merging this pull request may close these issues.

2 participants