Documentation
¶
Index ¶
- Constants
- func GetHawtioConfig(configMap *corev1.ConfigMap) (*hawtiov1.HawtioConfig, error)
- func LabelsForHawtio(name string) map[string]string
- func NewConfigMap(hawtio *hawtiov1.Hawtio) (*corev1.ConfigMap, error)
- func NewDeployment(hawtio *hawtiov1.Hawtio, apiSpec *capabilities.ApiServerSpec, ...) (*appsv1.Deployment, error)
- func NewOAuthClient(name string) *oauthv1.OAuthClient
- func NewService(hawtio *hawtiov1.Hawtio) *corev1.Service
- func NewServiceAccountAsOauthClient(name string, externalRoutes []string) (*corev1.ServiceAccount, error)
- func OauthClientContainsRedirectURI(oc *oauthv1.OAuthClient, uri string) (bool, int)
- func PropagateAnnotations(hawtio *hawtiov1.Hawtio, annotations map[string]string)
- func PropagateLabels(hawtio *hawtiov1.Hawtio, labels map[string]string)
- func RemoveRedirectURIFromOauthClient(oc *oauthv1.OAuthClient, uri string) bool
Constants ¶
View Source
const ( HawtioTypeEnvVar = "HAWTIO_ONLINE_MODE" HawtioNamespaceEnvVar = "HAWTIO_ONLINE_NAMESPACE" HawtioAuthEnvVar = "HAWTIO_ONLINE_AUTH" HawtioOAuthClientEnvVar = "HAWTIO_OAUTH_CLIENT_ID" 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" /* * Gateway Env Vars */ GatewayWebSvrEnvVar = "HAWTIO_ONLINE_GATEWAY_WEB_SERVER" // https://localhost:8443 GatewaySSLKeyEnvVar = "HAWTIO_ONLINE_GATEWAY_SSL_KEY" // /etc/tls/private/serving/tls.key GatewaySSLCertEnvVar = "HAWTIO_ONLINE_GATEWAY_SSL_CERTIFICATE" // /etc/tls/private/serving/tls.crt GatewaySSLCertCAEnvVar = "HAWTIO_ONLINE_GATEWAY_SSL_CERTIFICATE_CA" // /var/run/secrets/kubernetes.io/serviceaccount/ca.crt GatewayRbacEnvVar = "HAWTIO_ONLINE_RBAC_ACL" )
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 ¶
LabelsForHawtio Set labels in a map
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 NewServiceAccountAsOauthClient ¶
func NewServiceAccountAsOauthClient(name string, externalRoutes []string) (*corev1.ServiceAccount, error)
func OauthClientContainsRedirectURI ¶
func OauthClientContainsRedirectURI(oc *oauthv1.OAuthClient, uri string) (bool, int)
func PropagateAnnotations ¶
PropagateAnnotations propagate annotations from hawtio CR
func PropagateLabels ¶
PropagateLabels propagate labels from hawtio CR
func RemoveRedirectURIFromOauthClient ¶
func RemoveRedirectURIFromOauthClient(oc *oauthv1.OAuthClient, uri string) bool
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.