Skip to content

Commit

Permalink
Remove unneeded caBundle: Cg== value
Browse files Browse the repository at this point in the history
  - As per the comment in source, this field is no
    longer needed.
  • Loading branch information
matthchr committed Oct 1, 2020
1 parent e81ea43 commit ea00a02
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 ea00a02

Please sign in to comment.