Skip to content

Commit a354621

Browse files
committed
Update flag name to skip-namespace
1 parent 7545cf8 commit a354621

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cmd/flux/create_tenant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func init() {
7070
createTenantCmd.Flags().StringSliceVar(&tenantArgs.namespaces, "with-namespace", nil, "namespace belonging to this tenant")
7171
createTenantCmd.Flags().StringVar(&tenantArgs.clusterRole, "cluster-role", "cluster-admin", "cluster role of the tenant role binding")
7272
createTenantCmd.Flags().StringVar(&tenantArgs.account, "with-service-account", "", "service account belonging to this tenant")
73-
createTenantCmd.Flags().BoolVar(&tenantArgs.skipNamespace, "skip-namespace-create", false, "skip namespace creation (namespace must exist already)")
73+
createTenantCmd.Flags().BoolVar(&tenantArgs.skipNamespace, "skip-namespace", false, "skip namespace creation (namespace must exist already)")
7474
createCmd.AddCommand(createTenantCmd)
7575
}
7676

cmd/flux/create_tenant_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ func TestCreateTenant(t *testing.T) {
5555
assert: assertGoldenFile("./testdata/create_tenant/tenant-with-cluster-role.yaml"),
5656
},
5757
{
58-
name: "tenant with skip namespace create",
59-
args: "create tenant dev-team --with-namespace=apps --cluster-role=cluster-admin --skip-namespace-create --export",
60-
assert: assertGoldenFile("./testdata/create_tenant/tenant-with-skip-namespace-create.yaml"),
58+
name: "tenant with skip namespace",
59+
args: "create tenant dev-team --with-namespace=apps --cluster-role=cluster-admin --skip-namespace --export",
60+
assert: assertGoldenFile("./testdata/create_tenant/tenant-with-skip-namespace.yaml"),
6161
},
6262
}
6363

0 commit comments

Comments
 (0)