mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00

- Generate OLM related manifests for CDI in _out/manifests/release/olm OLM bundle: - cdi CSV manifest - cdi crd manifest - cdi package manifest - operatorsource manifest - subscription manifest - operatorgroup manifest - Modify cdi-operator role not to be cluster-admin but more specific - Move all final manifests to _out/manifests directory and update travis with new manifests location - Provide API for vendoring CDI OLM manifests generation code Note: - OLM CSV update to be supported in a separate PR - OLM bundle integration in travis is to be supported together with CSV update
32 lines
687 B
YAML
32 lines
687 B
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
labels:
|
|
cdi.kubevirt.io: ""
|
|
name: {{.Namespace}}
|
|
{{index .GeneratedManifests "cdi-crd.yaml"}}
|
|
{{index .GeneratedManifests "cdi-configmap-cr.yaml"}}
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: cdi.kubevirt.io:operator
|
|
labels:
|
|
operator.cdi.kubevirt.io: ""
|
|
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
|
rules:
|
|
- apiGroups:
|
|
- cdi.kubevirt.io
|
|
resources:
|
|
- cdis
|
|
verbs:
|
|
- create
|
|
- patch
|
|
- get
|
|
- list
|
|
- delete
|
|
- watch
|
|
- deletecollection
|
|
{{index .GeneratedManifests "rbac-operator.authorization.k8s.yaml.in"}}
|
|
{{index .GeneratedManifests "cdi-operator-deployment.yaml"}}
|