Kubernetes: initial CRD framework (#4892)

* Kubernetes: initial CRD framework

Signed-off-by: mclarke <mclarke@spotify.com>

* use luxon instead of date-fns

Signed-off-by: mclarke <mclarke@spotify.com>

* fix test

Signed-off-by: mclarke <mclarke@spotify.com>

* update ui schema

Signed-off-by: mclarke <mclarke@spotify.com>

* update app config

Signed-off-by: mclarke <mclarke@spotify.com>

* rollout tests

Signed-off-by: mclarke <mclarke@spotify.com>

* add default custom resource component

Signed-off-by: mclarke <mclarke@spotify.com>

* make custom resources optional

Signed-off-by: mclarke <mclarke@spotify.com>

* add docs

Signed-off-by: mclarke <mclarke@spotify.com>

* prettier

Signed-off-by: mclarke <mclarke@spotify.com>

* replace core-api usage with core

Signed-off-by: mclarke <mclarke@spotify.com>
This commit is contained in:
Matthew Clarke
2021-03-11 10:32:41 +00:00
committed by GitHub
parent 6bd417b7b8
commit e2c1b3fb6a
53 changed files with 5853 additions and 198 deletions
+30
View File
@@ -123,6 +123,34 @@ The Google Cloud project to look for Kubernetes clusters in.
The Google Cloud region to look for Kubernetes clusters in. Defaults to all
regions.
### `customResources` (optional)
Configures which [custom resources][3] to look for when returning an entity's
Kubernetes resources.
Defaults to empty array. router.ts Example:
```yaml
---
kubernetes:
customResources:
- group: 'argoproj.io'
apiVersion: 'v1alpha1'
plural: 'rollouts'
```
#### `customResources.\*.group`
The custom resource's group.
#### `customResources.\*.apiVersion`
The custom resource's apiVersion.
#### `customResources.\*.plural`
The plural representing the custom resource.
### Role Based Access Control
The current RBAC permissions required are read-only cluster wide, for the
@@ -176,3 +204,5 @@ for more info.
[1]: https://cloud.google.com/kubernetes-engine
[2]: https://cloud.google.com/docs/authentication/production#linux-or-macos
[3]:
https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/