Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix kubectl minio init -o #359

Merged
merged 3 commits into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions kubectl-minio/cmd/resources/cluter-role-binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ import (
// NewCluterRoleBindingForOperator will return a new cluster-role-binding for a MinIO Operator
func NewCluterRoleBindingForOperator(saName, ns string) *rbacv1.ClusterRoleBinding {
return &rbacv1.ClusterRoleBinding{
TypeMeta: metav1.TypeMeta{
APIVersion: "rbac.authorization.k8s.io/v1",
Kind: "RoleBinding",
},
ObjectMeta: metav1.ObjectMeta{
Name: helpers.ClusterRoleBindingName,
Namespace: ns,
Expand Down
4 changes: 4 additions & 0 deletions kubectl-minio/cmd/resources/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ func container(img, clusterDomain, nsToWatch string) corev1.Container {
// NewDeploymentForOperator will return a new deployment for a MinIO Operator
func NewDeploymentForOperator(opts OperatorOptions) *appsv1.Deployment {
return &appsv1.Deployment{
TypeMeta: metav1.TypeMeta{
APIVersion: "apps/v1",
Kind: "Deployment",
},
ObjectMeta: metav1.ObjectMeta{
Name: helpers.DeploymentName,
Namespace: opts.NS,
Expand Down
4 changes: 4 additions & 0 deletions kubectl-minio/cmd/resources/service-account.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ import (
// NewServiceAccountForOperator will return a new service account for a MinIO Operator
func NewServiceAccountForOperator(name, ns string) *corev1.ServiceAccount {
return &corev1.ServiceAccount{
TypeMeta: metav1.TypeMeta{
APIVersion: "v1",
Kind: "ServiceAccount",
},
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: ns,
Expand Down