Skip to content

Commit

Permalink
Fix missing definition in CRD (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
tof1a authored Mar 2, 2023
1 parent 6814e58 commit 1d6522a
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions pkg/crd/crds.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,62 @@ var (
Maximum: pointers.NewFloat64(8),
Minimum: pointers.NewFloat64(1),
},
"nodeSelector": {
Type: "object",
XPreserveUnknownFields: pointers.NewBool(true),
},
"resources": {
Type: "object",
Properties: map[string]extsv1.JSONSchemaProps{
"limits": {
Type: "object",
Properties: map[string]extsv1.JSONSchemaProps{
"cpu": {
Type: "string",
},
"memory": {
Type: "string",
},
},
},
"requests": {
Type: "object",
Properties: map[string]extsv1.JSONSchemaProps{
"cpu": {
Type: "string",
},
"memory": {
Type: "string",
},
},
},
},
},
"tolerations": {
Type: "array",
Items: &extsv1.JSONSchemaPropsOrArray{
Schema: &extsv1.JSONSchemaProps{
Type: "object",
Properties: map[string]extsv1.JSONSchemaProps{
"effect": {
Type: "string",
},
"key": {
Type: "string",
},
"operator": {
Type: "string",
},
"tolerationSeconds": {
Type: "integer",
},
"value": {
Type: "string",
},
},
},
},
},
"version": {
Type: "string",
Pattern: `^\d+\.\d+\.\d+(\.\d+)?$`,
Expand Down

0 comments on commit 1d6522a

Please sign in to comment.