rudder-federation icon indicating copy to clipboard operation
rudder-federation copied to clipboard

Unable to run populate-configmap.py

Open Blasterdick opened this issue 7 years ago • 1 comments

$ python2 utils/populate-configmap.py 
Traceback (most recent call last):
  File "utils/populate-configmap.py", line 20, in <module>
    "cadata": base64.b64decode([cluster for cluster in data["clusters"] if cluster["name"] == "federation"][0]['cluster']['certificate-authority-data'])[:-1],
IndexError: list index out of range

Blasterdick avatar Nov 20 '17 15:11 Blasterdick

README.md is based on a specific test setup where federated cluster is named "federation". In my case I had called it something else and got the same error. Just change cluster["name"] == "federation" to cluster["name"] == "whateverfederationclusteriscalled"

You also need to change federation-apiserver.federation-system to yourname-apiserver.federation-system, both in this python script and ruddered-tiller.yaml.

tesharp avatar Nov 29 '17 13:11 tesharp