@@ -44,7 +44,7 @@ func NewControllerConfig(globalOptions *options.GlobalOptions) *ControllerConfig
4444 return & ControllerConfig {
4545 GlobalOptions : globalOptions ,
4646 helmAddonConfig : addons .NewHelmAddonConfig (
47- "default-k8sRegistrationAgent- -helm-values-template" ,
47+ "default-k8s-registrationagent -helm-values-template" ,
4848 defaultHelmReleaseNamespace ,
4949 defaultHelmReleaseName ,
5050 ),
@@ -55,7 +55,7 @@ func (c *ControllerConfig) AddFlags(prefix string, flags *pflag.FlagSet) {
5555 c .helmAddonConfig .AddFlags (prefix + ".helm-addon" , flags )
5656}
5757
58- type DefaultK8sRegistrtionAgent struct {
58+ type DefaultK8sRegistrationAgent struct {
5959 client ctrlclient.Client
6060 config * ControllerConfig
6161 helmChartInfoGetter * config.HelmChartGetter
@@ -65,17 +65,17 @@ type DefaultK8sRegistrtionAgent struct {
6565}
6666
6767var (
68- _ commonhandlers.Named = & DefaultK8sRegistrtionAgent {}
69- _ lifecycle.AfterControlPlaneInitialized = & DefaultK8sRegistrtionAgent {}
70- _ lifecycle.BeforeClusterUpgrade = & DefaultK8sRegistrtionAgent {}
68+ _ commonhandlers.Named = & DefaultK8sRegistrationAgent {}
69+ _ lifecycle.AfterControlPlaneInitialized = & DefaultK8sRegistrationAgent {}
70+ _ lifecycle.BeforeClusterUpgrade = & DefaultK8sRegistrationAgent {}
7171)
7272
7373func New (
7474 c ctrlclient.Client ,
7575 cfg * ControllerConfig ,
7676 helmChartInfoGetter * config.HelmChartGetter ,
77- ) * DefaultK8sRegistrtionAgent {
78- return & DefaultK8sRegistrtionAgent {
77+ ) * DefaultK8sRegistrationAgent {
78+ return & DefaultK8sRegistrationAgent {
7979 client : c ,
8080 config : cfg ,
8181 helmChartInfoGetter : helmChartInfoGetter ,
@@ -84,11 +84,11 @@ func New(
8484 }
8585}
8686
87- func (n * DefaultK8sRegistrtionAgent ) Name () string {
87+ func (n * DefaultK8sRegistrationAgent ) Name () string {
8888 return "K8sRegistrationAgentHandler"
8989}
9090
91- func (n * DefaultK8sRegistrtionAgent ) AfterControlPlaneInitialized (
91+ func (n * DefaultK8sRegistrationAgent ) AfterControlPlaneInitialized (
9292 ctx context.Context ,
9393 req * runtimehooksv1.AfterControlPlaneInitializedRequest ,
9494 resp * runtimehooksv1.AfterControlPlaneInitializedResponse ,
@@ -99,7 +99,7 @@ func (n *DefaultK8sRegistrtionAgent) AfterControlPlaneInitialized(
9999 resp .Message = commonResponse .GetMessage ()
100100}
101101
102- func (n * DefaultK8sRegistrtionAgent ) BeforeClusterUpgrade (
102+ func (n * DefaultK8sRegistrationAgent ) BeforeClusterUpgrade (
103103 ctx context.Context ,
104104 req * runtimehooksv1.BeforeClusterUpgradeRequest ,
105105 resp * runtimehooksv1.BeforeClusterUpgradeResponse ,
@@ -110,7 +110,7 @@ func (n *DefaultK8sRegistrtionAgent) BeforeClusterUpgrade(
110110 resp .Message = commonResponse .GetMessage ()
111111}
112112
113- func (n * DefaultK8sRegistrtionAgent ) apply (
113+ func (n * DefaultK8sRegistrationAgent ) apply (
114114 ctx context.Context ,
115115 cluster * clusterv1.Cluster ,
116116 resp * runtimehooksv1.CommonResponse ,
0 commit comments