Skip to content

Commit

Permalink
Merge pull request #495 from matthchr/feature/cabundle
Browse files Browse the repository at this point in the history
🐛 Remove unneeded caBundle: Cg== value
  • Loading branch information
k8s-ci-robot authored Oct 13, 2020
2 parents 9d7db16 + ea00a02 commit d9cb41e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion pkg/crd/markers/zz_generated.markerhelp.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions pkg/webhook/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,6 @@ func (c Config) clientConfig() admissionregv1.WebhookClientConfig {
Namespace: "system",
Path: &path,
},
// OpenAPI marks the field as required before 1.13 because of a bug that got fixed in
// https://github.com/kubernetes/api/commit/e7d9121e9ffd63cea0288b36a82bcc87b073bd1b
// Put "\n" as an placeholder as a workaround til 1.13+ is almost everywhere.
CABundle: []byte("\n"),
}
}

Expand Down
2 changes: 0 additions & 2 deletions pkg/webhook/testdata/manifests.v1beta1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ webhooks:
- v1
- v1beta1
clientConfig:
caBundle: Cg==
service:
name: webhook-service
namespace: system
Expand Down Expand Up @@ -38,7 +37,6 @@ metadata:
name: validating-webhook-configuration
webhooks:
- clientConfig:
caBundle: Cg==
service:
name: webhook-service
namespace: system
Expand Down
2 changes: 0 additions & 2 deletions pkg/webhook/testdata/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ webhooks:
- v1
- v1beta1
clientConfig:
caBundle: Cg==
service:
name: webhook-service
namespace: system
Expand Down Expand Up @@ -41,7 +40,6 @@ webhooks:
- v1
- v1beta1
clientConfig:
caBundle: Cg==
service:
name: webhook-service
namespace: system
Expand Down

0 comments on commit d9cb41e

Please sign in to comment.