Skip to content

feat: kyverno policy for image-pull-secrets#47

Merged
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:kyverno-policy-for-image-pull-secrets
Oct 31, 2023
Merged

feat: kyverno policy for image-pull-secrets#47
thesuperzapper merged 1 commit into
deployKF:mainfrom
thesuperzapper:kyverno-policy-for-image-pull-secrets

Conversation

@thesuperzapper

@thesuperzapper thesuperzapper commented Oct 31, 2023

Copy link
Copy Markdown
Member

This PR adds a Kyverno ClusterPolicy which automatically replicates and injects Pod imagePullSecrets across the cluster.
This policy is primarily needed when using private container registries or for avoiding DockerHub pull limits.

As the new ClusterPolicy lives in the embedded Kyverno chart, we had to make some small changes to the sync_argocd_apps.sh script. Previously, we were always force-syncing ClusterPolicies (with clone or generate in the name), even if they were "missing" from the cluster, which caused a failure on the first sync, as this would result in the ClusterPolicy being applied before its CRD.

@thesuperzapper thesuperzapper added this to the v0.1.3 milestone Oct 31, 2023
@thesuperzapper
thesuperzapper merged commit 84180e5 into deployKF:main Oct 31, 2023
@thesuperzapper
thesuperzapper deleted the kyverno-policy-for-image-pull-secrets branch October 31, 2023 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant