Skip to content

Commit

Permalink
feat: Added option to extend deployment annotations list (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uladzimir-Lashkevich authored Jan 19, 2022
1 parent 24e9eb6 commit 59b4239
Show file tree
Hide file tree
Showing 11 changed files with 96 additions and 47 deletions.
127 changes: 82 additions & 45 deletions docs/index.yaml

Large diffs are not rendered by default.

Binary file added docs/promitor-agent-resource-discovery-0.7.2.tgz
Binary file not shown.
Binary file added docs/promitor-agent-scraper-2.7.2.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion promitor-agent-resource-discovery/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
version: 0.7.1
version: 0.7.2
appVersion: 0.7.0
type: application
name: promitor-agent-resource-discovery
Expand Down
1 change: 1 addition & 0 deletions promitor-agent-resource-discovery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ their default values.
| `affinity` | Affinity settings ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)) | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `podLabels` | Additional pod labels to include | `{}` |
| `annotations` | Additional annotations to include | `{}` |
| `priorityClassName` | Priority class to be used by pod ([docs](https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/)) | `""` |
| `securityContext.*` | Custom security context object for pod ([docs](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)) | `{}` |
| `securityContext.enabled` | Whether to include custom security context for pod or not | `false` |
Expand Down
3 changes: 3 additions & 0 deletions promitor-agent-resource-discovery/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ spec:
{{- if .Values.secrets.createSecret }}
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.annotations }}
{{- toYaml .Values.annotations | nindent 8 }}
{{- end }}
spec:
{{- if .Values.securityContext.enabled }}
securityContext: {{- omit .Values.securityContext "enabled" | toYaml | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions promitor-agent-resource-discovery/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ affinity: {}

podLabels: {}

annotations: {}

priorityClassName: ""

resources: {}
Expand Down
2 changes: 1 addition & 1 deletion promitor-agent-scraper/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
version: 2.7.1
version: 2.7.2
appVersion: 2.6.0
type: application
name: promitor-agent-scraper
Expand Down
1 change: 1 addition & 0 deletions promitor-agent-scraper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ their default values.
| `affinity` | Affinity settings ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)) | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `podLabels` | Additional pod labels to include | `{}` |
| `annotations` | Additional annotations to include | `{}` |
| `priorityClassName` | Priority class to be used by pod ([docs](https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/)) | `""` |
| `securityContext.enabled` | Whether to include custom security context for pod or not | `true` |
| `securityContext.*` | Custom security context object for pod ([docs](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)) | <pre>runAsGroup: 10000<br>runAsNonRoot: true<br>runAsUser: 10000<br>seccompProfile:<br>&emsp;type: RuntimeDefault</pre> |
Expand Down
3 changes: 3 additions & 0 deletions promitor-agent-scraper/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
{{- if .Values.secrets.createSecret }}
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- end }}
{{- if .Values.annotations }}
{{- toYaml .Values.annotations | nindent 8 }}
{{- end }}
spec:
{{- if and .Values.rbac.create .Values.rbac.serviceAccount.create .Values.rbac.serviceAccount.automountServiceAccountToken }}
automountServiceAccountToken: true
Expand Down
2 changes: 2 additions & 0 deletions promitor-agent-scraper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ affinity: {}

podLabels: {}

annotations: {}

priorityClassName: ""

resources: {}
Expand Down

0 comments on commit 59b4239

Please sign in to comment.