model

package
v0.0.0-...-ebb474e Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationName                      = "keycloak"
	MonitoringKey                        = "middleware"
	DatabaseSecretName                   = ApplicationName + "-db-secret"
	PostgresqlPersistentVolumeName       = ApplicationName + "-postgresql-claim"
	PostgresqlBackupPersistentVolumeName = ApplicationName + "-backup"
	PostgresqlDeploymentName             = ApplicationName + "-postgresql"
	PostgresqlDeploymentComponent        = "database"
	PostgresqlServiceName                = ApplicationName + "-postgresql"
	PostgresqlImage                      = "postgres:11.5"
	KeycloakImage                        = "quay.io/keycloak/keycloak:7.0.1"
	KeycloakInitContainerImage           = "quay.io/keycloak/keycloak-init-container:master"
	RHSSOImage                           = "registry.access.redhat.com/redhat-sso-7/sso73-openshift:1.0-15"
	BackupImage                          = "quay.io/integreatly/backup-container:1.0.10"
	KeycloakDiscoveryServiceName         = ApplicationName + "-discovery"
	KeycloakDeploymentName               = ApplicationName
	KeycloakDeploymentComponent          = "keycloak"
	PostgresqlBackupComponent            = "database-backup"
	PostgresqlDatabase                   = "root"
	PostgresqlPersistentVolumeCapacity   = "1Gi"
	DatabaseSecretUsernameProperty       = "POSTGRES_USERNAME" // nolint
	DatabaseSecretPasswordProperty       = "POSTGRES_PASSWORD" // nolint
	// Required by the Integreately Backup Image
	DatabaseSecretHostProperty = "POSTGRES_HOST" // nolint
	// Required by the Integreately Backup Image
	DatabaseSecretDatabaseProperty = "POSTGRES_DATABASE" // nolint
	// Required by the Integreately Backup Image
	DatabaseSecretSuperuserProperty       = "POSTGRES_SUPERUSER"        // nolint
	DatabaseSecretExternalAddressProperty = "POSTGRES_EXTERNAL_ADDRESS" // nolint
	DatabaseSecretExternalPortProperty    = "POSTGRES_EXTERNAL_PORT"    // nolint
	KeycloakServicePort                   = 8443
	AdminUsernameProperty                 = "ADMIN_USERNAME"        // nolint
	AdminPasswordProperty                 = "ADMIN_PASSWORD"        // nolint
	ServingCertSecretName                 = "sso-x509-https-secret" // nolint
	RouteLoadBalancingStrategy            = "source"
	PostgresqlBackupServiceAccountName    = "keycloak-operator"
	KeycloakExtensionEnvVar               = "KEYCLOAK_EXTENSIONS"
	KeycloakExtensionPath                 = "/opt/jboss/keycloak/providers"
	KeycloakExtensionsInitContainerPath   = "/opt/extensions"
	RhssoExtensionPath                    = "/opt/eap/providers"
	ClientSecretName                      = ApplicationName + "-client-secret"
	ClientSecretClientIDProperty          = "CLIENT_ID"
	ClientSecretClientSecretProperty      = "CLIENT_SECRET"
)

Constants for a community Keycloak installation

View Source
const GrafanaDashboardJSON = `` /* 26566-byte string literal not displayed */

Variables

This section is empty.

Functions

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 DatabaseSecret

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

func DatabaseSecretReconciled

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

func DatabaseSecretSelector

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

func GetCurrentKeycloakImage

func GetCurrentKeycloakImage(currentState *v13.StatefulSet) string

Get image string from the statefulset. Default to RHSSOImage string

func GetImageRepoAndVersion

func GetImageRepoAndVersion(image string) (string, string, string, string)

Split a full image string (e.g. quay.io/keycloak/keycloak:7.0.1 or registry.access.redhat.com/redhat-sso-7/sso73-openshift:1.0 ) into it's repo and individual versions

func GetRealmUserSecretName

func GetRealmUserSecretName(keycloakNamespace, realmName, userName string) string

func GetReconciledKeycloakImage

func GetReconciledKeycloakImage(currentImage string) string

We allow the patch version of an image for keycloak to be increased outside of the operator on the cluster

func GetReconciledRHSSOImage

func GetReconciledRHSSOImage(currentImage string) string

We allow the patch version of an image for RH-SSO to be increased outside of the operator on the cluster

func GrafanaDashboardSelector

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

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 KeycloakDeployment

func KeycloakDeployment(cr *v1alpha1.Keycloak) *v13.StatefulSet

func KeycloakDeploymentReconciled

func KeycloakDeploymentReconciled(cr *v1alpha1.Keycloak, currentState *v13.StatefulSet) *v13.StatefulSet

func KeycloakDeploymentSelector

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

func KeycloakDiscoveryService

func KeycloakDiscoveryService(cr *v1alpha1.Keycloak) *v1.Service

func KeycloakDiscoveryServiceReconciled

func KeycloakDiscoveryServiceReconciled(cr *v1alpha1.Keycloak, currentState *v1.Service) *v1.Service

func KeycloakDiscoveryServiceSelector

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

func KeycloakExtensionsInitContainers

func KeycloakExtensionsInitContainers(cr *v1alpha1.Keycloak) []v1.Container

func KeycloakIngress

func KeycloakIngress(cr *kc.Keycloak) *v1beta1.Ingress

func KeycloakIngressReconciled

