Skip to content

Commit

Permalink
Remove the unused crdVersion from CRD. (#1204)
Browse files Browse the repository at this point in the history
Result of discussion in #1198.

It was never used (verified by eyeballing git log -p all the way
down), we don't seem to know what it's for, and it has no counterpart in
the structs.

This is a baby step towards #862.
  • Loading branch information
porridge committed Dec 19, 2019
1 parent 5977dda commit ff75b96
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 12 deletions.
2 changes: 0 additions & 2 deletions config/crds/kudo_v1beta1_operatorversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ spec:
description: ConnectionString defines a templated string that can be
used to connect to an instance of the Operator.
type: string
crdVersion:
type: string
operator:
type: object
parameters:
Expand Down
2 changes: 0 additions & 2 deletions pkg/kudoctl/cmd/testdata/deploy-kudo-ns.yaml.golden
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ spec:
description: ConnectionString defines a templated string that can be
used to connect to an instance of the Operator.
type: string
crdVersion:
type: string
operator:
type: object
parameters:
Expand Down
2 changes: 0 additions & 2 deletions pkg/kudoctl/cmd/testdata/deploy-kudo-sa.yaml.golden
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ spec:
description: ConnectionString defines a templated string that can be
used to connect to an instance of the Operator.
type: string
crdVersion:
type: string
operator:
type: object
parameters:
Expand Down
2 changes: 0 additions & 2 deletions pkg/kudoctl/cmd/testdata/deploy-kudo-webhook.yaml.golden
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ spec:
description: ConnectionString defines a templated string that can be
used to connect to an instance of the Operator.
type: string
crdVersion:
type: string
operator:
type: object
parameters:
Expand Down
2 changes: 0 additions & 2 deletions pkg/kudoctl/cmd/testdata/deploy-kudo.yaml.golden
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ spec:
description: ConnectionString defines a templated string that can be
used to connect to an instance of the Operator.
type: string
crdVersion:
type: string
operator:
type: object
parameters:
Expand Down
3 changes: 1 addition & 2 deletions pkg/kudoctl/kudoinit/crd/crds.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ func operatorVersionCrd() *apiextv1beta1.CustomResourceDefinition {
Description: "UpgradableFrom lists all OperatorVersions that can upgrade to this OperatorVersion.",
Items: &apiextv1beta1.JSONSchemaPropsOrArray{Schema: &apiextv1beta1.JSONSchemaProps{Type: "object"}, JSONSchemas: []apiextv1beta1.JSONSchemaProps{}},
},
"crdVersion": {Type: "string"},
"version": {Type: "string"},
"version": {Type: "string"},
}

validationProps := map[string]apiextv1beta1.JSONSchemaProps{
Expand Down

0 comments on commit ff75b96

Please sign in to comment.