Documentation
¶
Index ¶
- Constants
- Variables
- func Configure(ctx context.Context, clientset kubernetes.Interface, namespace string, ...) error
- func Deploy(ctx context.Context, clientset kubernetes.Interface, namespace string, ...) error
- func DexCallbackURL(identitySpec kotsv1beta1.IdentityConfigSpec) string
- func DexIssuerURL(identitySpec kotsv1beta1.IdentityConfigSpec) string
- func EnsurePostgresSecret(ctx context.Context, clientset kubernetes.Interface, namespace string) error
- func GetConfig(ctx context.Context, namespace string) (*kotsv1beta1.IdentityConfig, error)
- func HTTPClient(ctx context.Context, namespace string, ...) (*http.Client, error)
- func IdentityDexConnectorsToDexTypeConnectors(conns []kotsv1beta1.DexConnector) ([]dextypes.Connector, error)
- func SetConfig(ctx context.Context, namespace string, ...) error
- func Undeploy(ctx context.Context, log *logger.Logger, clientset kubernetes.Interface, ...) error
- func ValidateConfig(ctx context.Context, namespace string, ...) error
- func ValidateConnection(ctx context.Context, namespace string, ...) error
- type ErrorConnection
Constants ¶
View Source
const (
DexDeploymentName, DexServiceName, DexIngressName = "kotsadm-dex", "kotsadm-dex", "kotsadm-dex"
DexServiceAccountName, DexRoleName, DexRoleBindingName = "kotsadm-dex", "kotsadm-dex", "kotsadm-dex"
DexSecretName = "kotsadm-dex"
DexPostgresSecretName = "kotsadm-dex-postgres"
)
View Source
const (
WildcardGroupID = "*"
)
Variables ¶
View Source
var ( ConfigConfigMapName = "kotsadm-identity-config" ConfigSecretName = "kotsadm-identity-secret" ConfigSecretKeyName = "dexConnectors" )
View Source
var ( KotsIdentityLabelKey = "kots.io/identity" KotsIdentityLabelValue = "true" DefaultGroups = []kotsv1beta1.IdentityGroup{DefaultGroup} DefaultGroup = kotsv1beta1.IdentityGroup{ ID: WildcardGroupID, RoleIDs: []string{rbac.ClusterAdminRole.ID}, } )
View Source
var ( AdditionalLabels = map[string]string{ KotsIdentityLabelKey: KotsIdentityLabelValue, } )
Functions ¶
func Configure ¶
func Configure(ctx context.Context, clientset kubernetes.Interface, namespace string, identityConfig kotsv1beta1.IdentityConfig, ingressConfig kotsv1beta1.IngressConfig) error
func Deploy ¶
func Deploy(ctx context.Context, clientset kubernetes.Interface, namespace string, identityConfig kotsv1beta1.IdentityConfig, ingressConfig kotsv1beta1.IngressConfig, registryOptions *kotsadmtypes.KotsadmOptions) error
func DexCallbackURL ¶
func DexCallbackURL(identitySpec kotsv1beta1.IdentityConfigSpec) string
func DexIssuerURL ¶
func DexIssuerURL(identitySpec kotsv1beta1.IdentityConfigSpec) string
func EnsurePostgresSecret ¶ added in v1.25.0
func GetConfig ¶
func GetConfig(ctx context.Context, namespace string) (*kotsv1beta1.IdentityConfig, error)
func HTTPClient ¶ added in v1.25.0
func HTTPClient(ctx context.Context, namespace string, identityConfig kotsv1beta1.IdentityConfig) (*http.Client, error)
func IdentityDexConnectorsToDexTypeConnectors ¶ added in v1.25.0
func IdentityDexConnectorsToDexTypeConnectors(conns []kotsv1beta1.DexConnector) ([]dextypes.Connector, error)
func SetConfig ¶
func SetConfig(ctx context.Context, namespace string, identityConfig kotsv1beta1.IdentityConfig) error
func ValidateConfig ¶
func ValidateConfig(ctx context.Context, namespace string, identityConfig kotsv1beta1.IdentityConfig, ingressConfig kotsv1beta1.IngressConfig) error
func ValidateConnection ¶
func ValidateConnection(ctx context.Context, namespace string, identityConfig kotsv1beta1.IdentityConfig, ingressConfig kotsv1beta1.IngressConfig) error
Types ¶
type ErrorConnection ¶
type ErrorConnection struct {
Message string
}
func (*ErrorConnection) Error ¶
func (e *ErrorConnection) Error() string
Click to show internal directories.
Click to hide internal directories.