Skip to content

Commit

Permalink
Update CRDs to support providers and status in ResourceHandles
Browse files Browse the repository at this point in the history
- Add spec.provider for ResourceHandles
- Add status.summary for ResourceHandles
- Add spec.provider for ResourcePools
- Fix typos
  • Loading branch information
jkupferer committed Jun 17, 2024
1 parent 326eb2d commit c45296c
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 4 deletions.
4 changes: 2 additions & 2 deletions helm/crds/resourceclaims.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ spec:
provider:
description: >-
ResourceProvider specification used to manage this claim.
Mutually exclusive with provider.
Mutually exclusive with resources.
type: object
required:
- name
Expand All @@ -100,7 +100,7 @@ spec:
type: string
parameterValues:
description: >-
Parameter values used with this ResourcProvider.
Parameter values used with the ResourceProvider.
type: object
x-kubernetes-preserve-unknown-fields: true
resources:
Expand Down
23 changes: 23 additions & 0 deletions helm/crds/resourcehandles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,24 @@ spec:
Ex: "3d" for 3 days.
This value may be a template string.
type: string
provider:
description: >-
ResourceProvider specification used to generate resources rather than
explicitly list spec.
Mutually exclusive with resources.
type: object
required:
- name
properties:
name:
description: >-
ResourceProvider name.
type: string
parameterValues:
description: >-
Parameter values used with the ResourceProvider to generate resources list.
type: object
x-kubernetes-preserve-unknown-fields: true
resourceClaim:
description: >-
ResourceClaim reference for claim matched to this ResourceHandle when the handle has been claimed.
Expand Down Expand Up @@ -206,3 +224,8 @@ spec:
description: Kopf status
type: object
x-kubernetes-preserve-unknown-fields: true
summary:
description: >-
Status summary from current resources state, generated from ResourceProvider configuration.
type: object
x-kubernetes-preserve-unknown-fields: true
36 changes: 36 additions & 0 deletions helm/crds/resourcepools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,42 @@ spec:
ResourcePool.
type: integer
minimum: 0
provider:
description: >-
ResourceProvider specification used to generate resources rather than
explicitly list spec.
Mutually exclusive with resources.
type: object
required:
- name
properties:
name:
description: >-
ResourceProvider name.
type: string
parameterValues:
description: >-
Parameter values used with the ResourceProvider to generate resources list.
type: object
x-kubernetes-preserve-unknown-fields: true
provider:
description: >-
ResourceProvider specification used to generate resources rather than
explicitly list spec.
Mutually exclusive with resources.
type: object
required:
- name
properties:
name:
description: >-
ResourceProvider name.
type: string
parameterValues:
description: >-
Parameter values used with the ResourceProvider to generate resources list.
type: object
x-kubernetes-preserve-unknown-fields: true
resources:
description: >-
Resources description to apply to ResourceHandles for the pool.
Expand Down
4 changes: 2 additions & 2 deletions helm/templates/crds/resourceclaims.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ spec:
provider:
description: >-
ResourceProvider specification used to manage this claim.
Mutually exclusive with provider.
Mutually exclusive with resources.
type: object
required:
- name
Expand All @@ -101,7 +101,7 @@ spec:
type: string
parameterValues:
description: >-
Parameter values used with this ResourcProvider.
Parameter values used with the ResourceProvider.
type: object
x-kubernetes-preserve-unknown-fields: true
resources:
Expand Down
23 changes: 23 additions & 0 deletions helm/templates/crds/resourcehandles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,24 @@ spec:
Ex: "3d" for 3 days.
This value may be a template string.
type: string
provider:
description: >-
ResourceProvider specification used to generate resources rather than
explicitly list spec.
Mutually exclusive with resources.
type: object
required:
- name
properties:
name:
description: >-
ResourceProvider name.
type: string
parameterValues:
description: >-
Parameter values used with the ResourceProvider to generate resources list.
type: object
x-kubernetes-preserve-unknown-fields: true
resourceClaim:
description: >-
ResourceClaim reference for claim matched to this ResourceHandle when the handle has been claimed.
Expand Down Expand Up @@ -207,4 +225,9 @@ spec:
description: Kopf status
type: object
x-kubernetes-preserve-unknown-fields: true
summary:
description: >-
Status summary from current resources state, generated from ResourceProvider configuration.
type: object
x-kubernetes-preserve-unknown-fields: true
{{- end -}}

0 comments on commit c45296c

Please sign in to comment.