From: garciadeblas Date: Thu, 26 Sep 2024 12:08:58 +0000 (+0200) Subject: Update workflowtemplates for profiles and ksus X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F14623%2F1;p=osm%2Fdevops.git Update workflowtemplates for profiles and ksus Change-Id: Ifb6d2dee46fca0215bb64a2b80b0befd156c7855 Signed-off-by: garciadeblas --- diff --git a/installers/mgmt-cluster/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/ksu-management-wft.yaml b/installers/mgmt-cluster/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/ksu-management-wft.yaml index 67a4f871..71dc58b9 100644 --- a/installers/mgmt-cluster/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/ksu-management-wft.yaml +++ b/installers/mgmt-cluster/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/ksu-management-wft.yaml @@ -94,6 +94,7 @@ spec: secretKeyRef: name: "{{inputs.parameters.reference_secret_for_values}}" key: "{{inputs.parameters.reference_key_for_values}}" + optional: true default: "" - name: DEBUG value: "{{inputs.parameters.debug}}" @@ -210,6 +211,7 @@ spec: secretKeyRef: name: "{{inputs.parameters.reference_secret_for_values}}" key: "{{inputs.parameters.reference_key_for_values}}" + optional: true default: "" - name: DEBUG value: "{{inputs.parameters.debug}}" @@ -330,6 +332,7 @@ spec: secretKeyRef: name: "{{inputs.parameters.reference_secret_for_values}}" key: "{{inputs.parameters.reference_key_for_values}}" + optional: true default: "" - name: DEBUG value: "{{inputs.parameters.debug}}" @@ -445,6 +448,7 @@ spec: secretKeyRef: name: "{{inputs.parameters.reference_secret_for_values}}" key: "{{inputs.parameters.reference_key_for_values}}" + optional: true default: "" - name: DEBUG value: "{{inputs.parameters.debug}}" diff --git a/installers/mgmt-cluster/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/profile-management-wft.yaml b/installers/mgmt-cluster/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/profile-management-wft.yaml index 64917be1..17566d1f 100644 --- a/installers/mgmt-cluster/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/profile-management-wft.yaml +++ b/installers/mgmt-cluster/flux/templates/sw-catalogs/infra-configs/osm-workflows/templates/wf-templates/building-blocks/profile-management-wft.yaml @@ -50,10 +50,6 @@ spec: container: image: ttl.sh/osm-krm-functions:24h # imagePullPolicy: Always - # securityContext: - # runAsUser: 10000 - # runAsGroup: 10000 - # fsGroup: 10000 volumeMounts: - name: fleet-repo-volume mountPath: '{{inputs.parameters.fleet_mount_path}}' @@ -65,6 +61,10 @@ spec: - "{{inputs.parameters.project_name}}" - "{{inputs.parameters.fleet_repo_url}}" - "{{inputs.parameters.fleet_repo_dir}}" + securityContext: + fsGroup: 10000 + # runAsUser: 10000 + # runAsGroup: 10000 # Delete a profile @@ -93,10 +93,6 @@ spec: container: image: ttl.sh/osm-krm-functions:24h # imagePullPolicy: Always - # securityContext: - # runAsUser: 10000 - # runAsGroup: 10000 - # fsGroup: 10000 volumeMounts: - name: fleet-repo-volume mountPath: '{{inputs.parameters.fleet_mount_path}}' @@ -107,6 +103,10 @@ spec: - "{{inputs.parameters.profile_type}}" - "{{inputs.parameters.project_name}}" - "{{inputs.parameters.fleet_repo_dir}}" + securityContext: + fsGroup: 10000 + # runAsUser: 10000 + # runAsGroup: 10000 # Attach a profile to a cluster @@ -135,10 +135,6 @@ spec: container: image: ttl.sh/osm-krm-functions:24h # imagePullPolicy: Always - # securityContext: - # runAsUser: 10000 - # runAsGroup: 10000 - # fsGroup: 10000 volumeMounts: - name: fleet-repo-volume mountPath: '{{inputs.parameters.fleet_mount_path}}' @@ -150,6 +146,10 @@ spec: - "{{inputs.parameters.project_name}}" - "{{inputs.parameters.cluster_kustomization_name}}" - "{{inputs.parameters.fleet_repo_dir}}" + securityContext: + fsGroup: 10000 + # runAsUser: 10000 + # runAsGroup: 10000 # Detach profile from cluster @@ -178,10 +178,6 @@ spec: container: image: ttl.sh/osm-krm-functions:24h # imagePullPolicy: Always - # securityContext: - # runAsUser: 10000 - # runAsGroup: 10000 - # fsGroup: 10000 volumeMounts: - name: fleet-repo-volume mountPath: '{{inputs.parameters.fleet_mount_path}}' @@ -193,3 +189,7 @@ spec: - "{{inputs.parameters.project_name}}" - "{{inputs.parameters.cluster_kustomization_name}}" - "{{inputs.parameters.fleet_repo_dir}}" + securityContext: + fsGroup: 10000 + # runAsUser: 10000 + # runAsGroup: 10000