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

Operator should not target locally targeted resource group when using API Key #232

Open
jzaccone opened this issue Nov 16, 2020 · 1 comment

Comments

@jzaccone
Copy link

jzaccone commented Nov 16, 2020

When using an API Key/Service ID, there should be away to specify the target resource group that the operator uses. Right now it uses the locally defined targeted operator, which may or may not be the same resource group as the API Key.

John_Zaccone@cloudshell:~$ ibmcloud target -g remkohdev-liab-test-group
Targeted resource group remkohdev-liab-test-group
                      
API endpoint:      https://cloud.ibm.com   
Region:            us-south   
User:              [email protected]   
Account:           IBM Client Developer Advocacy (e65910fa61ce9072d64902d03f3d4774) <-> 2058850   
Resource group:    remkohdev-liab-test-group   
CF API endpoint:      
Org:                  
Space:      
          
John_Zaccone@cloudshell:~$ curl -sL https://raw.githubusercontent.com/IBM/cloud-operators/master/hack/configure-operator.sh | bash -s -- install
secret/ibmcloud-operator-secret unchanged
configmap/ibmcloud-operator-defaults configured
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 29139  100 29139    0     0  96486      0 --:--:-- --:--:-- --:--:-- 96486
Downloaded:
...

John_Zaccone@cloudshell:~$ kubectl get configmap/ibmcloud-operator-defaults -o yaml | grep resource
  resourcegroup: remkohdev-liab-test-group
  resourcegroupid: c47309f3ea86467996541820af87361f
      {"apiVersion":"v1","data":{"org":"","region":"us-south","resourcegroup":"remkohdev-liab-test-group","resourcegroupid":"c47309f3ea86467996541820af87361f","space":"","user":"[email protected]"},"kind":"ConfigMap","metadata":{"annotations":{},"labels":{"app.kubernetes.io/name":"ibmcloud-operator"},"name":"ibmcloud-operator-defaults","namespace":"default"}}
        f:resourcegroup: {}
        f:resourcegroupid: {}
  resourceVersion: "677918"
@jzaccone
Copy link
Author

I found the instructions to manually change the configmap to point to a new account/resource group. But perhaps a more explicit operator configuration should be considered here. (or at least a prompt in the installation script)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant