model

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationName                  = "keycloak"
	DefaultControllerNamespace       = "keycloak"
	AdminUsernameProperty            = "ADMIN_USERNAME"
	AdminPasswordProperty            = "ADMIN_PASSWORD"
	ClientName                       = "KEYCLOAKCLIENT_CONTROLLER_NAME"
	ClientPassword                   = "KEYCLOAKCLIENT_CONTROLLER_PASSWORD"
	KeycloakClientSecretSeed         = "SECRET_SEED"
	SecretSeedSecretName             = "credential-keycloak-client-secret-seed"
	SALT                             = "803%%1Pas$3cow++#"
	ServingCertSecretName            = "sso-x509-https-secret" // nolint
	ClientSecretName                 = ApplicationName + "-client-secret"
	ClientSecretClientIDProperty     = "CLIENT_ID"
	ClientSecretClientSecretProperty = "CLIENT_SECRET"
)

Constants for a community Keycloak installation

Variables

View Source
var PodLabels = map[string]string{}

Functions

func ClientScopeDifferenceIntersection

FIXME Find a better way to refactor this code with role difference part above returned clientScopes are always from a

func ClientSecret

func ClientSecret(cr *v1alpha1.KeycloakClient) *v1.Secret

func ClientSecretReconciled

func ClientSecretReconciled(cr *v1alpha1.KeycloakClient, currentState *v1.Secret) *v1.Secret

func ClientSecretSelector

func ClientSecretSelector(cr *v1alpha1.KeycloakClient) client.ObjectKey

func DeprecatedClientSecret

func DeprecatedClientSecret(cr *v1alpha1.KeycloakClient) *v1.Secret

func DeprecatedClientSecretSelector

func DeprecatedClientSecretSelector(cr *v1alpha1.KeycloakClient) client.ObjectKey

func FilterClientScopesByNames

func FilterClientScopesByNames(clientScopes []v1alpha1.KeycloakClientScope, names []string) (filteredScopes []v1alpha1.KeycloakClientScope)

func GenerateRandomBytes

func GenerateRandomBytes(n int) []byte

GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func GenerateRandomString

func GenerateRandomString(s int) string

GenerateRandomString returns a URL-safe, base64 encoded securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func GetRealmUserSecretName

func GetRealmUserSecretName(keycloakNamespace, realmName, userName string) string

func IsIP

func IsIP(host []byte) bool

func KeycloakAdminSecret

func KeycloakAdminSecret(cr *v1alpha1.Keycloak) *v1.Secret

func KeycloakAdminSecretReconciled

func KeycloakAdminSecretReconciled(cr *v1alpha1.Keycloak, currentState *v1.Secret) *v1.Secret

func KeycloakAdminSecretSelector

func KeycloakAdminSecretSelector(cr *v1alpha1.Keycloak) client.ObjectKey

func MergeEnvs

func MergeEnvs(a []v1.EnvVar, b []v1.EnvVar) []v1.EnvVar

This function favors values in "a".

func RealmCredentialSecret

func RealmCredentialSecret(cr *v1alpha1.KeycloakRealm, user *v1alpha1.KeycloakAPIUser, keycloak *v1alpha1.Keycloak) *v1.Secret

func RealmCredentialSecretSelector

func RealmCredentialSecretSelector(cr *v1alpha1.KeycloakRealm, user *v1alpha1.KeycloakAPIUser, keycloak *v1alpha1.Keycloak) client.ObjectKey

func RoleDifferenceIntersection

returned roles are always from a

func SanitizeNumberOfReplicas

func SanitizeNumberOfReplicas(numberOfReplicas int, isCreate bool) *int32

func SanitizeResourceName

func SanitizeResourceName(name string) string

func SanitizeResourceNameWithAlphaNum

func SanitizeResourceNameWithAlphaNum(text string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL