Documentation ¶
Index ¶
- Constants
- Variables
- func CommonAgentInstallNamespaceFromDeploymentConfigFunc(adcgetter utils.AddOnDeploymentConfigGetter) func(*addonapiv1alpha1.ManagedClusterAddOn) (string, error)
- func GetAndAddAgent(ctx context.Context, mgr addonmanager.AddonManager, addonName string, ...) error
- func GetClusterVendor(cluster *clusterv1.ManagedCluster) string
- func GetLogLevel(component string, level string) int8
- func GetManagedClusterClient(ctx context.Context, kubeConfig *rest.Config) (*clusterv1client.Clientset, error)
- 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 CommonAgentInstallNamespaceFromDeploymentConfigFunc ¶ added in v0.14.0
func CommonAgentInstallNamespaceFromDeploymentConfigFunc( adcgetter utils.AddOnDeploymentConfigGetter, ) func(*addonapiv1alpha1.ManagedClusterAddOn) (string, error)
func GetAndAddAgent ¶
func GetAndAddAgent( ctx context.Context, mgr addonmanager.AddonManager, addonName string, controllerContext *controllercmd.ControllerContext, getAgent func(context.Context, *controllercmd.ControllerContext) (agent.AgentAddon, error), ) error
func GetClusterVendor ¶ added in v0.15.0
func GetClusterVendor(cluster *clusterv1.ManagedCluster) string
func GetLogLevel ¶
getLogLevel verifies the user-provided log level against Zap, returning 0 if the check fails.
func GetManagedClusterClient ¶ added in v0.14.0
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
}
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.