From 18493eae06c6759a5c915025d06e393040b62c22 Mon Sep 17 00:00:00 2001 From: Francisc Munteanu Date: Wed, 29 May 2024 11:51:05 +0200 Subject: [PATCH 1/3] update api version --- api/v1alpha1/zz_generated.openapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1alpha1/zz_generated.openapi.go b/api/v1alpha1/zz_generated.openapi.go index 0597c18d..182fe924 100644 --- a/api/v1alpha1/zz_generated.openapi.go +++ b/api/v1alpha1/zz_generated.openapi.go @@ -5213,7 +5213,7 @@ func schema_codeready_toolchain_api_api_v1alpha1_WebhookConfig(ref common.Refere Properties: map[string]spec.Schema{ "deploy": { SchemaProps: spec.SchemaProps{ - Description: "Defines the flag that determines whether to deploy the Webhook. If the deploy flag is disabled, the Webhook is deployed and deleted immediately after by the memberoperatorconfig controller.", + Description: "Defines the flag that determines whether to deploy the Webhook. If the deploy flag is set to False and the Webhook was deployed previously it will be deleted by the memberoperatorconfig controller.", Type: []string{"boolean"}, Format: "", }, From 870f14a6831ae6b2eb9187cb1d75a16d759e9415 Mon Sep 17 00:00:00 2001 From: Devtools Date: Wed, 26 Feb 2025 12:51:51 +0100 Subject: [PATCH 2/3] add reasons for nstemplatetier --- api/v1alpha1/nstemplatetier_types.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/v1alpha1/nstemplatetier_types.go b/api/v1alpha1/nstemplatetier_types.go index 159d33d2..b0d4d00f 100644 --- a/api/v1alpha1/nstemplatetier_types.go +++ b/api/v1alpha1/nstemplatetier_types.go @@ -4,6 +4,14 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) +const ( + // NSTemplateTierProvisionedReason represents the reason for a successfully provisioned NSTemplateTier. + NSTemplateTierProvisionedReason = provisionedReason + + // NSTemplateTierUnableToEnsureRevisionsReason represents the reason for a successfully provisioned NSTemplateTier. + NSTemplateTierUnableToEnsureRevisionsReason = "UnableToEnsureRevisions" +) + // NSTemplateTierSpec defines the desired state of NSTemplateTier // +k8s:openapi-gen=true type NSTemplateTierSpec struct { From 6a56ad13b837c81c7a70fafc30bb7249d6dcba26 Mon Sep 17 00:00:00 2001 From: Devtools Date: Mon, 10 Nov 2025 15:52:44 +0100 Subject: [PATCH 3/3] add workato webhook config --- api/v1alpha1/docs/apiref.adoc | 2 ++ api/v1alpha1/toolchainconfig_types.go | 5 +++++ api/v1alpha1/zz_generated.deepcopy.go | 5 +++++ api/v1alpha1/zz_generated.openapi.go | 7 +++++++ 4 files changed, 19 insertions(+) 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: "", + }, + }, }, }, },