-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CRD to apiextensions.k8s.io/v1
- Loading branch information
Marko Mikulicic
committed
Dec 18, 2020
1 parent
0b2ea97
commit a5c4f54
Showing
4 changed files
with
50 additions
and
7 deletions.
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
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
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,27 @@ | ||
{ | ||
CustomResourceDefinition(group, version, kind): { | ||
local this = self, | ||
apiVersion: 'apiextensions.k8s.io/v1', | ||
kind: 'CustomResourceDefinition', | ||
metadata+: { | ||
name: this.spec.names.plural + '.' + this.spec.group, | ||
}, | ||
spec: { | ||
scope: 'Namespaced', | ||
group: group, | ||
versions_:: { | ||
[version]: { | ||
served: true, | ||
storage: true, | ||
}, | ||
}, | ||
versions: $.mapToNamedList(self.versions_), | ||
names: { | ||
kind: kind, | ||
singular: $.toLower(self.kind), | ||
plural: self.singular + 's', | ||
listKind: self.kind + 'List', | ||
}, | ||
}, | ||
}, | ||
} |
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,7 @@ | ||
openAPIV3Schema: | ||
type: object | ||
properties: | ||
spec: | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
properties: {} |