func KeycloakIngressReconciled(cr *kc.Keycloak, currentState *v1beta1.Ingress) *v1beta1.Ingress

func KeycloakIngressSelector

func KeycloakIngressSelector(cr *kc.Keycloak) client.ObjectKey

func KeycloakRoute

func KeycloakRoute(cr *kc.Keycloak) *v1.Route

func KeycloakRouteReconciled

func KeycloakRouteReconciled(cr *kc.Keycloak, currentState *v1.Route) *v1.Route

func KeycloakRouteSelector

func KeycloakRouteSelector(cr *kc.Keycloak) client.ObjectKey

func KeycloakService

func KeycloakService(cr *v1alpha1.Keycloak) *v1.Service

func KeycloakServiceReconciled

func KeycloakServiceReconciled(cr *v1alpha1.Keycloak, currentState *v1.Service) *v1.Service

func KeycloakServiceSelector

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

func KeycloakVolumeMounts

func KeycloakVolumeMounts(extensionsPath string) []v1.VolumeMount

func KeycloakVolumes

func KeycloakVolumes() []v1.Volume

func PostgresqlAWSBackup

func PostgresqlAWSBackup(cr *v1alpha1.KeycloakBackup) *v13.Job

func PostgresqlAWSBackupReconciled

func PostgresqlAWSBackupReconciled(cr *v1alpha1.KeycloakBackup, currentState *v13.Job) *v13.Job

func PostgresqlAWSBackupSelector

func PostgresqlAWSBackupSelector(cr *v1alpha1.KeycloakBackup) client.ObjectKey

func PostgresqlAWSPeriodicBackup

func PostgresqlAWSPeriodicBackup(cr *v1alpha1.KeycloakBackup) *v1beta1.CronJob

func PostgresqlAWSPeriodicBackupReconciled

func PostgresqlAWSPeriodicBackupReconciled(cr *v1alpha1.KeycloakBackup, currentState *v1beta1.CronJob) *v1beta1.CronJob

func PostgresqlAWSPeriodicBackupSelector

func PostgresqlAWSPeriodicBackupSelector(cr *v1alpha1.KeycloakBackup) client.ObjectKey

func PostgresqlBackup

func PostgresqlBackup(cr *v1alpha1.KeycloakBackup) *v13.Job

func PostgresqlBackupPersistentVolumeClaim

func PostgresqlBackupPersistentVolumeClaim(cr *v1alpha1.KeycloakBackup) *v1.PersistentVolumeClaim

func PostgresqlBackupPersistentVolumeClaimReconciled

func PostgresqlBackupPersistentVolumeClaimReconciled(cr *v1alpha1.KeycloakBackup, currentState *v1.PersistentVolumeClaim) *v1.PersistentVolumeClaim

func PostgresqlBackupPersistentVolumeClaimSelector

func PostgresqlBackupPersistentVolumeClaimSelector(cr *v1alpha1.KeycloakBackup) client.ObjectKey

func PostgresqlBackupReconciled

func PostgresqlBackupReconciled(cr *v1alpha1.KeycloakBackup, currentState *v13.Job) *v13.Job

func PostgresqlBackupSelector

func PostgresqlBackupSelector(cr *v1alpha1.KeycloakBackup) client.ObjectKey

func PostgresqlDeployment

func PostgresqlDeployment(cr *v1alpha1.Keycloak) *v13.Deployment

func PostgresqlDeploymentReconciled

func PostgresqlDeploymentReconciled(cr *v1alpha1.Keycloak, currentState *v13.Deployment) *v13.Deployment

func PostgresqlDeploymentSelector

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

func PostgresqlPersistentVolumeClaim

func PostgresqlPersistentVolumeClaim(cr *v1alpha1.Keycloak) *v1.PersistentVolumeClaim

func PostgresqlPersistentVolumeClaimReconciled

func PostgresqlPersistentVolumeClaimReconciled(cr *v1alpha1.Keycloak, currentState *v1.PersistentVolumeClaim) *v1.PersistentVolumeClaim

func PostgresqlPersistentVolumeClaimSelector

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

func PostgresqlService

func PostgresqlService(cr *v1alpha1.Keycloak) *v1.Service

func PostgresqlServiceEndpoints

func PostgresqlServiceEndpoints(cr *v1alpha1.Keycloak) *v1.Endpoints

func PostgresqlServiceEndpointsReconciled

func PostgresqlServiceEndpointsReconciled(cr *v1alpha1.Keycloak, currentState *v1.Endpoints, currentDatabaseSecret *v1.Secret) *v1.Endpoints

func PostgresqlServiceEndpointsSelector

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

func PostgresqlServiceReconciled

func PostgresqlServiceReconciled(cr *v1alpha1.Keycloak, currentState *v1.Service) *v1.Service

func PostgresqlServiceSelector

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

func PrometheusRuleSelector

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

func RHSSODeployment

func RHSSODeployment(cr *v1alpha1.Keycloak) *v13.StatefulSet

func RHSSODeploymentReconciled

func RHSSODeploymentReconciled(cr *v1alpha1.Keycloak, currentState *v13.StatefulSet) *v13.StatefulSet

func RHSSODeploymentSelector

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

func RandStringRunes

func RandStringRunes(n int) string

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 SanitizeNumberOfReplicas

func SanitizeNumberOfReplicas(numberOfReplicas int, isCreate bool) *int32

func SanitizeResourceName

func SanitizeResourceName(name string) string

func ServiceMonitorSelector

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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