Documentation
¶
Index ¶
- Variables
- func AdditionalLabels(namePrefix string, additionalLabels map[string]string) map[string]string
- func ClientSecretResource(namePrefix, existingClientSecret string, additionalLabels map[string]string) *corev1.Secret
- func Configure(ctx context.Context, clientset kubernetes.Interface, namespace string, ...) error
- func Deploy(ctx context.Context, clientset kubernetes.Interface, namespace string, ...) error
- func DexConnectorsToDexTypeConnectors(conns []kotsv1beta1.DexConnector) ([]dextypes.Connector, error)
- func EnsureClientSecret(ctx context.Context, clientset kubernetes.Interface, ...) error
- func EnsurePostgresSecret(ctx context.Context, clientset kubernetes.Interface, ...) error
- func GetClientSecret(ctx context.Context, clientset kubernetes.Interface, ...) (string, error)
- func GetPostgresSecret(ctx context.Context, clientset kubernetes.Interface, ...) (*corev1.Secret, error)
- func IsEnabled(identitySpec *kotsv1beta1.Identity, identityConfig *kotsv1beta1.IdentityConfig) bool
- func Render(ctx context.Context, options Options) (map[string][]byte, error)
- func RenderClientSecret(ctx context.Context, namePrefix, existingClientSecret string, ...) ([]byte, error)
- func RenderPostgresSecret(ctx context.Context, namePrefix string, cipher *crypto.AESCipher, ...) ([]byte, error)
- func Undeploy(ctx context.Context, clientset kubernetes.Interface, ...) error
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var (
KotsIdentityLabelKey = "kots.io/identity"
)
Functions ¶
func AdditionalLabels ¶
func ClientSecretResource ¶
func DexConnectorsToDexTypeConnectors ¶
func DexConnectorsToDexTypeConnectors(conns []kotsv1beta1.DexConnector) ([]dextypes.Connector, error)
func EnsureClientSecret ¶
func EnsurePostgresSecret ¶
func EnsurePostgresSecret(ctx context.Context, clientset kubernetes.Interface, namespace, namePrefix string, cipher *crypto.AESCipher, config kotsv1beta.IdentityPostgresConfig, additionalLabels map[string]string) error
func GetClientSecret ¶
func GetPostgresSecret ¶
func IsEnabled ¶
func IsEnabled(identitySpec *kotsv1beta1.Identity, identityConfig *kotsv1beta1.IdentityConfig) bool
func RenderClientSecret ¶
func RenderPostgresSecret ¶
Types ¶
type Options ¶
type Options struct { NamePrefix string IdentitySpec kotsv1beta1.IdentitySpec IdentityConfigSpec kotsv1beta1.IdentityConfigSpec IsOpenShift bool ImageRewriteFn kotsadmversion.ImageRewriteFunc ProxyEnv map[string]string AdditionalLabels map[string]string Cipher *crypto.AESCipher Builder *template.Builder }
Click to show internal directories.
Click to hide internal directories.