Skip to content

Commit

Permalink
feat: support adding annotations to Deployment (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstefany authored Jan 17, 2024
1 parent 5ac6620 commit 54f67da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/apisix-ingress-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ The same for container level, you need to set:
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| annotations | object | `{}` | Add annotations to Apache APISIX ingress controller resource |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
Expand Down
4 changes: 4 additions & 0 deletions charts/apisix-ingress-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ kind: Deployment
metadata:
name: {{ include "apisix-ingress-controller.fullname" . }}
namespace: {{ .Release.Namespace }}
annotations:
{{- range $key, $value := .Values.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
labels:
{{- include "apisix-ingress-controller.labels" . | nindent 4 }}
spec:
Expand Down
3 changes: 3 additions & 0 deletions charts/apisix-ingress-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ labelsOverride: {}
# app.kubernetes.io/name: "{{ .Release.Name }}"
# app.kubernetes.io/instance: '{{ include "apisix-ingress-controller.name" . }}'

# -- Add annotations to Apache APISIX ingress controller resource
annotations: {}

rbac:
# -- Specifies whether RBAC resources should be created
create: true
Expand Down

0 comments on commit 54f67da

Please sign in to comment.