containerized-data-importer/manifests/templates/release/cdi-operator.yaml.in
annastopel f634cdaa17 CDI operator OLM integration:
- 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
2019-05-01 13:54:28 +03:00

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"}}