diff options
author | Remigiusz Janeczek <remigiusz.janeczek@nokia.com> | 2021-05-20 19:39:44 +0200 |
---|---|---|
committer | Remigiusz Janeczek <remigiusz.janeczek@nokia.com> | 2021-05-20 20:43:33 +0000 |
commit | 7b09503a8bfcf128c021b6072bec24a1cc93317a (patch) | |
tree | 6af8661e562627c9903cbd3906b45fae9baa44c9 /kubernetes/dcaegen2-services/components/dcae-ves-collector | |
parent | cc2f53b36e0d7881540e8afd24119f9e3c98a210 (diff) |
[DCAEGEN2] Update CMPv2 certs usage in dcaegen2-services
Updates:
- Add microservice specific flag to determine if CMPv2
should be used
- Add function to check if CMPv2 parts should be included
Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com>
Issue-ID: DCAEGEN2-2630
Change-Id: If81c50c6029aafef40fa91c5295ad8ad24f953d3
Diffstat (limited to 'kubernetes/dcaegen2-services/components/dcae-ves-collector')
-rw-r--r-- | kubernetes/dcaegen2-services/components/dcae-ves-collector/templates/certificates.yaml | 2 | ||||
-rw-r--r-- | kubernetes/dcaegen2-services/components/dcae-ves-collector/values.yaml | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/kubernetes/dcaegen2-services/components/dcae-ves-collector/templates/certificates.yaml b/kubernetes/dcaegen2-services/components/dcae-ves-collector/templates/certificates.yaml index 0db2138a4f..12a05885ca 100644 --- a/kubernetes/dcaegen2-services/components/dcae-ves-collector/templates/certificates.yaml +++ b/kubernetes/dcaegen2-services/components/dcae-ves-collector/templates/certificates.yaml @@ -14,6 +14,6 @@ # limitations under the License. */}} -{{ if and .Values.certDirectory .Values.global.cmpv2Enabled .Values.global.CMPv2CertManagerIntegration }} +{{- if (include "dcaegen2-services-common.shouldUseCmpv2Certificates" .) -}} {{ include "certManagerCertificate.certificate" . }} {{ end }} diff --git a/kubernetes/dcaegen2-services/components/dcae-ves-collector/values.yaml b/kubernetes/dcaegen2-services/components/dcae-ves-collector/values.yaml index 081bcdcc1a..32f5072309 100644 --- a/kubernetes/dcaegen2-services/components/dcae-ves-collector/values.yaml +++ b/kubernetes/dcaegen2-services/components/dcae-ves-collector/values.yaml @@ -58,8 +58,13 @@ certDirectory: /opt/app/dcae-certificate tlsServer: true # CMPv2 certificate -# It is used only when global parameter cmpv2Enabled is true +# It is used only when: +# - certDirectory is set +# - global cmpv2Enabled flag is set to true +# - global CertManagerIntegration flag is set to true +# - flag useCmpv2Certificates is set to true # Disabled by default +useCmpv2Certificates: false certificates: - mountPath: /opt/app/dcae-certificate/external commonName: dcae-ves-collector |