Skip to content

Commit

Permalink
Add podLabels to deployment and sts
Browse files Browse the repository at this point in the history
  • Loading branch information
aahemm committed Aug 31, 2023
1 parent 5970341 commit 6474f6a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
apiVersion: v2
name: app
version: 0.10.1
appVersion: 0.10.1
version: 0.10.2
appVersion: 0.10.2
description: A Helm chart which provides a DRY application deployment mechanism
icon: "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"
keywords:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ To create a package from chart:
- Move the generated `app-$version.tgz` file to `hack/`
- Run `./generate-index.sh $version` in `hack/` and copy new lines in `hack/index.taml` to `index.yaml`
- Upload the `.tgz` file to releases
- Commit changes and push it to github

## License

Expand Down
17 changes: 17 additions & 0 deletions index.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
apiVersion: v1
entries:
app:
- apiVersion: v2
appVersion: 0.10.2
created: "2023-08-31T15:50:02.035454106+03:30"
description: A Helm chart which provides a DRY application deployment mechanism
digest: 78157785f45c6060a2ee185138057c80af18b4ee28cf172981e5759d5acb0558
icon: https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
keywords:
- application
- template
- DRY
- generic
maintainers:
- name: aliakbar-hemmati
name: app
urls:
- https://github.com/aahemm/helm-microservice/releases/download/v0.10.2/app-0.10.2.tgz
version: 0.10.2
- apiVersion: v2
appVersion: 0.10.1
created: "2023-07-30T14:16:01.970472775+03:30"
Expand Down
3 changes: 3 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
labels:
app.kubernetes.io/name: {{ include "microservice.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if or .Values.imagePullSecrets .Values.imageCredentials }}
imagePullSecrets:
Expand Down
3 changes: 3 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
labels:
app.kubernetes.io/name: {{ include "microservice.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if or .Values.imagePullSecrets .Values.imageCredentials }}
imagePullSecrets:
Expand Down
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ image:
nameOverride: ""
fullnameOverride: ""

## Pod Labels
# podLabels: {}

## Optionally specify an imagePullSecret.
## Secret must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
Expand Down

0 comments on commit 6474f6a

Please sign in to comment.