Skip to content

Commit c45296c

Browse files
committed
Update CRDs to support providers and status in ResourceHandles
- Add spec.provider for ResourceHandles - Add status.summary for ResourceHandles - Add spec.provider for ResourcePools - Fix typos
1 parent 326eb2d commit c45296c

File tree

5 files changed

+86
-4
lines changed

5 files changed

+86
-4
lines changed

helm/crds/resourceclaims.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ spec:
8989
provider:
9090
description: >-
9191
ResourceProvider specification used to manage this claim.
92-
Mutually exclusive with provider.
92+
Mutually exclusive with resources.
9393
type: object
9494
required:
9595
- name
@@ -100,7 +100,7 @@ spec:
100100
type: string
101101
parameterValues:
102102
description: >-
103-
Parameter values used with this ResourcProvider.
103+
Parameter values used with the ResourceProvider.
104104
type: object
105105
x-kubernetes-preserve-unknown-fields: true
106106
resources:

helm/crds/resourcehandles.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,24 @@ spec:
9090
Ex: "3d" for 3 days.
9191
This value may be a template string.
9292
type: string
93+
provider:
94+
description: >-
95+
ResourceProvider specification used to generate resources rather than
96+
explicitly list spec.
97+
Mutually exclusive with resources.
98+
type: object
99+
required:
100+
- name
101+
properties:
102+
name:
103+
description: >-
104+
ResourceProvider name.
105+
type: string
106+
parameterValues:
107+
description: >-
108+
Parameter values used with the ResourceProvider to generate resources list.
109+
type: object
110+
x-kubernetes-preserve-unknown-fields: true
93111
resourceClaim:
94112
description: >-
95113
ResourceClaim reference for claim matched to this ResourceHandle when the handle has been claimed.
@@ -206,3 +224,8 @@ spec:
206224
description: Kopf status
207225
type: object
208226
x-kubernetes-preserve-unknown-fields: true
227+
summary:
228+
description: >-
229+
Status summary from current resources state, generated from ResourceProvider configuration.
230+
type: object
231+
x-kubernetes-preserve-unknown-fields: true

helm/crds/resourcepools.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,42 @@ spec:
8989
ResourcePool.
9090
type: integer
9191
minimum: 0
92+
provider:
93+
description: >-
94+
ResourceProvider specification used to generate resources rather than
95+
explicitly list spec.
96+
Mutually exclusive with resources.
97+
type: object
98+
required:
99+
- name
100+
properties:
101+
name:
102+
description: >-
103+
ResourceProvider name.
104+
type: string
105+
parameterValues:
106+
description: >-
107+
Parameter values used with the ResourceProvider to generate resources list.
108+
type: object
109+
x-kubernetes-preserve-unknown-fields: true
110+
provider:
111+
description: >-
112+
ResourceProvider specification used to generate resources rather than
113+
explicitly list spec.
114+
Mutually exclusive with resources.
115+
type: object
116+
required:
117+
- name
118+
properties:
119+
name:
120+
description: >-
121+
ResourceProvider name.
122+
type: string
123+
parameterValues:
124+
description: >-
125+
Parameter values used with the ResourceProvider to generate resources list.
126+
type: object
127+
x-kubernetes-preserve-unknown-fields: true
92128
resources:
93129
description: >-
94130
Resources description to apply to ResourceHandles for the pool.

helm/templates/crds/resourceclaims.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ spec:
9090
provider:
9191
description: >-
9292
ResourceProvider specification used to manage this claim.
93-
Mutually exclusive with provider.
93+
Mutually exclusive with resources.
9494
type: object
9595
required:
9696
- name
@@ -101,7 +101,7 @@ spec:
101101
type: string
102102
parameterValues:
103103
description: >-
104-
Parameter values used with this ResourcProvider.
104+
Parameter values used with the ResourceProvider.
105105
type: object
106106
x-kubernetes-preserve-unknown-fields: true
107107
resources:

helm/templates/crds/resourcehandles.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,24 @@ spec:
9191
Ex: "3d" for 3 days.
9292
This value may be a template string.
9393
type: string
94+
provider:
95+
description: >-
96+
ResourceProvider specification used to generate resources rather than
97+
explicitly list spec.
98+
Mutually exclusive with resources.
99+
type: object
100+
required:
101+
- name
102+
properties:
103+
name:
104+
description: >-
105+
ResourceProvider name.
106+
type: string
107+
parameterValues:
108+
description: >-
109+
Parameter values used with the ResourceProvider to generate resources list.
110+
type: object
111+
x-kubernetes-preserve-unknown-fields: true
94112
resourceClaim:
95113
description: >-
96114
ResourceClaim reference for claim matched to this ResourceHandle when the handle has been claimed.
@@ -207,4 +225,9 @@ spec:
207225
description: Kopf status
208226
type: object
209227
x-kubernetes-preserve-unknown-fields: true
228+
summary:
229+
description: >-
230+
Status summary from current resources state, generated from ResourceProvider configuration.
231+
type: object
232+
x-kubernetes-preserve-unknown-fields: true
210233
{{- end -}}

0 commit comments

Comments
 (0)