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

Common labels #147

Merged
merged 10 commits into from
Feb 3, 2022
Merged

Common labels #147

merged 10 commits into from
Feb 3, 2022

Conversation

Zelldon
Copy link
Member

@Zelldon Zelldon commented Feb 2, 2022

Follows https://helm.sh/docs/chart_best_practices/labels/#standard-labels to set up common labels

  • create a common labels template
  • Use template in all sub charts and resourcess

Example:

 labels: 
    app: camunda-cloud-self-managed
    app.kubernetes.io/name: zeebe
    helm.sh/chart: zeebe-0.0.1
    app.kubernetes.io/instance: test-release
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/version: 1.3.1
    app.kubernetes.io/part-of: camunda-cloud-self-managed
    app.kubernetes.io/component: zeebe-broker

closes #131
related to #124

 * remove unused template definitions
 * create common template for labels and include it in subchart label templates
 * Remove quotes
* include global labels
With using nindent we don't need to add a separate newline and it can be added in the same line as the key: labels:
*/}}
{{- define "zeebe.labels.gateway" -}}
{{- template "ccsm.labels" . }}
app.kubernetes.io/component: gateway
Copy link
Member Author

Choose a reason for hiding this comment

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

To make more cleare where the gateway belongs to we add the zeebe- prefix to the broker and gateway component
@Zelldon Zelldon marked this pull request as ready for review February 3, 2022 06:22
@Zelldon
Copy link
Member Author

Zelldon commented Feb 3, 2022

I would like to request a review from you @Sijoma but seems to be not possible 🤷 Maybe you can still take a look, let me know if you have no time. I thought this would be something which is in your interest. Maybe we can have similar labels in the controller at some point.

Copy link

@Sijoma Sijoma left a comment

Choose a reason for hiding this comment

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

Looks like a nice refactor!

@Zelldon
Copy link
Member Author

Zelldon commented Feb 3, 2022

Thanks for the review @Sijoma 🙇

@Zelldon Zelldon merged commit 67ec0e1 into main Feb 3, 2022
@Zelldon Zelldon deleted the zell-common-labels branch February 3, 2022 16:49
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.

Use standardized and recommended labels in CCSM Chart
2 participants