Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.
This repository was archived by the owner on May 28, 2021. It is now read-only.

Installing operator in a different namespace fails #193

Closed
@mateusz-blaszkowski

Description

@mateusz-blaszkowski

Is this a BUG REPORT or FEATURE REQUEST?

BUG REPORT

Versions

MySQL Operator Version:

92fa624

Environment:

  • Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.1", GitCommit:"d4ab47518836c750f9949b9e0d387f20fb92260b", GitTreeState:"clean", BuildDate:"2018-04-12T14:26:04Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
$ cat /etc/os-release 
NAME=Buildroot
VERSION=2018.05
ID=buildroot
VERSION_ID=2018.05
PRETTY_NAME="Buildroot 2018.05"
  • Kernel (e.g. uname -a):
Linux minikube 4.15.0 #1 SMP Mon Jul 16 20:23:29 UTC 2018 x86_64 GNU/Linux
  • Others:

What happened?

Installing operator in a different namespace fails. Replica set cannot create a pod because "mysql-operator" serviceaccount is not found:

kubectl describe rs mysql-operator-56cb675b7f -n oracle-mysql-operator
...
Error creating: pods "mysql-operator-56cb675b7f-" is forbidden: error looking up service account oracle-mysql-operator/mysql-operator: serviceaccount "mysql-operator" not found

I've found that mysql-operator serviceaccount is indeed created but in a default (mysql-operator) namespace:

# kubectl get sa  mysql-operator -n mysql-operator
NAME             SECRETS   AGE
mysql-operator   1         16m

What you expected to happen?

I'd expect the serviceaccount mysql-operator to be created in a specified namespace

How to reproduce it (as minimally and precisely as possible)?

kubectl create ns oracle-mysql-operator
helm install --name oracle-mysql-operator --set operator.namespace=oracle-mysql-operator mysql-operator
kubectl describe rs <rs_name> -n oracle-mysql-operator
# Here you should see an error saying that mysql-operator serviceaccount is not found 

Anything else we need to know?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions