Skip to content

Commit

Permalink
Merge pull request #495 from LiZhenCheng9527/fix
Browse files Browse the repository at this point in the history
Fixed function name error
  • Loading branch information
kurator-bot authored Dec 4, 2023
2 parents 984b852 + 8176387 commit 49cc642
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/fleet-manager/fleet_plugin_distributedstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (f *FleetManager) reconcileDistributedStoragePlugin(ctx context.Context, fl

// First install rook-operator for the specified multicluster.
for key, cluster := range fleetClusters {
b, err := plugin.RendeStorageOperator(f.Manifests, fleetNN, fleetOwnerRef, plugin.KubeConfigSecretRef{
b, err := plugin.RenderStorageOperator(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 @@ -300,8 +300,8 @@ func RenderVelero(
})
}

// Build configuration of the rendering rook-operator.
func RendeStorageOperator(
// RenderStorageOperator builds configuration of the rendering rook-operator.
func RenderStorageOperator(
fsys fs.FS,
fleetNN types.NamespacedName,
fleetRef *metav1.OwnerReference,
Expand Down
2 changes: 1 addition & 1 deletion pkg/fleet-manager/plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ func TestRenderStorageOperator(t *testing.T) {

for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
got, err := RendeStorageOperator(manifestFS, tc.fleet, tc.ref, KubeConfigSecretRef{
got, err := RenderStorageOperator(manifestFS, tc.fleet, tc.ref, KubeConfigSecretRef{
Name: "cluster1",
SecretName: "cluster1",
SecretKey: "kubeconfig.yaml",
Expand Down

0 comments on commit 49cc642

Please sign in to comment.