diff --git a/pkg/fleet-manager/fleet_plugin_flagger.go b/pkg/fleet-manager/fleet_plugin_flagger.go index 2f395d433..95317363a 100644 --- a/pkg/fleet-manager/fleet_plugin_flagger.go +++ b/pkg/fleet-manager/fleet_plugin_flagger.go @@ -47,7 +47,7 @@ func (f *FleetManager) reconcileFlaggerPlugin(ctx context.Context, fleet *fleeta var resources kube.ResourceList for key, cluster := range fleetClusters { - b, err := plugin.RendeFlagger(f.Manifests, fleetNN, fleetOwnerRef, plugin.KubeConfigSecretRef{ + b, err := plugin.RenderFlagger(f.Manifests, fleetNN, fleetOwnerRef, plugin.KubeConfigSecretRef{ Name: key.Name, SecretName: cluster.Secret, SecretKey: cluster.SecretKey, @@ -65,7 +65,7 @@ func (f *FleetManager) reconcileFlaggerPlugin(ctx context.Context, fleet *fleeta // install public testloader if needed if flaggerCfg.PublicTestloader { - b, err := plugin.RendeRolloutTestloader(f.Manifests, fleetNN, fleetOwnerRef, plugin.KubeConfigSecretRef{ + b, err := plugin.RenderRolloutTestloader(f.Manifests, fleetNN, fleetOwnerRef, plugin.KubeConfigSecretRef{ Name: key.Name, SecretName: cluster.Secret, SecretKey: cluster.SecretKey, diff --git a/pkg/fleet-manager/plugin/plugin.go b/pkg/fleet-manager/plugin/plugin.go index 8be4922ef..c4da65f5f 100644 --- a/pkg/fleet-manager/plugin/plugin.go +++ b/pkg/fleet-manager/plugin/plugin.go @@ -381,7 +381,7 @@ func RenderClusterStorage( }) } -func RendeFlagger( +func RenderFlagger( fsys fs.FS, fleetNN types.NamespacedName, fleetRef *metav1.OwnerReference, @@ -412,7 +412,7 @@ func RendeFlagger( }) } -func RendeRolloutTestloader( +func RenderRolloutTestloader( fsys fs.FS, fleetNN types.NamespacedName, fleetRef *metav1.OwnerReference, diff --git a/pkg/fleet-manager/plugin/plugin_test.go b/pkg/fleet-manager/plugin/plugin_test.go index 95e37d951..e96b544da 100644 --- a/pkg/fleet-manager/plugin/plugin_test.go +++ b/pkg/fleet-manager/plugin/plugin_test.go @@ -587,7 +587,7 @@ func TestRendeFlagger(t *testing.T) { for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { - got, err := RendeFlagger(manifestFS, tc.fleet, tc.ref, KubeConfigSecretRef{ + got, err := RenderFlagger(manifestFS, tc.fleet, tc.ref, KubeConfigSecretRef{ Name: "cluster1", SecretName: "cluster1", SecretKey: "kubeconfig.yaml", @@ -630,7 +630,7 @@ func TestRendeRolloutTestloader(t *testing.T) { for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { - got, err := RendeRolloutTestloader(manifestFS, tc.fleet, tc.ref, KubeConfigSecretRef{ + got, err := RenderRolloutTestloader(manifestFS, tc.fleet, tc.ref, KubeConfigSecretRef{ Name: "cluster1", SecretName: "cluster1", SecretKey: "kubeconfig.yaml", diff --git a/pkg/plugin/prometheus/pulgin.go b/pkg/plugin/prometheus/plugin.go similarity index 100% rename from pkg/plugin/prometheus/pulgin.go rename to pkg/plugin/prometheus/plugin.go