Skip to content

Commit 621221a

Browse files
committed
feature: type for "enabled integrations" in the config
We want to be able to control the integrations that are displayed in the UI via the ToolchainConfig, and in order to do that we need to have a field that controls which integrations are enbaled and which are not. SANDBOX-1769
1 parent 4ff0e6b commit 621221a

4 files changed

Lines changed: 36 additions & 0 deletions

File tree

api/v1alpha1/docs/apiref.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,6 +2133,10 @@ Optional: \{} +
21332133
| *`workatoWebHookURL`* __string__ | WorkatoWebHookURL is used by the UI to push events to Marketo for analytics purposes. +
21342134
The webhook URL is unique per environment. + | | Optional: \{} +
21352135

2136+
| *`enabledIntegrations`* __string array__ | EnabledIntegrations specifies the list of integrations that should be +
2137+
visible/enabled in the UI. When nil or empty, all integrations are +
2138+
considered enabled. When populated, only the listed integrations are shown. + | | Optional: \{} +
2139+
21362140
|===
21372141

21382142

api/v1alpha1/toolchainconfig_types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,13 @@ type RegistrationServiceConfig struct {
250250
// The webhook URL is unique per environment.
251251
// +optional
252252
WorkatoWebHookURL *string `json:"workatoWebHookURL,omitempty"`
253+
254+
// EnabledIntegrations specifies the list of integrations that should be
255+
// visible/enabled in the UI. When nil or empty, all integrations are
256+
// considered enabled. When populated, only the listed integrations are shown.
257+
// +optional
258+
// +listType=set
259+
EnabledIntegrations []string `json:"enabledIntegrations,omitempty"`
253260
}
254261

255262
// RegistrationServiceAnalyticsConfig contains the subset of registration service configuration parameters related to analytics

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha1/zz_generated.openapi.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)