From 909a7aec0912ba80028fc3d5c6faadc328807176 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Thu, 26 Sep 2024 14:08:58 +0200 Subject: [PATCH] Update workflowtemplates for profiles and ksus Change-Id: Ifb6d2dee46fca0215bb64a2b80b0befd156c7855 Signed-off-by: garciadeblas --- .../building-blocks/ksu-management-wft.yaml | 4 +++ .../profile-management-wft.yaml | 32 +++++++++---------- 2 files changed, 20 insertions(+), 16 deletions(-) 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 -- 2.25.1