From 717bf3dd28d0b18fe7992177c65bf9c1058c0632 Mon Sep 17 00:00:00 2001 From: "J.G" Date: Mon, 11 Dec 2023 10:11:34 +0100 Subject: [PATCH 1/8] correct error error converting YAML to JSON: yaml: line 36: could not find expected ':' when the license file value is read while installing/upgrading the chart like: helm install msr-staging ./helm --values=values.yaml -n msr-staging --set-file license=license.xml --- microservicesruntime/helm/templates/license.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/microservicesruntime/helm/templates/license.yaml b/microservicesruntime/helm/templates/license.yaml index 8da2674..b1e7ffb 100644 --- a/microservicesruntime/helm/templates/license.yaml +++ b/microservicesruntime/helm/templates/license.yaml @@ -31,6 +31,5 @@ metadata: annotations: helm.sh/resource-policy: keep data: - licensekey: - {{ .Values.license | toYaml }} + licensekey: {{ .Values.license | toYaml | nindent 4}} {{- end }} \ No newline at end of file From 6572ec5015d2d847f84b6edbee9d0c81dc401942 Mon Sep 17 00:00:00 2001 From: thr Date: Fri, 16 Feb 2024 14:20:15 +0100 Subject: [PATCH 2/8] nident LK text correctly --- apigateway/helm/templates/license.yaml | 2 +- microservicesruntime/helm/templates/license.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apigateway/helm/templates/license.yaml b/apigateway/helm/templates/license.yaml index 7fdd707..ed2fd2c 100644 --- a/apigateway/helm/templates/license.yaml +++ b/apigateway/helm/templates/license.yaml @@ -32,5 +32,5 @@ metadata: helm.sh/resource-policy: keep data: licensekey: - {{ .Values.license | toYaml }} + {{ .Values.license | toYaml | nindent 4 }} {{- end }} \ No newline at end of file diff --git a/microservicesruntime/helm/templates/license.yaml b/microservicesruntime/helm/templates/license.yaml index 8da2674..19bd4b8 100644 --- a/microservicesruntime/helm/templates/license.yaml +++ b/microservicesruntime/helm/templates/license.yaml @@ -32,5 +32,5 @@ metadata: helm.sh/resource-policy: keep data: licensekey: - {{ .Values.license | toYaml }} + {{ .Values.license | toYaml | nindent 4 }} {{- end }} \ No newline at end of file From b8d9f15d0013e7b45c57152e24835a6031301966 Mon Sep 17 00:00:00 2001 From: thr Date: Fri, 16 Feb 2024 14:28:36 +0100 Subject: [PATCH 3/8] document value 'license' --- apigateway/helm/values.yaml | 5 ++++- microservicesruntime/helm/values.yaml | 3 +++ universalmessaging/helm/values.yaml | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apigateway/helm/values.yaml b/apigateway/helm/values.yaml index ed44a81..3adacfc 100644 --- a/apigateway/helm/values.yaml +++ b/apigateway/helm/values.yaml @@ -668,4 +668,7 @@ prometheus-elasticsearch-exporter: prometheus.io/path: /metrics prometheus.io/port: "9108" prometheus.io/scheme: http - prometheus.io/scrape: "true" \ No newline at end of file + prometheus.io/scrape: "true" + +# -- Import the content as license key and create a ConfigMap named by `licenseConfigMap` value. You can copy/past the content of your provided license key file here. +license: | diff --git a/microservicesruntime/helm/values.yaml b/microservicesruntime/helm/values.yaml index ace2519..b4b97f8 100644 --- a/microservicesruntime/helm/values.yaml +++ b/microservicesruntime/helm/values.yaml @@ -331,3 +331,6 @@ metering: # -- The password for the metering client truststore. # Configure this property only if you use a truststore. trustStorePassword: + +# -- Import the content as license key and create a ConfigMap named by `licenseConfigMap` value. You can copy/past the content of your provided license key file here. +license: | diff --git a/universalmessaging/helm/values.yaml b/universalmessaging/helm/values.yaml index 14951a3..339e78c 100644 --- a/universalmessaging/helm/values.yaml +++ b/universalmessaging/helm/values.yaml @@ -218,3 +218,6 @@ readinessProbe: # -- Deploy Nginx as external LB. The LB will be configured to dispatch incoming requests to all `replicaCount` replicas. # Nginx is configured by example from [Universal Messaging documentation](https://documentation.softwareag.com/universal_messaging/num10-15/webhelp/num-webhelp/#page/num-webhelp%2Fre-configure_nginx_to_serve_http_requests.html%23) externalLoadBalancer: false + +# -- Import the content as license key and create a ConfigMap named by `licenseConfigMap` value. You can copy/past the content of your provided license key file here. +license: | From b89956a001421e7af648d4e04960fb0c281cdcb9 Mon Sep 17 00:00:00 2001 From: thr Date: Fri, 16 Feb 2024 14:29:08 +0100 Subject: [PATCH 4/8] document value 'license' and updating helm/README.me from values.yaml --- apigateway/helm/README.md | 20 ++++++++++++++++++-- microservicesruntime/helm/README.md | 1 + universalmessaging/helm/README.md | 1 + 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/apigateway/helm/README.md b/apigateway/helm/README.md index 00ed993..e00c1c2 100644 --- a/apigateway/helm/README.md +++ b/apigateway/helm/README.md @@ -162,7 +162,7 @@ helm upgrade -i -f myvalues.yaml --set ingress.tls.key="$(tls". | +| ingress.tls.secretProviderClassName | string | `""` | | +| ingress.tls.secretProviderEnabled | bool | `false` | | +| ingress.tls.secretProviderName | string | `""` | | +| ingress.tls.secretProviderParameters | object | `{}` | | | ingresses.admin.annotations."nginx.ingress.kubernetes.io/affinity" | string | `"cookie"` | | | ingresses.admin.className | string | `"nginx"` | | | ingresses.admin.defaultHost | string | `""` | | @@ -251,8 +258,10 @@ helm upgrade -i -f myvalues.yaml --set ingress.tls.key="$( /usr/share/message"] postStart: exec: command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"] | diff --git a/microservicesruntime/helm/README.md b/microservicesruntime/helm/README.md index 444996e..d9fd0ab 100644 --- a/microservicesruntime/helm/README.md +++ b/microservicesruntime/helm/README.md @@ -139,6 +139,7 @@ helm install wm-msr webmethods/microservicesruntime \ | ingress.hosts[0].paths[0].pathType | string | `"Prefix"` | Path type to address the backend | | ingress.hosts[0].paths[0].port | int | `5555` | Port of service | | ingress.tls | list | `[]` | TLS of Ingress | +| license | string | `""` | Import the content as license key and create a ConfigMap named by `licenseConfigMap` value. You can copy/past the content of your provided license key file here. | | lifecycle | object | `{}` | lifecycle hooks to execute on preStop / postStart,... | | livenessProbe | object | `{"failureThreshold":3,"httpGet":{"path":"/health/liveness","port":"http"},"initialDelaySeconds":0,"periodSeconds":15,"successThreshold":1,"timeoutSeconds":30}` | Configure liveness probe | | metering.accumulationPeriod | string | `"1800"` | The period in seconds for which data is accumulated before a log record is produced. | diff --git a/universalmessaging/helm/README.md b/universalmessaging/helm/README.md index df42687..fe4fc03 100644 --- a/universalmessaging/helm/README.md +++ b/universalmessaging/helm/README.md @@ -91,6 +91,7 @@ helm install um webmethods/universalmessaging | ingress.hosts[0].paths[0].pathType | string | `"Prefix"` | Path type to address the backend | | ingress.hosts[0].paths[0].port | int | `9000` | Port of service | | ingress.tls | list | `[]` | TLS of Ingress | +| license | string | `""` | Import the content as license key and create a ConfigMap named by `licenseConfigMap` value. You can copy/past the content of your provided license key file here. | | licenseConfigMap | string | `"universalmessaging-licence-key"` | Name of the licence config map | | lifecycle | object | `{}` | lifecycle hooks to execute on preStop / postStart,... | | livenessProbe | object | `{"failureThreshold":3,"httpGet":{"path":"/health/","port":9000},"initialDelaySeconds":0,"periodSeconds":15,"successThreshold":1,"timeoutSeconds":30}` | Configure liveness probe | From b2fdd7ff9c6a886dffd8411b9f8664d87b0afef0 Mon Sep 17 00:00:00 2001 From: thr Date: Fri, 16 Feb 2024 14:20:15 +0100 Subject: [PATCH 5/8] nident LK text correctly --- microservicesruntime/helm/templates/license.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/microservicesruntime/helm/templates/license.yaml b/microservicesruntime/helm/templates/license.yaml index b1e7ffb..19bd4b8 100644 --- a/microservicesruntime/helm/templates/license.yaml +++ b/microservicesruntime/helm/templates/license.yaml @@ -31,5 +31,6 @@ metadata: annotations: helm.sh/resource-policy: keep data: - licensekey: {{ .Values.license | toYaml | nindent 4}} + licensekey: + {{ .Values.license | toYaml | nindent 4 }} {{- end }} \ No newline at end of file From b5cea624f8e3df9f50d44cd0e630e9ad09d3dd5d Mon Sep 17 00:00:00 2001 From: thr Date: Fri, 16 Feb 2024 14:28:36 +0100 Subject: [PATCH 6/8] document value 'license' --- apigateway/helm/values.yaml | 5 ++++- microservicesruntime/helm/values.yaml | 3 +++ universalmessaging/helm/values.yaml | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apigateway/helm/values.yaml b/apigateway/helm/values.yaml index ed44a81..3adacfc 100644 --- a/apigateway/helm/values.yaml +++ b/apigateway/helm/values.yaml @@ -668,4 +668,7 @@ prometheus-elasticsearch-exporter: prometheus.io/path: /metrics prometheus.io/port: "9108" prometheus.io/scheme: http - prometheus.io/scrape: "true" \ No newline at end of file + prometheus.io/scrape: "true" + +# -- Import the content as license key and create a ConfigMap named by `licenseConfigMap` value. You can copy/past the content of your provided license key file here. +license: | diff --git a/microservicesruntime/helm/values.yaml b/microservicesruntime/helm/values.yaml index ace2519..b4b97f8 100644 --- a/microservicesruntime/helm/values.yaml +++ b/microservicesruntime/helm/values.yaml @@ -331,3 +331,6 @@ metering: # -- The password for the metering client truststore. # Configure this property only if you use a truststore. trustStorePassword: + +# -- Import the content as license key and create a ConfigMap named by `licenseConfigMap` value. You can copy/past the content of your provided license key file here. +license: | diff --git a/universalmessaging/helm/values.yaml b/universalmessaging/helm/values.yaml index 14951a3..339e78c 100644 --- a/universalmessaging/helm/values.yaml +++ b/universalmessaging/helm/values.yaml @@ -218,3 +218,6 @@ readinessProbe: # -- Deploy Nginx as external LB. The LB will be configured to dispatch incoming requests to all `replicaCount` replicas. # Nginx is configured by example from [Universal Messaging documentation](https://documentation.softwareag.com/universal_messaging/num10-15/webhelp/num-webhelp/#page/num-webhelp%2Fre-configure_nginx_to_serve_http_requests.html%23) externalLoadBalancer: false + +# -- Import the content as license key and create a ConfigMap named by `licenseConfigMap` value. You can copy/past the content of your provided license key file here. +license: | From 60a6016435f58a01347fe2cc0616a2440f4f4a7e Mon Sep 17 00:00:00 2001 From: thr Date: Fri, 16 Feb 2024 14:29:08 +0100 Subject: [PATCH 7/8] document value 'license' and updating helm/README.me from values.yaml --- apigateway/helm/README.md | 20 ++++++++++++++++++-- microservicesruntime/helm/README.md | 1 + universalmessaging/helm/README.md | 1 + 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/apigateway/helm/README.md b/apigateway/helm/README.md index 00ed993..e00c1c2 100644 --- a/apigateway/helm/README.md +++ b/apigateway/helm/README.md @@ -162,7 +162,7 @@ helm upgrade -i -f myvalues.yaml --set ingress.tls.key="$(tls". | +| ingress.tls.secretProviderClassName | string | `""` | | +| ingress.tls.secretProviderEnabled | bool | `false` | | +| ingress.tls.secretProviderName | string | `""` | | +| ingress.tls.secretProviderParameters | object | `{}` | | | ingresses.admin.annotations."nginx.ingress.kubernetes.io/affinity" | string | `"cookie"` | | | ingresses.admin.className | string | `"nginx"` | | | ingresses.admin.defaultHost | string | `""` | | @@ -251,8 +258,10 @@ helm upgrade -i -f myvalues.yaml --set ingress.tls.key="$( /usr/share/message"] postStart: exec: command: ["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"] | diff --git a/microservicesruntime/helm/README.md b/microservicesruntime/helm/README.md index 444996e..d9fd0ab 100644 --- a/microservicesruntime/helm/README.md +++ b/microservicesruntime/helm/README.md @@ -139,6 +139,7 @@ helm install wm-msr webmethods/microservicesruntime \ | ingress.hosts[0].paths[0].pathType | string | `"Prefix"` | Path type to address the backend | | ingress.hosts[0].paths[0].port | int | `5555` | Port of service | | ingress.tls | list | `[]` | TLS of Ingress | +| license | string | `""` | Import the content as license key and create a ConfigMap named by `licenseConfigMap` value. You can copy/past the content of your provided license key file here. | | lifecycle | object | `{}` | lifecycle hooks to execute on preStop / postStart,... | | livenessProbe | object | `{"failureThreshold":3,"httpGet":{"path":"/health/liveness","port":"http"},"initialDelaySeconds":0,"periodSeconds":15,"successThreshold":1,"timeoutSeconds":30}` | Configure liveness probe | | metering.accumulationPeriod | string | `"1800"` | The period in seconds for which data is accumulated before a log record is produced. | diff --git a/universalmessaging/helm/README.md b/universalmessaging/helm/README.md index df42687..fe4fc03 100644 --- a/universalmessaging/helm/README.md +++ b/universalmessaging/helm/README.md @@ -91,6 +91,7 @@ helm install um webmethods/universalmessaging | ingress.hosts[0].paths[0].pathType | string | `"Prefix"` | Path type to address the backend | | ingress.hosts[0].paths[0].port | int | `9000` | Port of service | | ingress.tls | list | `[]` | TLS of Ingress | +| license | string | `""` | Import the content as license key and create a ConfigMap named by `licenseConfigMap` value. You can copy/past the content of your provided license key file here. | | licenseConfigMap | string | `"universalmessaging-licence-key"` | Name of the licence config map | | lifecycle | object | `{}` | lifecycle hooks to execute on preStop / postStart,... | | livenessProbe | object | `{"failureThreshold":3,"httpGet":{"path":"/health/","port":9000},"initialDelaySeconds":0,"periodSeconds":15,"successThreshold":1,"timeoutSeconds":30}` | Configure liveness probe | From f22f45737d0ecff58ecb7a7c63faf628b16620c8 Mon Sep 17 00:00:00 2001 From: thr Date: Mon, 19 Feb 2024 09:51:57 +0100 Subject: [PATCH 8/8] nindent added --- apigateway/helm/templates/license.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apigateway/helm/templates/license.yaml b/apigateway/helm/templates/license.yaml index 7fdd707..ed2fd2c 100644 --- a/apigateway/helm/templates/license.yaml +++ b/apigateway/helm/templates/license.yaml @@ -32,5 +32,5 @@ metadata: helm.sh/resource-policy: keep data: licensekey: - {{ .Values.license | toYaml }} + {{ .Values.license | toYaml | nindent 4 }} {{- end }} \ No newline at end of file