Skip to content

Commit 9fc1f34

Browse files
tuxerranteclaude
andauthored
Fix "wimi" typos to "miwi" (Managed Identity for Workload Identity) (#4654)
Rename deleteWimiRoleAssignments to deleteMiwiRoleAssignments and fix log messages and documentation to use the correct "miwi" abbreviation. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2d852ae commit 9fc1f34

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/deploy-development-rp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ mock a cluster MSI. This script will also create the platform identities, platfo
102102

103103
1. Create a resource group for your cluster and managed identities
104104

105-
1. Source the local dev script and run the command to set up the wimi env file for you
105+
1. Source the local dev script and run the command to set up the miwi env file for you
106106

107107
```bash
108108
source ./hack/devtools/local_dev_env.sh

pkg/util/cluster/cluster.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ func (c *Cluster) Delete(ctx context.Context, vnetResourceGroup, clusterName str
791791
errs = append(errs, fmt.Errorf("failed to delete cluster: %w", err))
792792
}
793793

794-
if err := c.deleteWimiRoleAssignments(ctx, vnetResourceGroup); err != nil {
794+
if err := c.deleteMiwiRoleAssignments(ctx, vnetResourceGroup); err != nil {
795795
c.log.Errorf("Failed to delete workload identity role assignments: %v", err)
796796
errs = append(errs, fmt.Errorf("failed to delete workload identity role assignments: %w", err))
797797
}
@@ -828,7 +828,7 @@ func (c *Cluster) Delete(ctx context.Context, vnetResourceGroup, clusterName str
828828
errs = append(errs, fmt.Errorf("failed to delete cluster: %w", err))
829829
}
830830

831-
if err := c.deleteWimiRoleAssignments(ctx, vnetResourceGroup); err != nil {
831+
if err := c.deleteMiwiRoleAssignments(ctx, vnetResourceGroup); err != nil {
832832
c.log.Errorf("Failed to delete workload identity role assignments: %v", err)
833833
errs = append(errs, fmt.Errorf("failed to delete workload identity role assignments: %w", err))
834834
}
@@ -1309,12 +1309,12 @@ func (c *Cluster) deleteRoleAssignments(ctx context.Context, vnetResourceGroup,
13091309
return nil
13101310
}
13111311

1312-
func (c *Cluster) deleteWimiRoleAssignments(ctx context.Context, vnetResourceGroup string) error {
1312+
func (c *Cluster) deleteMiwiRoleAssignments(ctx context.Context, vnetResourceGroup string) error {
13131313
if !c.Config.UseWorkloadIdentity {
1314-
c.log.Print("Skipping deletion of wimi roleassignments")
1314+
c.log.Print("Skipping deletion of miwi role assignments")
13151315
return nil
13161316
}
1317-
c.log.Print("deleting wimi role assignments")
1317+
c.log.Print("deleting miwi role assignments")
13181318

13191319
var wiRoleSets []api.PlatformWorkloadIdentityRoleSetProperties
13201320
if err := json.Unmarshal([]byte(c.Config.WorkloadIdentityRoles), &wiRoleSets); err != nil {

0 commit comments

Comments
 (0)