Documentation ¶
Index ¶
- Constants
- func ApiTokenSecret(unleash UnleashInstance, token *unleashv1.ApiToken, ...) *corev1.Secret
- func DeploymentForUnleash(unleash *unleashv1.Unleash, scheme *runtime.Scheme) (*appsv1.Deployment, error)
- func GenerateAdminKey() (string, error)
- func ImageForUnleash(unleash *unleashv1.Unleash) string
- func IngressForUnleash(unleash *unleashv1.Unleash, config *unleashv1.UnleashIngressConfig, ...) (*networkingv1.Ingress, error)
- func InstanceSecretForUnleash(unleash *unleashv1.Unleash, scheme *runtime.Scheme, adminKey string) (*corev1.Secret, error)
- func NetworkPolicyForUnleash(unleash *unleashv1.Unleash, scheme *runtime.Scheme, namespace string) (*networkingv1.NetworkPolicy, error)
- func OperatorSecretForUnleash(name, secretName, namespace, adminKey string) *corev1.Secret
- func RemoteunleashInstance(name, url, namespace, secretName, secretNamespace string) *unleashv1.RemoteUnleash
- func RemoteunleashInstances(name, url string, namespaces []string, secretName, secretNamespace string) []*unleashv1.RemoteUnleash
- func ServiceAccountForUnleash(unleash *unleashv1.Unleash, scheme *runtime.Scheme) (*corev1.ServiceAccount, error)
- func ServiceForUnleash(unleash *unleashv1.Unleash, scheme *runtime.Scheme) (*corev1.Service, error)
- func ServiceMonitorForUnleash(unleash *unleashv1.Unleash, scheme *runtime.Scheme) (*monitoringv1.ServiceMonitor, error)
- type UnleashInstance
- type ValidationError
Constants ¶
View Source
const ( // DefaultUnleashImageRegistry is the default registry for the Unleash image DefaultUnleashImageRegistry = "europe-north1-docker.pkg.dev/nais-io/nais/images" // DefaultUnleashImageName is the default image name used for the Unleash deployment DefaultUnleashImageName = "unleash-v4" // DefaultUnleashVersion is the default version used for the Unleash deployment DefaultUnleashVersion = "v4.23.1" // DefaultUnleashPort is the default port used for the Unleash deployment DefaultUnleashPort = 4242 // DefaultUnleashPortName is the default port name used for the Unleash deployment DefaultUnleashPortName = "http" )
Defaults for the Unleash custom resource
View Source
const ( EnvInitAdminAPIToken = "INIT_ADMIN_API_TOKENS" EnvDatabaseURL = "DATABASE_URL" EnvDatabaseUser = "DATABASE_USER" EnvDatabasePass = "DATABASE_PASS" EnvDatabaseName = "DATABASE_NAME" EnvDatabaseHost = "DATABASE_HOST" EnvDatabasePort = "DATABASE_PORT" EnvDatabaseSSL = "DATABASE_SSL" )
Variables ¶
This section is empty.
Functions ¶
func ApiTokenSecret ¶
func ApiTokenSecret(unleash UnleashInstance, token *unleashv1.ApiToken, apiToken *unleashclient.ApiToken) *corev1.Secret
func DeploymentForUnleash ¶
func GenerateAdminKey ¶
func ImageForUnleash ¶
ImageForUnleash gets the Operand image which is managed by this controller from the UNLEASH_IMAGE environment variable defined in the config/manager/manager.yaml
func IngressForUnleash ¶
func IngressForUnleash(unleash *unleashv1.Unleash, config *unleashv1.UnleashIngressConfig, nameSuffix string, scheme *runtime.Scheme) (*networkingv1.Ingress, error)
IngressForUnleash returns the Ingress for Unleash Deployment
func InstanceSecretForUnleash ¶
func InstanceSecretForUnleash(unleash *unleashv1.Unleash, scheme *runtime.Scheme, adminKey string) (*corev1.Secret, error)
Creates a secret that is managed by way of controller reference
func NetworkPolicyForUnleash ¶
func NetworkPolicyForUnleash(unleash *unleashv1.Unleash, scheme *runtime.Scheme, namespace string) (*networkingv1.NetworkPolicy, error)
NetworkPolicyForUnleash returns the NetworkPolicy for the Unleash Deployment
func OperatorSecretForUnleash ¶
Creates a secret that is not managed, i.e. without a controllerReference
func RemoteunleashInstance ¶
func RemoteunleashInstance(name, url, namespace, secretName, secretNamespace string) *unleashv1.RemoteUnleash
func RemoteunleashInstances ¶
func RemoteunleashInstances(name, url string, namespaces []string, secretName, secretNamespace string) []*unleashv1.RemoteUnleash
func ServiceForUnleash ¶
func ServiceMonitorForUnleash ¶
func ServiceMonitorForUnleash(unleash *unleashv1.Unleash, scheme *runtime.Scheme) (*monitoringv1.ServiceMonitor, error)
Types ¶
type UnleashInstance ¶
type ValidationError ¶
type ValidationError struct {
// contains filtered or unexported fields
}
func (ValidationError) Error ¶
func (e ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.