-
Notifications
You must be signed in to change notification settings - Fork 2
[SRE-6652] Move ingress to it's own subchart. Refactor strategy POC
#270
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 |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Patterns to ignore when building packages. | ||
| # This supports shell glob matching, relative path matching, and | ||
| # negation (prefixed with !). Only one pattern per line. | ||
| .DS_Store | ||
| # Common VCS dirs | ||
| .git/ | ||
| .gitignore | ||
| .bzr/ | ||
| .bzrignore | ||
| .hg/ | ||
| .hgignore | ||
| .svn/ | ||
| # Common backup files | ||
| *.swp | ||
| *.bak | ||
| *.tmp | ||
| *.orig | ||
| *~ | ||
| # Various IDEs | ||
| .project | ||
| .idea/ | ||
| *.tmproj | ||
| .vscode/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| apiVersion: v2 | ||
| name: ingress | ||
| description: A Helm chart for Kubernetes | ||
|
|
||
| # A chart can be either an 'application' or a 'library' chart. | ||
| # | ||
| # Application charts are a collection of templates that can be packaged into versioned archives | ||
| # to be deployed. | ||
| # | ||
| # Library charts provide useful utilities or functions for the chart developer. They're included as | ||
| # a dependency of application charts to inject those utilities and functions into the rendering | ||
| # pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
| type: application | ||
|
|
||
| # This is the chart version. This version number should be incremented each time you make changes | ||
| # to the chart and its templates, including the app version. | ||
| # Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
| version: 0.1.0 | ||
|
|
||
| # This is the version number of the application being deployed. This version number should be | ||
| # incremented each time you make changes to the application. Versions are not expected to | ||
| # follow Semantic Versioning. They should reflect the version the application is using. | ||
| # It is recommended to use it with quotes. | ||
| appVersion: "1.16.0" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| enabled: false | ||
|
|
||
|
|
||
| fromCommon: | ||
| service: | ||
| port: 8080 | ||
|
|
||
| hosts: | ||
| - host: chart-example.local | ||
| # The name is optional, If not set, a name is generated using host | ||
| # name: "" | ||
| annotations: | ||
| kubernetes.io/ingress.class: nginx-internal | ||
| kubernetes.io/tls-acme: "true" | ||
| paths: | ||
| - backend: | ||
| service: | ||
| name: chart-service | ||
| port: | ||
| number: | ||
| path: / | ||
| pathType: ImplementationSpecific | ||
|
|
||
| tls: | ||
| - secretName: chart-example-tls | ||
| hosts: | ||
| - chart-example.local | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |||||
| Expand the name of the chart. | ||||||
| */}} | ||||||
| {{- define "common.name" -}} | ||||||
| {{- default .Release.Name ( required ".Values.name is missing, this can be caused by a mismatch in chart alias reference" .Values.name ) | trunc 63 | trimSuffix "-" }} | ||||||
| {{- default .Release.Name ( required ".Values.name is missing, this can be caused by a mismatch in chart alias reference" .Values.global.name ) | trunc 63 | trimSuffix "-" }} | ||||||
|
||||||
| {{- default .Release.Name ( required ".Values.name is missing, this can be caused by a mismatch in chart alias reference" .Values.global.name ) | trunc 63 | trimSuffix "-" }} | |
| {{- default .Release.Name ( required ".Values.global.name is missing, this can be caused by a mismatch in chart alias reference" .Values.global.name ) | trunc 63 | trimSuffix "-" }} |
Copilot
AI
Mar 4, 2026
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.
common.labels now reads .Values.global.additionalLabels, but other templates still add .Values.additionalLabels specifically to pod/deployment labels. This split means labels may be applied to some resources but not pods. Consider coalescing/merging both (.Values.additionalLabels and .Values.global.additionalLabels) here (and/or updating the other templates) to keep behavior consistent and avoid breaking existing values files.
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,3 +1,10 @@ | ||||||||||||
| global: | ||||||||||||
| name: null | ||||||||||||
|
|
||||||||||||
| # This is used to apply additional labels on deployment, pods and services | ||||||||||||
| # to properly tag the team and environment | ||||||||||||
| additionalLabels: {} | ||||||||||||
|
|
||||||||||||
|
||||||||||||
| # Additional labels at root level for backwards compatibility with templates | |
| # that still reference `.Values.additionalLabels`. | |
| additionalLabels: {} |
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.
The example/default values set
hosts[].paths[].backend.service.port.numberto null (empty). Because the template checksif $service.port(the map), this will be treated as “set” and will rendernumber:with an empty value instead of falling back to the default service port, producing an invalid Ingress ifenabled: true. Set a concrete integer here or remove theportblock entirely when you want the template to use the default port.