diff --git a/charts/netobserv/Chart.yaml b/charts/netobserv/Chart.yaml index f4686da..00ed512 100644 --- a/charts/netobserv/Chart.yaml +++ b/charts/netobserv/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: netobserv description: ElastiFlow NetObserv type: application -version: 0.0.8 +version: 0.0.9 appVersion: 6.4.3 keywords: diff --git a/charts/netobserv/templates/deployment.yaml b/charts/netobserv/templates/deployment.yaml index b7ea341..7fb5334 100644 --- a/charts/netobserv/templates/deployment.yaml +++ b/charts/netobserv/templates/deployment.yaml @@ -40,6 +40,13 @@ spec: {{- with .Values.env }} {{- toYaml . | nindent 12 }} {{- end }} + {{- if .Values.license.createSecret -}} + - name: EF_FLOW_LICENSE_KEY + valueFrom: + secretKeyRef: + name: netobserv-license + key: license + {{- end }} ports: - name: udp containerPort: {{ .Values.service.port }} diff --git a/charts/netobserv/templates/secrets.yaml b/charts/netobserv/templates/secrets.yaml new file mode 100644 index 0000000..863217e --- /dev/null +++ b/charts/netobserv/templates/secrets.yaml @@ -0,0 +1,11 @@ +{{- if .Values.license.createSecret -}} +apiVersion: v1 +kind: Secret +metadata: + name: {{ .Values.license.secretRef | default "netobserv-license" }} + labels: + {{- include "netobserv.labels" . | nindent 4 }} +type: Opaque +data: + license: {{ .Values.license.licenseKey }} +{{- end }} diff --git a/charts/netobserv/values.yaml b/charts/netobserv/values.yaml index b2343ff..38ffd61 100644 --- a/charts/netobserv/values.yaml +++ b/charts/netobserv/values.yaml @@ -67,6 +67,14 @@ env: # EF_OUTPUT_GENERIC_HTTP_ADDRESSES: '' # EF_OUTPUT_RISKIQ_ENABLE: 'false' +license: + # Specifies whether a secret should be created. If you don't have a license, no need to create a license secret. + createSecret: false + # Secret name to be used for the license. If empty, the secret name defaults to `netobserv-license` + # If no secret with a matching name exists, the value will be set from `licenseKey`.instead. + secretRef: "" + # Set license key, if not set, value from secret will be used + licenseKey: "" imagePullSecrets: [] nameOverride: ""