Documentation ¶
Index ¶
- Constants
- Variables
- func GetAndAddAgent(ctx context.Context, mgr addonmanager.AddonManager, addonName string, ...) error
- func GetLogLevel(component string, level string) int8
- func IsOldKubernetes(cluster *clusterv1.ManagedCluster) bool
- func NewRegistrationOption(controllerContext *controllercmd.ControllerContext, addonName string, ...) *agent.RegistrationOption
- type GlobalValues
- type PolicyAgentAddon
- type UserArgs
- type UserValues
Constants ¶
View Source
const ( PolicyAddonPauseAnnotation = "policy-addon-pause" PolicyLogLevelAnnotation = "log-level" )
Variables ¶
View Source
var Scheme = runtime.NewScheme()
Functions ¶
func GetAndAddAgent ¶
func GetAndAddAgent( ctx context.Context, mgr addonmanager.AddonManager, addonName string, controllerContext *controllercmd.ControllerContext, getAgent func(*controllercmd.ControllerContext) (agent.AgentAddon, error), ) error
func GetLogLevel ¶
getLogLevel verifies the user-provided log level against Zap, returning 0 if the check fails.
func IsOldKubernetes ¶ added in v0.11.0
func IsOldKubernetes(cluster *clusterv1.ManagedCluster) bool
IsOldKubernetes returns a boolean for whether a cluster is running an older Kubernetes that doesn't support current leader election methods.
func NewRegistrationOption ¶
func NewRegistrationOption( controllerContext *controllercmd.ControllerContext, addonName string, agentPermissionFiles []string, filesystem embed.FS, ) *agent.RegistrationOption
Types ¶
type GlobalValues ¶
type PolicyAgentAddon ¶
type PolicyAgentAddon struct { agent.AgentAddon // contains filtered or unexported fields }
PolicyAgentAddon wraps the AgentAddon created from the addonfactory to override some behavior
func (*PolicyAgentAddon) Manifests ¶
func (pa *PolicyAgentAddon) Manifests( cluster *clusterv1.ManagedCluster, addon *addonapiv1alpha1.ManagedClusterAddOn, ) ([]runtime.Object, error)
type UserValues ¶
type UserValues struct { GlobalValues GlobalValues `json:"global,"` UserArgs UserArgs `json:"args,"` }
Click to show internal directories.
Click to hide internal directories.