Comments (4)
Oh ok, I see - the current way this is generated is simply from helm create .
so there's definitely room for improvement!
from k8s.
What exactly is the issue here? You can check out the release pipeline here: https://github.com/ory/k8s/blob/master/.circleci/config.yml#L14
from k8s.
This doesn't refer to build artifacts, rather it is one of best practices to include labels (annotations) to the generated manifests explicitly, rather than relying on other tools in the deployment pipeline (Tiller, kubelet) to write them when manifests are applied in the cluster.
This issue can be closed by adding a .tpl
partial with something like the following:
{{- define "labels.app"}}
app: {{ .Chart.Name | quote }}
{{- end }}
{{- define "labels.version" }}{{- $serviceVersion := printf "v%s" .Chart.Version }}
version: {{ $serviceVersion | quote }}
{{- end }}
{{- define "labels.helm" }}
chart: {{ printf "%s-%s" .Chart.Name (.Chart.Version | replace "+" "_") | quote }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
{{- end }}
and using this partial in the following way:
name: {{ .Values.somename | quote }}
labels:
{{- include "labels.app" . | indent 4 }}
{{- include "labels.version" . | indent 4 }}
{{- include "labels.helm" . | indent 4 }}
in each of the templated objects.
There are more annotations that are suggested in best practices, but helm.sh
and app/version are ones I (personally) think are important.
from k8s.
I took another look and I see that I missed some of the work that has already been done. Additionally, the example above shows classic labels — I linked to current best practices to avoid confusion. I've reformatted this issue to make sure it's clearer and published the PR implementing the changes.
from k8s.
Related Issues (20)
- helm chart kratos does not implement loading environment variable from file for courier HOT 1
- hydra helm image update to 2.1? HOT 1
- Inconsistency with service account annotations on maester charts
- OathKeeper Default Helm Chart Issue | Pod throwing 503. HOT 11
- Extend Test Helm Charts for Hydra, Keto and Oathkeeper to allow user defined labels for test pod HOT 1
- Warning when setting a namespaces location in keto HOT 3
- deploy image of oathkeeper-maester to arm64 HOT 4
- Helm Chart Missing Keto Link
- failed to download "https://k8s.ory.sh/helm/charts/kratos-0.36.0.tgz" at version "0.36.0" HOT 1
- Unable to rotate secretsCookie in k8s helm chart HOT 1
- 0.37 release is wrongly numbered HOT 1
- Hydra helm chart values miss hydra.config examples. HOT 2
- Hydra Maester chart does not allow env variables, but maester v0.0.31 requires it
- Kratos selfservice UI incorrectly supports `BASE_PATH`
- Ory hydra dsn configuration through existing secret causes env var to not be defined HOT 1
- DSN environmental variable is not set optionally HOT 2
- Unable to use NodePort while deploying kratos and kratos-selfservice-ui-node helm charts
- Cannot "inject" values for email templates from files HOT 5
- support hooks HOT 2
- Upgrade Oathkeeper helm chart 0.41 causes 503 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s.