Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
changed rbac role names based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rifisdfds committed Mar 7, 2022
1 parent 193f0c2 commit bf34341
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/namespace_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (r *NamespaceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
// TODO: Obtain this clusterrole info from a Configmap or other source, rather than hard code
clusterRole := &rbacv1.ClusterRole{
ObjectMeta: metav1.ObjectMeta{
Name: "providerconfig-" + namespace.Name,
Name: namespace.Name + "-aws",
},
Rules: []rbacv1.PolicyRule{
{
Expand All @@ -120,7 +120,7 @@ func (r *NamespaceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
// TODO: Obtain this clusterrolebinding info from a Configmap or other source, rather than hard code
clusterRoleBinding := &rbacv1.ClusterRoleBinding{
ObjectMeta: metav1.ObjectMeta{
Name: "providerconfig-" + namespace.Name,
Name: namespace.Name + "-aws",
},
Subjects: []rbacv1.Subject{
{
Expand All @@ -144,7 +144,7 @@ func (r *NamespaceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
// TODO: Obtain this providerconfig info from a Configmap or other source, rather than hard code
providerAWS := &provideraws.ProviderConfig{
ObjectMeta: metav1.ObjectMeta{
Name: "" + namespace.Name + "-aws",
Name: namespace.Name + "-aws",
},
Spec: provideraws.ProviderConfigSpec{
Credentials: provideraws.ProviderCredentials{
Expand Down

0 comments on commit bf34341

Please sign in to comment.