Skip to content

Commit

Permalink
Merge pull request #7 from littlehorse-enterprises/feature/toggle-gat…
Browse files Browse the repository at this point in the history
…eway-api

feat: optionally enable/disable gateway api
  • Loading branch information
coltmcnealy-lh authored Jun 5, 2024
2 parents 1ce5382 + 976c2b2 commit 43624e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/lh-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ spec:
value: "{{ .Values.certManager.enabled }}"
- name: LHO_PROMETHEUS_ENABLED
value: "{{ .Values.prometheus.enabled }}"
- name: LHO_GATEWAY_API_ENABLED
value: "{{ .Values.gatewayApi.enabled }}"
- name: LOG_LEVEL
value: "{{ .Values.logLevel }}"
{{- with .Values.nodeSelector }}
Expand Down
2 changes: 2 additions & 0 deletions charts/lh-operator/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ rules:
- apiGroups: ["littlehorse.io"]
resources: ["*"]
verbs: ["*"]
{{- if .Values.gatewayApi.enabled }}
- apiGroups: ["gateway.networking.k8s.io"]
resources: ["tlsroutes"]
verbs: ["get", "list", "watch", "create", "delete", "patch", "update"]
{{- end -}}
{{- if .Values.strimzi.enabled }}
- apiGroups: ["kafka.strimzi.io"]
resources: ["kafkausers", "kafkatopics", "kafkas", "kafkanodepools", "kafkarebalances"]
Expand Down
4 changes: 4 additions & 0 deletions charts/lh-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ certManager:
# pecifies if CertManager is intalled
enabled: false

gatewayApi:
# Specifies if the Operator can create Gateway API resources.
enabled: false

podAnnotations: {}

podSecurityContext: {}
Expand Down

0 comments on commit 43624e2

Please sign in to comment.