9581ff0b4f
* Restructure config; add GKE cluster locator Signed-off-by: mclarke <mclarke@spotify.com> * PR feedback Signed-off-by: mclarke <mclarke@spotify.com> * fix region typo Signed-off-by: mclarke <mclarke@spotify.com> * replace config api call with clusters endpoint Signed-off-by: mclarke <mclarke@spotify.com> * missed tsc error Signed-off-by: mclarke <mclarke@spotify.com> * doc tweak Signed-off-by: mclarke <mclarke@spotify.com>
1.2 KiB
1.2 KiB
@backstage/plugin-kubernetes, @backstage/plugin-kubernetes-backend
| @backstage/plugin-kubernetes | @backstage/plugin-kubernetes-backend |
|---|---|
| minor | minor |
Restructure configuration; Add GKE cluster locator
Config migration
kubernetes.clustersis now atkubernetes.clusterLocatorMethods[].clusterswhen theclusterLocatorMethodis oftype: 'config''kubernetes.serviceLocatorMethodis now an object.multiTenantis the only validtypecurrently
Old config example:
kubernetes:
serviceLocatorMethod: 'multiTenant'
clusterLocatorMethods:
- 'config'
clusters:
- url: http://127.0.0.1:9999
name: minikube
authProvider: 'serviceAccount'
serviceAccountToken:
$env: K8S_MINIKUBE_TOKEN
- url: http://127.0.0.2:9999
name: aws-cluster-1
authProvider: 'aws'
New config example:
kubernetes:
serviceLocatorMethod:
type: 'multiTenant'
clusterLocatorMethods:
- type: 'config'
clusters:
- url: http://127.0.0.1:9999
name: minikube
authProvider: 'serviceAccount'
serviceAccountToken:
$env: K8S_MINIKUBE_TOKEN
- url: http://127.0.0.2:9999
name: aws-cluster-1
authProvider: 'aws'