Skip to content

Commit

Permalink
add annotations to deployments (#432)
Browse files Browse the repository at this point in the history
* add annotations to deployments

* update readme and reference docs
  • Loading branch information
gertzakis authored Sep 6, 2024
1 parent e4e14e9 commit c55aa4c
Show file tree
Hide file tree
Showing 6 changed files with 453 additions and 432 deletions.
430 changes: 216 additions & 214 deletions charts/nautobot/README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions charts/nautobot/templates/celery-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ metadata:
{{- if $.Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" $.Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if $.Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- if (or $celery.annotations $.Values.commonAnnotations) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" (merge $celery.annotations $.Values.commonAnnotations) "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if not $celery.autoscaling.enabled }}
Expand Down
4 changes: 2 additions & 2 deletions charts/nautobot/templates/nautobot-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ metadata:
{{- if $.Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" $.Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if $.Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- if (or $nautobot.annotations $.Values.commonAnnotations) }}
annotations: {{- include "common.tplvalues.render" ( dict "value" (merge $nautobot.annotations $.Values.commonAnnotations) "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if not $nautobot.autoscaling.enabled }}
Expand Down
13 changes: 13 additions & 0 deletions charts/nautobot/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,19 @@
"type": "string",
"pattern": "^(soft|hard|)$"
},
"annotations": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations",
"type": [
"object",
"null"
]
},
"podAnnotations": {
"additionalProperties": {
"type": [
Expand Down
4 changes: 4 additions & 0 deletions charts/nautobot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ nautobot:
args: []
# -- ([]HostAlias) [[ref](https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/)] Nautobot pods host aliases
hostAliases: []
# -- (map[string]string) [[ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/)] Annotations to be applied to Nautobot deployment resource
annotations: {}
# -- (map[string]string) [[ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/)] Extra labels for Nautobot pods
podLabels: {}
# -- (map[string]string) [[ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/)] Annotations for Nautobot pods
Expand Down Expand Up @@ -600,6 +602,8 @@ celery:
args: []
# -- ([]HostAlias) [[ref](https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/)] Nautobot Celery Worker pods host aliases
hostAliases: []
# -- (map[string]string) [[ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/)] Annotations to be applied to Nautobot Celery Worker deployment resource
annotations: {}
# -- (map[string]string) [[ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/)] Extra labels for Nautobot Celery Worker pods
podLabels: {}
# -- (map[string]string) [[ref](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/)] Annotations for Nautobot Celery Worker pods
Expand Down
Loading

0 comments on commit c55aa4c

Please sign in to comment.