Documentation ¶
Index ¶
- Constants
- func NewController(client kubernetes.Interface, radixClient radixclient.Interface, ...) *common.Controller
- type Handler
- type HandlerConfigOption
- func WithDeploymentSyncerFactory(factory deployment.DeploymentSyncerFactory) HandlerConfigOption
- func WithHasSyncedCallback(callback common.HasSynced) HandlerConfigOption
- func WithIngressConfiguration(config deployment.IngressConfiguration) HandlerConfigOption
- func WithKubernetesApiPortFromEnvVar(envVarName string) HandlerConfigOption
- func WithOAuth2DefaultConfig(oauth2Config defaults.OAuth2Config) HandlerConfigOption
- func WithOAuth2ProxyDockerImage(image string) HandlerConfigOption
- func WithTenantIdFromEnvVar(envVarName string) HandlerConfigOption
Constants ¶
const ( // SuccessSynced is used as part of the Event 'reason' when a Deployment is synced SuccessSynced = "Synced" // MessageResourceSynced is the message used for an Event fired when a Deployment // is synced successfully MessageResourceSynced = "Radix Deployment synced successfully" )
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController(client kubernetes.Interface, radixClient radixclient.Interface, handler common.Handler, kubeInformerFactory kubeinformers.SharedInformerFactory, radixInformerFactory informers.SharedInformerFactory, waitForChildrenToSync bool, recorder record.EventRecorder) *common.Controller
NewController creates a new controller that handles RadixDeployments
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler Instance variables
func NewHandler ¶
func NewHandler(kubeclient kubernetes.Interface, kubeutil *kube.Kube, radixclient radixclient.Interface, prometheusperatorclient monitoring.Interface, options ...HandlerConfigOption) *Handler
NewHandler Constructor
type HandlerConfigOption ¶ added in v1.15.5
type HandlerConfigOption func(*Handler)
HandlerConfigOption defines a configuration function used for additional configuration of Handler
func WithDeploymentSyncerFactory ¶ added in v1.15.5
func WithDeploymentSyncerFactory(factory deployment.DeploymentSyncerFactory) HandlerConfigOption
WithDeploymentSyncerFactory configures the deploymentSyncerFactory for the Handler
func WithHasSyncedCallback ¶ added in v1.15.5
func WithHasSyncedCallback(callback common.HasSynced) HandlerConfigOption
WithHasSyncedCallback configures Handler callback when RD has synced successfully
func WithIngressConfiguration ¶ added in v1.18.0
func WithIngressConfiguration(config deployment.IngressConfiguration) HandlerConfigOption
WithIngressConfiguration sets the list of custom ingress confiigurations
func WithKubernetesApiPortFromEnvVar ¶ added in v1.20.1
func WithKubernetesApiPortFromEnvVar(envVarName string) HandlerConfigOption
WithKubernetesApiPortFromEnvVar configures kubernetes api port for Handler from an environment variable
func WithOAuth2DefaultConfig ¶ added in v1.18.0
func WithOAuth2DefaultConfig(oauth2Config defaults.OAuth2Config) HandlerConfigOption
WithOAuth2DefaultConfig configures default OAuth2 settings
func WithOAuth2ProxyDockerImage ¶ added in v1.18.0
func WithOAuth2ProxyDockerImage(image string) HandlerConfigOption
WithOAuth2ProxyDockerImage configures the Docker image to use for OAuth2 proxy auxiliary component
func WithTenantIdFromEnvVar ¶ added in v1.17.2
func WithTenantIdFromEnvVar(envVarName string) HandlerConfigOption
WithTenantIdFromEnvVar configures tenant-id for Handler from an environment variable