Skip to content

Commit

Permalink
Fix ClusterRoleBinding
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Jan 14, 2022
1 parent 41668bc commit e754d0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 7 additions & 0 deletions installer/pkg/components/registry-facade/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
[]corev1.EnvVar{{
Name: "GRPC_GO_RETRY",
Value: "on",
}, {
Name: "NODENAME",
ValueFrom: &corev1.EnvVarSource{
FieldRef: &corev1.ObjectFieldSelector{
FieldPath: "spec.nodeName",
},
},
}},
),
VolumeMounts: append([]corev1.VolumeMount{{
Expand Down
9 changes: 4 additions & 5 deletions installer/pkg/components/ws-daemon/rolebinding.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ func rolebinding(ctx *common.RenderContext) ([]runtime.Object, error) {
},
},
},
&rbacv1.RoleBinding{
TypeMeta: common.TypeMetaRoleBinding,
&rbacv1.ClusterRoleBinding{
TypeMeta: common.TypeMetaClusterRoleBinding,
ObjectMeta: metav1.ObjectMeta{
Name: fmt.Sprintf("%s-rb", Component),
Namespace: ctx.Namespace,
Labels: labels,
Name: fmt.Sprintf("%s-%s-rb", ctx.Namespace, Component),
Labels: labels,
},
Subjects: []rbacv1.Subject{{
Kind: "ServiceAccount",
Expand Down

0 comments on commit e754d0d

Please sign in to comment.