Skip to content

Commit

Permalink
chore: change default group name
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Bähler <[email protected]>
  • Loading branch information
oliverbaehler committed Jun 2, 2024
1 parent 842eb3b commit ecb4035
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion e2e/custom_capsule_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var _ = Describe("creating a Namespace as Tenant owner with custom --capsule-gro

It("should succeed and be available in Tenant namespaces list with default single group", func() {
ModifyCapsuleConfigurationOpts(func(configuration *capsulev1beta2.CapsuleConfiguration) {
configuration.Spec.UserGroups = []string{"capsule.clastix.io"}
configuration.Spec.UserGroups = []string{"projectcapsule.dev"}
})

ns := NewNamespace("")
Expand Down
2 changes: 1 addition & 1 deletion e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var _ = AfterSuite(func() {
func ownerClient(owner capsulev1beta2.OwnerSpec) (cs kubernetes.Interface) {
c, err := config.GetConfig()
Expect(err).ToNot(HaveOccurred())
c.Impersonate.Groups = []string{capsulev1beta2.GroupVersion.Group, owner.Name}
c.Impersonate.Groups = []string{"projectcapsule.dev", owner.Name}
c.Impersonate.UserName = owner.Name
cs, err = kubernetes.NewForConfig(c)
Expect(err).ToNot(HaveOccurred())
Expand Down
2 changes: 1 addition & 1 deletion hack/create-user-openshift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if [[ -z ${TENANT} ]]; then
fi

if [[ -z ${GROUP} ]]; then
GROUP=capsule.clastix.io
GROUP=projectcapsule.dev
fi

TMPDIR=$(mktemp -d)
Expand Down
2 changes: 1 addition & 1 deletion hack/create-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if [[ -z ${TENANT} ]]; then
fi

if [[ -z ${GROUP} ]]; then
GROUP=capsule.clastix.io
GROUP=projectcapsule.dev
fi


Expand Down
2 changes: 1 addition & 1 deletion pkg/configuration/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NewCapsuleConfiguration(ctx context.Context, client client.Client, name str
if apierrors.IsNotFound(err) {
return &capsulev1beta2.CapsuleConfiguration{
Spec: capsulev1beta2.CapsuleConfigurationSpec{
UserGroups: []string{"capsule.clastix.io"},
UserGroups: []string{"projectcapsule.dev"},
ForceTenantPrefix: false,
ProtectedNamespaceRegexpString: "",
},
Expand Down

0 comments on commit ecb4035

Please sign in to comment.