-
Notifications
You must be signed in to change notification settings - Fork 360
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
Add support for deployment labels #581
Add support for deployment labels #581
Conversation
If you are comfortable enough in Go, please could you add some tests for this to |
@robholland I'm fairly early in my Go journey, but based on the tests you recently added I think I've made it.
Happy to hear your feedback! |
Added the "inline" refactor on the labels inline method and also added a test for the additional labels, as discussed in #582 |
Please merge master to get the CI fix. |
* feat: add support for defining deployment labels --------- Co-authored-by: Rob Holland <[email protected]>
What was changed
This PR adds support to define deployment labels for the
server
,admintools
andweb
components.NOTE 1: this includes the option to define labels on server level (
server.deploymentLabels
) instead of within scope of the server services (frontend, history, matching, worker) only. However to make this work, PR #580 first needs to be merged.NOTE 2: this PR partly replaces #537, however this PR needs revision because of the resourceLabels templatization in PR #539.
Why?
Currently there is no option to define deployment labels.
Checklist
helm install -f values.yaml --set server.deploymentLabels.serverLabel1="serverDeploymentLabel" --set admintools.deploymentLabels.serverLabel1="adminDeploymentLabel" --set web.deploymentLabels.serverLabel1="webDeploymentLabel" debug . --dry-run --debug
serverLabel1
is added to all server services and admintools and web components.helm install -f values.yaml --set server.deploymentLabels.serverLabel1="serverDeploymentLabel" --set server.frontend.deploymentLabels.resourceLabel1="resourceDeploymentLabel" debug . --dry-run --debug
frontend
service.resourceLabel1
is added to the serverfrontend
service. The deployment labels on server level are ignored correctly.serverLabel1
is added to the other server services (history
,matching
,worker
).No.