config/sysinv/sysinv/sysinv/sysinv/helm
Carmen Rata eef577f13d Update application namespaces PSA labels
This commit updates the per-mode version of Pod Security Admission
labels to "latest" for application namespaces such as cert-manager.
Pod Security Admission labels on namespaces are needed for pod
security admission controller to know how restrictive each
namespace is.
Pinning to a specific Kubernetes version, for example v1.23, allows
the behavior to remain consistent as policy changes happen over
Kubernetes releases. Keeping the version "latest" as the default,
allows more flexibility when supporting multiple kubernetes
versions.
This commit also updates the application namespaces label default
levels to "privileged" from "baseline". This will cause no-harm
if users do not wish to use "beta" PSA feature enabled by default
in Kubernetes v1.23+.

Test Plan:
PASS: In an installed system verify that the pod security admission
      labels of the cert-manager namespace has been updated with the
      per-mode version "latest".
PASS: Created namespaces where policies are applied via labels.
      Privileged pods fail to get created in namespaces that are not
      configured with privileged policy level.
PASS: Privileged pods get created in namespaces with no security
      policy labels.

Story: 2009833
Task: 45632

Signed-off-by: Carmen Rata <carmen.rata@windriver.com>
Change-Id: I76d44873ac447bbc0e2d90643fedf38bef8ebd1a
2022-06-17 20:30:18 -04:00
..
__init__.py Helm Backend for chart specific system overrides 2018-07-31 15:48:45 -04:00
base.py FluxCD: Support disabling release instead of chart 2022-06-13 12:22:07 -03:00
common.py Update application namespaces PSA labels 2022-06-17 20:30:18 -04:00
helm.py Merge "App Fmwk: Add support for FluxCDKustomizeOperator" 2022-05-24 21:32:57 +00:00
kustomize_base.py FluxCD: Support disabling release instead of chart 2022-06-13 12:22:07 -03:00
kustomize_generic.py App Fmwk: Add support for FluxCDKustomizeOperator 2022-05-20 16:09:32 -04:00
lifecycle_base.py Add pod security admission controller labels 2022-03-25 16:43:21 -04:00
lifecycle_constants.py Add lifecycle hook to allow to_app application-update semantic checking 2021-04-23 06:55:55 -04:00
lifecycle_generic.py Introduce lifecycle operator 2021-01-19 11:26:20 +02:00
lifecycle_hook.py Send application lifecycle notifications for backup and restore. 2021-04-12 08:29:32 +00:00
lifecycle_utils.py Update application namespaces PSA labels 2022-06-17 20:30:18 -04:00
manifest_base.py App Fmwk: Add support for FluxCDKustomizeOperator 2022-05-20 16:09:32 -04:00
manifest_generic.py Eliminate unnecessary imported modules 2019-09-23 11:27:05 +08:00
utils.py Address python3 string issues with subprocess 2021-08-11 10:59:49 -04:00