diff --git a/api/v1alpha1/docs/apiref.adoc b/api/v1alpha1/docs/apiref.adoc index d012ef39..3697e67a 100644 --- a/api/v1alpha1/docs/apiref.adoc +++ b/api/v1alpha1/docs/apiref.adoc @@ -2133,6 +2133,10 @@ Optional: \{} + | *`workatoWebHookURL`* __string__ | WorkatoWebHookURL is used by the UI to push events to Marketo for analytics purposes. + The webhook URL is unique per environment. + | | Optional: \{} + +| *`disabledIntegrations`* __string array__ | DisabledIntegrations specifies the list of integrations that should be + +hidden/disabled in the UI. When nil or empty, all integrations are + +considered enabled. Only listed integrations are hidden. + | | Optional: \{} + + |=== diff --git a/api/v1alpha1/toolchainconfig_types.go b/api/v1alpha1/toolchainconfig_types.go index 597286bd..924357d1 100644 --- a/api/v1alpha1/toolchainconfig_types.go +++ b/api/v1alpha1/toolchainconfig_types.go @@ -250,6 +250,13 @@ type RegistrationServiceConfig struct { // The webhook URL is unique per environment. // +optional WorkatoWebHookURL *string `json:"workatoWebHookURL,omitempty"` + + // DisabledIntegrations specifies the list of integrations that should be + // hidden/disabled in the UI. When nil or empty, all integrations are + // considered enabled. Only listed integrations are hidden. + // +optional + // +listType=set + DisabledIntegrations []string `json:"disabledIntegrations,omitempty"` } // RegistrationServiceAnalyticsConfig contains the subset of registration service configuration parameters related to analytics diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 94364f9a..160cf284 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -1927,6 +1927,11 @@ func (in *RegistrationServiceConfig) DeepCopyInto(out *RegistrationServiceConfig *out = new(string) **out = **in } + if in.DisabledIntegrations != nil { + in, out := &in.DisabledIntegrations, &out.DisabledIntegrations + *out = make([]string, len(*in)) + copy(*out, *in) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistrationServiceConfig. diff --git a/api/v1alpha1/zz_generated.openapi.go b/api/v1alpha1/zz_generated.openapi.go index e11ca24b..7cb949bc 100644 --- a/api/v1alpha1/zz_generated.openapi.go +++ b/api/v1alpha1/zz_generated.openapi.go @@ -2631,6 +2631,26 @@ func schema_codeready_toolchain_api_api_v1alpha1_RegistrationServiceConfig(ref c Format: "", }, }, + "disabledIntegrations": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "DisabledIntegrations specifies the list of integrations that should be hidden/disabled in the UI. When nil or empty, all integrations are considered enabled. Only listed integrations are hidden.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, }, }, },