diff --git a/api/v1alpha1/docs/apiref.adoc b/api/v1alpha1/docs/apiref.adoc index a45b17da..5edc1ff9 100644 --- a/api/v1alpha1/docs/apiref.adoc +++ b/api/v1alpha1/docs/apiref.adoc @@ -2040,6 +2040,8 @@ How this works: + - if the user has a number above the weight they keep using the current UI + | | Maximum: 100 + Minimum: 0 + +| *`workatoWebHookURL`* __string__ | WorkatoWebHookURL is used by the UI to push events to Marketo for analytics purposes. + +The webhook URL is unique per environment. + | | |=== diff --git a/api/v1alpha1/toolchainconfig_types.go b/api/v1alpha1/toolchainconfig_types.go index 137833c0..faf12ccc 100644 --- a/api/v1alpha1/toolchainconfig_types.go +++ b/api/v1alpha1/toolchainconfig_types.go @@ -258,6 +258,11 @@ type RegistrationServiceConfig struct { // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Maximum=100 UICanaryDeploymentWeight *int `json:"uiCanaryDeploymentWeight,omitempty"` + + // WorkatoWebHookURL is used by the UI to push events to Marketo for analytics purposes. + // The webhook URL is unique per environment. + // +optional + WorkatoWebHookURL *string `json:"workatoWebHookURL,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 4f3f0d8f..cdf7cb23 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -1964,6 +1964,11 @@ func (in *RegistrationServiceConfig) DeepCopyInto(out *RegistrationServiceConfig *out = new(int) **out = **in } + if in.WorkatoWebHookURL != nil { + in, out := &in.WorkatoWebHookURL, &out.WorkatoWebHookURL + *out = new(string) + **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 367de928..2437ea6d 100644 --- a/api/v1alpha1/zz_generated.openapi.go +++ b/api/v1alpha1/zz_generated.openapi.go @@ -2659,6 +2659,13 @@ func schema_codeready_toolchain_api_api_v1alpha1_RegistrationServiceConfig(ref c Format: "int32", }, }, + "workatoWebHookURL": { + SchemaProps: spec.SchemaProps{ + Description: "WorkatoWebHookURL is used by the UI to push events to Marketo for analytics purposes. The webhook URL is unique per environment.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, },