diff --git a/api/v1alpha1/runtimeconditionsprofile_types.go b/api/v1alpha1/runtimeconditionsprofile_types.go index 3ec66cd..f9f38a8 100644 --- a/api/v1alpha1/runtimeconditionsprofile_types.go +++ b/api/v1alpha1/runtimeconditionsprofile_types.go @@ -69,6 +69,13 @@ type Condition struct { // +kubebuilder:validation:MinLength=1 Kind string `json:"kind"` + // extension picks which extension's kind to use, when more than one + // resolved extension defines the same kind. Checked by a webhook, + // not here. + // +optional + // +kubebuilder:validation:MinLength=1 + Extension string `json:"extension,omitempty"` + // +required // +kubebuilder:pruning:PreserveUnknownFields Interface ConditionInterface `json:"interface"` diff --git a/config/crd/bases/runtimeconditions.io_runtimeconditionsprofiles.yaml b/config/crd/bases/runtimeconditions.io_runtimeconditionsprofiles.yaml index 112f96b..33d3a8e 100644 --- a/config/crd/bases/runtimeconditions.io_runtimeconditionsprofiles.yaml +++ b/config/crd/bases/runtimeconditions.io_runtimeconditionsprofiles.yaml @@ -48,6 +48,13 @@ spec: (additional interface fields, and any extra condition-level fields an extension's conditionFields declare) is left schemaless. properties: + extension: + description: |- + extension picks which extension's kind to use, when more than one + resolved extension defines the same kind. Checked by a webhook, + not here. + minLength: 1 + type: string interface: description: |- ConditionInterface is the workload-facing interface requirement for a