Skip to content

Commit

Permalink
Fix: typo of file and func name (#639)
Browse files Browse the repository at this point in the history
* Fix: typo of plugin filename

Signed-off-by: Tom <[email protected]>

* typo of Fleet plugin render func

Signed-off-by: Tom <[email protected]>

---------

Signed-off-by: Tom <[email protected]>
  • Loading branch information
Flying-Tom authored Jun 29, 2024
1 parent 5a3a8ea commit 69888be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/fleet-manager/fleet_plugin_flagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions pkg/fleet-manager/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func RenderClusterStorage(
})
}

func RendeFlagger(
func RenderFlagger(
fsys fs.FS,
fleetNN types.NamespacedName,
fleetRef *metav1.OwnerReference,
Expand Down Expand Up @@ -412,7 +412,7 @@ func RendeFlagger(
})
}

func RendeRolloutTestloader(
func RenderRolloutTestloader(
fsys fs.FS,
fleetNN types.NamespacedName,
fleetRef *metav1.OwnerReference,
Expand Down
4 changes: 2 additions & 2 deletions pkg/fleet-manager/plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
File renamed without changes.

0 comments on commit 69888be

Please sign in to comment.