update changeset, fix pr nits

Signed-off-by: Andrew Tran <atran@brex.com>
This commit is contained in:
Andrew Tran
2021-11-30 16:04:39 -06:00
parent 24af47761b
commit 4dab6ffaad
3 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
---
'@backstage/plugin-kubernetes-backend': minor
'@backstage/plugin-kubernetes-backend': patch
---
Added apiVersionOverrides config to allow for specifying api versions to use for kubernetes objects
@@ -225,6 +225,13 @@ Overrides for the API versions used to make requests for the corresponding
objects. If using a legacy Kubernetes version, you may use this config to
override the default API versions to ones that are supported by your cluster.
```yaml
---
kubernetes:
apiVersionOverrides:
cronjobs: 'v1beta1'
```
### Role Based Access Control
The current RBAC permissions required are read-only cluster wide, for the
@@ -259,7 +259,7 @@ export class KubernetesBuilder {
objectTypesToFetch = objectTypesToFetch ?? DEFAULT_OBJECTS;
for (const obj of objectTypesToFetch) {
if (apiVersionOverrides.getOptionalString(obj.objectType)) {
if (apiVersionOverrides.has(obj.objectType)) {
obj.apiVersion = apiVersionOverrides.getString(obj.objectType);
}
}