You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: foward image pull secrets
Adds a new controller CLI flag to allow used to define a list of secret
that must be set in the policy server deployments to allow the container
image to be downloaded from a private registry.
Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
Assisted-by: Github Copilot
* feat(charts): use flag to define image pull secrets
Updates the kubewarden-controller Helm chart to use the new controller
CLI flag that allow users to define a list of secrets with the data to
allowing container image download from private registries.
Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
Assisted-by: Github Copilot
* docs: Restore CRD, helm values docstrings
Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
---------
Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
Co-authored-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
// to ensure that exec-entrypoint and run can make use of them.
@@ -72,6 +73,7 @@ type Configuration struct {
72
73
ClientCAConfigMapNamestring
73
74
FeatureGateAdmissionWebhookMatchConditionsbool
74
75
WebhookServiceNamestring
76
+
ImagePullSecrets []corev1.LocalObjectReference
75
77
}
76
78
77
79
funcinit() {
@@ -93,6 +95,7 @@ func main() {
93
95
varenableOtelSidecarbool
94
96
varopenTelemetryClientCertificateSecretstring
95
97
varopenTelemetryCertificateSecretstring
98
+
varimagePullSecretsFlagstring
96
99
97
100
flag.StringVar(&mgrOpts.MetricsAddr, "metrics-bind-address", ":8088", "The address the metric endpoint binds to.")
98
101
flag.StringVar(&mgrOpts.ProbeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
@@ -120,11 +123,16 @@ func main() {
120
123
false,
121
124
"Always accept admission reviews targeting the deployments-namespace.")
122
125
flag.StringVar(&config.ClientCAConfigMapName, "client-ca-configmap-name", "", "The name of the ConfigMap containing the client CA certificate. If provided, mTLS will be enabled.")
126
+
flag.StringVar(&imagePullSecretsFlag,
127
+
"image-pull-secrets",
128
+
"",
129
+
"Comma-separated list of Secret names to use as imagePullSecrets on every policy-server Deployment. The secrets must exist in the deployments namespace.")
0 commit comments