Documentation ¶
Index ¶
Constants ¶
View Source
const (
ComponentName = "oauth-openshift"
)
View Source
const (
IDPVolumePathPrefix = "/etc/oauth/idp"
)
Variables ¶
This section is empty.
Functions ¶
func NewComponent ¶
func NewComponent() component.ControlPlaneComponent
Types ¶
type ConfigOverride ¶
type ConfigOverride struct { URLs osinv1.OpenIDURLs `json:"urls,omitempty"` Claims osinv1.OpenIDClaims `json:"claims,omitempty"` Challenge *bool `json:"challenge,omitempty"` }
ConfigOverride defines the oauth parameters that can be overridden in special use cases. The only supported use case for this currently is the IBMCloud IAM OIDC provider. These parameters are necessary since the public OpenID api does not support some customizations used in the IBMCloud IAM OIDC provider. This can be removed if the public API is adjusted to allow specifying these customizations.
type IDPVolumeMountInfo ¶
type IDPVolumeMountInfo struct { Container string VolumeMounts util.PodVolumeMounts Volumes []corev1.Volume }
func ConvertIdentityProviders ¶
func ConvertIdentityProviders(ctx context.Context, identityProviders []configv1.IdentityProvider, providerOverrides map[string]*ConfigOverride, kclient crclient.Client, namespace string) ([]osinv1.IdentityProvider, *IDPVolumeMountInfo, error)
func (*IDPVolumeMountInfo) ConfigMapPath ¶
func (i *IDPVolumeMountInfo) ConfigMapPath(index int, configMapName, field, key string) string
func (*IDPVolumeMountInfo) SecretPath ¶
func (i *IDPVolumeMountInfo) SecretPath(index int, secretName, field, key string) string
Click to show internal directories.
Click to hide internal directories.