diff --git a/api/v1alpha1/toolchainconfig_types.go b/api/v1alpha1/toolchainconfig_types.go index 66875692..7f2eb4e0 100644 --- a/api/v1alpha1/toolchainconfig_types.go +++ b/api/v1alpha1/toolchainconfig_types.go @@ -102,6 +102,11 @@ type AutomaticApprovalConfig struct { // Defines if the automatic approval is enabled or not // +optional Enabled *bool `json:"enabled,omitempty"` + + // Email domains to consider for auto-approval. + // +optional + // +listType=set + Domains []string `json:"domains,omitempty"` } // Contains default capacity threshold as well as specific ones for particular member clusters diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index aa3a8b91..b40ee9cb 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -37,6 +37,11 @@ func (in *AutomaticApprovalConfig) DeepCopyInto(out *AutomaticApprovalConfig) { *out = new(bool) **out = **in } + if in.Domains != nil { + in, out := &in.Domains, &out.Domains + *out = make([]string, len(*in)) + copy(*out, *in) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutomaticApprovalConfig. diff --git a/api/v1alpha1/zz_generated.openapi.go b/api/v1alpha1/zz_generated.openapi.go index 517e13f1..64892e2a 100644 --- a/api/v1alpha1/zz_generated.openapi.go +++ b/api/v1alpha1/zz_generated.openapi.go @@ -182,6 +182,26 @@ func schema_codeready_toolchain_api_api_v1alpha1_AutomaticApprovalConfig(ref com Format: "", }, }, + "domains": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Email domains to consider for auto-approval.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, }, }, },