resources

package
v0.0.0-...-488f3f5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HawtioTypeEnvVar                = "HAWTIO_ONLINE_MODE"
	HawtioNamespaceEnvVar           = "HAWTIO_ONLINE_NAMESPACE"
	HawtioAuthEnvVar                = "HAWTIO_ONLINE_AUTH"
	HawtioOAuthClientEnvVar         = "HAWTIO_OAUTH_CLIENT_ID"
	HawtioRbacEnvVar                = "HAWTIO_ONLINE_RBAC_ACL"
	HawtioDisableRbacRegistry       = "HAWTIO_ONLINE_DISABLE_RBAC_REGISTRY"
	OpenShiftClusterVersionEnvVar   = "OPENSHIFT_CLUSTER_VERSION"
	OpenShiftWebConsoleUrlEnvVar    = "OPENSHIFT_WEB_CONSOLE_URL"
	NginxClientBodyBufferSize       = "NGINX_CLIENT_BODY_BUFFER_SIZE"
	NginxProxyBuffers               = "NGINX_PROXY_BUFFERS"
	NginxSubrequestOutputBufferSize = "NGINX_SUBREQUEST_OUTPUT_BUFFER_SIZE"
	HawtioAuthTypeForm              = "form"
	HawtioAuthTypeOAuth             = "oauth"
)
View Source
const (
	LabelAppKey = "app"
)
View Source
const OAuthClientName = "hawtio"
View Source
const (
	RBACConfigMapKey = "ACL.yaml"
)

Variables

This section is empty.

Functions

func GetHawtioConfig

func GetHawtioConfig(configMap *corev1.ConfigMap) (*hawtiov1.HawtioConfig, error)

GetHawtioConfig reads the console configuration from the config map

func LabelsForHawtio

func LabelsForHawtio(name string) map[string]string

LabelsForHawtio Set labels in a map

func NewConfigMap

func NewConfigMap(hawtio *hawtiov1.Hawtio) (*corev1.ConfigMap, error)

func NewDeployment

func NewDeployment(hawtio *hawtiov1.Hawtio, apiSpec *capabilities.ApiServerSpec, openShiftConsoleURL string, configMapVersion string, clientCertSecretVersion string, buildVariables util.BuildVariables) (*appsv1.Deployment, error)

func NewOAuthClient

func NewOAuthClient(name string) *oauthv1.OAuthClient

func NewService

func NewService(hawtio *hawtiov1.Hawtio) *corev1.Service

func NewServiceAccountAsOauthClient

func NewServiceAccountAsOauthClient(name string, externalRoutes []string) (*corev1.ServiceAccount, error)

func OauthClientContainsRedirectURI

func OauthClientContainsRedirectURI(oc *oauthv1.OAuthClient, uri string) (bool, int)

func PropagateAnnotations

func PropagateAnnotations(hawtio *hawtiov1.Hawtio, annotations map[string]string)

PropagateAnnotations propagate annotations from hawtio CR

func PropagateLabels

func PropagateLabels(hawtio *hawtiov1.Hawtio, labels map[string]string)

PropagateLabels propagate labels from hawtio CR

func RemoveRedirectURIFromOauthClient

func RemoveRedirectURIFromOauthClient(oc *oauthv1.OAuthClient, uri string) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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