Skip to content

Commit 8f3b540

Browse files
authored
make account verifier flag enum (#507)
1 parent bbb0ba8 commit 8f3b540

4 files changed

Lines changed: 15 additions & 9 deletions

File tree

api/v1alpha1/docs/apiref.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2139,7 +2139,10 @@ considered enabled. Only listed integrations are hidden. + | | Optional: \{} +
21392139

21402140
| *`accountVerifierURL`* __string__ | AccountVerifierURL is the URL used to call the account verifier service + | | Optional: \{} +
21412141

2142-
| *`accountVerifierEnabled`* __boolean__ | AccountVerifierEnabled controls whether the registration service acts on responses from the account-verifier service. + | | Optional: \{} +
2142+
| *`accountVerifierMode`* __string__ | AccountVerifierMode controls how the registration service handles responses from the account-verifier service. +
2143+
Valid values are "disabled" (do not call the verifier), "log" (call but only log the response), +
2144+
and "enabled" (call and enforce the response). Defaults to "log". + | | Enum: [disabled log enabled] +
2145+
Optional: \{} +
21432146

21442147
|===
21452148

api/v1alpha1/toolchainconfig_types.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,12 @@ type RegistrationServiceConfig struct {
262262
// +optional
263263
AccountVerifierURL *string `json:"accountVerifierURL,omitempty"`
264264

265-
// AccountVerifierEnabled controls whether the registration service acts on responses from the account-verifier service.
265+
// AccountVerifierMode controls how the registration service handles responses from the account-verifier service.
266+
// Valid values are "disabled" (do not call the verifier), "log" (call but only log the response),
267+
// and "enabled" (call and enforce the response). Defaults to "log".
266268
// +optional
267-
AccountVerifierEnabled *bool `json:"accountVerifierEnabled,omitempty"`
269+
// +kubebuilder:validation:Enum=disabled;log;enabled
270+
AccountVerifierMode *string `json:"accountVerifierMode,omitempty"`
268271
}
269272

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

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 3 additions & 3 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: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)