Skip to content

Commit

Permalink
operator: add orgId property to console cdr
Browse files Browse the repository at this point in the history
Add an extra property to the console config so Dataplane API can be
deployed

Signed-off-by: Santiago Jimenez Giraldo <[email protected]>
  • Loading branch information
sago2k8 committed Nov 22, 2023
1 parent d03a1bb commit 53cae91
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ type EnterpriseLoginRedpandaCloud struct {

// AllowedOrigins indicates if response is allowed from given origin
AllowedOrigins []string `json:"allowedOrigins,omitempty" yaml:"allowedOrigins,omitempty"`

// OrgID refers to the Redpanda Cloud organization id that Console is running in.
// If the OrgID is set, Console will ensure that incoming requests will only pass
// if the provided access token matches this org id in the custom claims.
OrgID string `json:"orgId,omitempty" yaml:"orgId,omitempty"`
}

// IsGoogleLoginEnabled returns true if Google SSO provider is enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,13 @@ spec:
type: string
enabled:
type: boolean
orgId:
description: OrgID refers to the Redpanda Cloud organization
id that Console is running in. If the OrgID is set, Console
will ensure that incoming requests will only pass if the
provided access token matches this org id in the custom
claims.
type: string
required:
- audience
- domain
Expand Down
1 change: 1 addition & 0 deletions src/go/k8s/pkg/console/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ func (cm *ConfigMap) genLogin(
switch {
case provider.RedpandaCloud != nil:
enterpriseLogin.RedpandaCloud = &vectorizedv1alpha1.EnterpriseLoginRedpandaCloud{
OrgID: provider.RedpandaCloud.OrgID,
Enabled: provider.RedpandaCloud.Enabled,
Domain: provider.RedpandaCloud.Domain,
Audience: provider.RedpandaCloud.Audience,
Expand Down

0 comments on commit 53cae91

Please sign in to comment.