Skip to content

Commit 53b7bf2

Browse files
authored
Merge pull request #2176 from varshaprasad96/add/default-convReviewVersions
✨ add default conversion review versions
2 parents 9654afc + e5f095b commit 53b7bf2

File tree

19 files changed

+37
-0
lines changed

19 files changed

+37
-0
lines changed

pkg/cli/alpha/config-gen/cert-generation-filter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ type CertFilter struct {
3838
}
3939

4040
// Filter implements kio.Filter
41+
// TODO: when v1 CRDs are supported, scaffold conversion webhook versions.
4142
func (c CertFilter) Filter(input []*yaml.RNode) ([]*yaml.RNode, error) {
4243

4344
if c.Spec.Webhooks.CertificateSource.Type != "dev" {

pkg/plugins/common/kustomize/v1/scaffolds/internal/templates/config/crd/patches/enablewebhook_patch.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,7 @@ spec:
6666
namespace: system
6767
name: webhook-service
6868
path: /convert
69+
conversionReviewVersions:
70+
- {{ .Resource.API.CRDVersion }}
6971
{{- end }}
7072
`

testdata/project-v3-addon/config/crd/patches/webhook_in_admirals.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ spec:
1212
namespace: system
1313
name: webhook-service
1414
path: /convert
15+
conversionReviewVersions:
16+
- v1

testdata/project-v3-addon/config/crd/patches/webhook_in_captains.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ spec:
1212
namespace: system
1313
name: webhook-service
1414
path: /convert
15+
conversionReviewVersions:
16+
- v1

testdata/project-v3-addon/config/crd/patches/webhook_in_firstmates.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ spec:
1212
namespace: system
1313
name: webhook-service
1414
path: /convert
15+
conversionReviewVersions:
16+
- v1

testdata/project-v3-config/config/crd/patches/webhook_in_admirals.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ spec:
1212
namespace: system
1313
name: webhook-service
1414
path: /convert
15+
conversionReviewVersions:
16+
- v1

testdata/project-v3-config/config/crd/patches/webhook_in_captains.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ spec:
1212
namespace: system
1313
name: webhook-service
1414
path: /convert
15+
conversionReviewVersions:
16+
- v1

testdata/project-v3-config/config/crd/patches/webhook_in_firstmates.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ spec:
1212
namespace: system
1313
name: webhook-service
1414
path: /convert
15+
conversionReviewVersions:
16+
- v1

testdata/project-v3-multigroup/config/crd/patches/webhook_in_captains.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ spec:
1212
namespace: system
1313
name: webhook-service
1414
path: /convert
15+
conversionReviewVersions:
16+
- v1

testdata/project-v3-multigroup/config/crd/patches/webhook_in_cruisers.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ spec:
1212
namespace: system
1313
name: webhook-service
1414
path: /convert
15+
conversionReviewVersions:
16+
- v1

0 commit comments

Comments
 (0)