Skip to content

Commit 12ff40f

Browse files
authored
feature: type for "disabled integrations" in the config (#502)
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 disabled. SANDBOX-1769
1 parent 4ff0e6b commit 12ff40f

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+
| *`disabledIntegrations`* __string array__ | DisabledIntegrations specifies the list of integrations that should be +
2137+
hidden/disabled in the UI. When nil or empty, all integrations are +
2138+
considered enabled. Only listed integrations are hidden. + | | 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+
// DisabledIntegrations specifies the list of integrations that should be
255+
// hidden/disabled in the UI. When nil or empty, all integrations are
256+
// considered enabled. Only listed integrations are hidden.
257+
// +optional
258+
// +listType=set
259+
DisabledIntegrations []string `json:"disabledIntegrations,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)