Documentation ¶
Index ¶
Constants ¶
View Source
const ( // APIVersion is the apiVersion string APIVersion = "config.openshift.io/v1" // OAuthNamespace is namespace for oauth manifests OAuthNamespace = "openshift-config" )
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(identityProviders []IdentityProvider) error
Validate validate oauth providers
Types ¶
type ClientSecret ¶
type ClientSecret struct {
Name string `json:"name"`
}
ClientSecret is a client secret for a privuder
type IdentityProvider ¶
type IdentityProvider struct { Kind string APIVersion string MappingMethod string Name string Provider runtime.RawExtension HTFileName string HTFileData []byte CAData []byte CrtData []byte KeyData []byte }
IdentityProvider stores an identity provider
type Provider ¶
type Provider struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` File string `json:"file"` CA string `json:"ca"` CertFile string `json:"certFile"` KeyFile string `json:"keyFile"` }
Provider contains an identity providers type specific provider data
type ProviderResources ¶
type ProviderResources struct { IDP *configv1.IdentityProvider Secrets []*corev1.Secret ConfigMaps []*corev1.ConfigMap }
ProviderResources stores all resources related to one provider
type ResultResources ¶
type ResultResources struct { OAuthCRD *configv1.OAuth Secrets []*corev1.Secret ConfigMaps []*corev1.ConfigMap }
ResultResources stores all oAuth config parts
func Translate ¶
func Translate(identityProviders []IdentityProvider, tokenConfig TokenConfig, templates legacyconfigv1.OAuthTemplates) (*ResultResources, error)
Translate converts OCPv3 OAuth to OCPv4 OAuth Custom Resources
type TLSClientCert ¶
type TLSClientCert struct {
Name string `json:"name"`
}
TLSClientCert secret name
type TokenConfig ¶
TokenConfig store internal OAuth tokens duration
Click to show internal directories.
Click to hide internal directories.