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

install-operator.sh is failed due to I don't know how to create secret #42

Closed
takara9 opened this issue Aug 16, 2019 · 4 comments
Closed
Assignees

Comments

@takara9
Copy link

takara9 commented Aug 16, 2019

$ curl -sL https://raw.githubusercontent.com/IBM/cloud-operators/master/hack/install-operator.sh | bash

  • Downloading install yaml...
    error: error validating "STDIN": error validating data: [unknown object type "nil" in Secret.data.api-key, unknown object type "nil" in Secret.data.region]; if you choose to ignore these errors, turn validation off with --validate=false
@vazirim
Copy link
Member

vazirim commented Aug 16, 2019

Hi @takara9, this means that your IBM Cloud settings have not been initialized properly. Please follow the Requirements section of the README.

@aslom
Copy link
Member

aslom commented Aug 25, 2019

I have similar error - I followed requirements.

(base) aslom@m dev-aiwf $ ibmcloud target --cf
Targeted Cloud Foundry (https://api.us-east.bluemix.net)

Targeted org aslom@us.ibm.com


Select a space (or press enter to skip):
1. tutorial2
2. dev01
Enter a number> 2
Targeted space dev01



API endpoint:      https://cloud.ibm.com
Region:            us-east
User:              aslom@us.ibm.com
Account:           Aleksander Slominski's Account (e3a470d882f9e5b9a59f4c98b6cb2b40) <-> 1729777
Resource group:    No resource group targeted, use 'ibmcloud target -g RESOURCE_GROUP'
CF API endpoint:   https://api.us-east.bluemix.net (API version: 2.128.0)
Org:               aslom@us.ibm.com
Space:             dev01
(base) aslom@m dev-aiwf $ curl -sL https://raw.githubusercontent.com/IBM/cloud-operators/master/hack/install-operator.sh | bash
* Downloading install yaml...
secret/seed-secret created
Error from server (BadRequest): error when creating "STDIN": ConfigMap in version "v1" cannot be handled as a ConfigMap: v1.ConfigMap.Data: ReadString: expects " or n, but found f, error found in #10 byte of ...|ceGroup":false,"spac|..., bigger context ...|m@us.ibm.com","region":"us-east","resourceGroup":false,"space":"dev01"},"kind":"ConfigMap","metadata|...

Any idea what may be causing the error?

@vazirim
Copy link
Member

vazirim commented Sep 3, 2019

Hi @aslom,

In the above target context, the Resource Group is nil. This must be a change in IBM Cloud (it used to be set to default if not specified). You need to do the following as well:

ibmcloud target -g default

which will set the resource group to default.

Please try and let me know if if fixes your issue.
We will update the documentation accordingly.

@vazirim vazirim self-assigned this Sep 3, 2019
@pdettori
Copy link
Member

Doc has been updated as described.

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

4 participants