diff --git a/pkg/apis/common/v1/openapi_generated.go b/pkg/apis/common/v1/openapi_generated.go index 3a9cf462..9e986b84 100644 --- a/pkg/apis/common/v1/openapi_generated.go +++ b/pkg/apis/common/v1/openapi_generated.go @@ -364,6 +364,11 @@ func schema_pkg_apis_common_v1_JobStatus(ref common.ReferenceCallback) common.Op Type: []string{"object"}, Properties: map[string]spec.Schema{ "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, SchemaProps: spec.SchemaProps{ Description: "Conditions is an array of current observed job conditions.", Type: []string{"array"}, diff --git a/pkg/apis/common/v1/types.go b/pkg/apis/common/v1/types.go index 0b894b26..512842f5 100644 --- a/pkg/apis/common/v1/types.go +++ b/pkg/apis/common/v1/types.go @@ -22,6 +22,7 @@ import ( // +k8s:deepcopy-gen=true // JobStatus represents the current observed state of the training Job. type JobStatus struct { + // +listType=set // Conditions is an array of current observed job conditions. Conditions []JobCondition `json:"conditions"`