forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(calico-3.29.yaml): Disable the calico-apiserver 3.29.2 when Valid…
…ating Admission Policy checks until upstream tigrea operator adds the required rules Because we are using tigera-operator during image test we are reliant on tigera-operator setting up all the required rbac rules that are needed for calico-apiserver to run. This is a temporary solution until tigera/operator#3780 is resovled upstream with a new release of tigera-operator. This issue was highlighed in calico-apiserver 3.29.2 when Validating Admission Policy became enabled by default. This patch disables the Validating Admission Policy in calico-apiserver until the issue is resolved. Signed-off-by: philroche <phil.roche@chainguard.dev>
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
calico-3.29/calico-apiserver-disable-validating-admission-policy.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/apiserver/cmd/apiserver/server/options.go b/apiserver/cmd/apiserver/server/options.go | ||
index 3701a9659..f8637cff6 100644 | ||
--- a/apiserver/cmd/apiserver/server/options.go | ||
+++ b/apiserver/cmd/apiserver/server/options.go | ||
@@ -68,7 +68,7 @@ func (o *CalicoServerOptions) addFlags(flags *pflag.FlagSet) { | ||
"If true, prints swagger to stdout and exits.") | ||
flags.StringVar(&o.SwaggerFilePath, "swagger-file-path", "./", | ||
"If print-swagger is set true, then write swagger.json to location specified. Default is current directory.") | ||
- flags.BoolVar(&o.EnableValidatingAdmissionPolicy, "enable-validating-admission-policy", true, | ||
+ flags.BoolVar(&o.EnableValidatingAdmissionPolicy, "enable-validating-admission-policy", false, | ||
"If true, establishes watches for ValidatingAdmissionPolicy at startup.") | ||
} | ||
|