Commit Graph

20 Commits

Author SHA1 Message Date
Michael Henriksen
0b9fb15e86
operator create apiservice and webhook configurations (#1103)
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2020-02-11 05:45:15 +01:00
Michael Henriksen
97c23cfa5a remove DOCKER_REPO from operator (#1022)
* remove DOCKER_REPO from operator

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* make generate and update CDI schema

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2019-11-14 02:59:16 +01:00
Michael Henriksen
044ab60f52 cut down operator permissions (#1012)
* cut down operator permissions

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* mage sure csv-generator is built but not included in operator image

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2019-11-11 22:41:14 +01:00
Michael Henriksen
254dc90835 create aggregate cluster roles (#961)
* create aggregate cluster roles

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* CDIConfig needs a ClusterRoleBinding so bind to system:authenticated for reading

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* comment out problematic test

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* operator needs upload.cdi.kubevirt.io permission

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* revert commented out tests

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2019-09-18 19:03:49 -04:00
David Vossel
c58fdc3e82 Properly handle replaces CSV version during manifest generation
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-05 14:41:58 -04:00
David Vossel
2292ea1700 Generate release CSV from code
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-02 10:11:27 -04:00
David Vossel
aadcc6ad9b move manifest marshaller into util package
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-02 10:11:27 -04:00
Anna Stopel
7ad9bc2366 Olm upgrade (#817)
*     CDI OLM update support
    * Download latest CDI OLM manifest from marketplace to set replaces field
    * Prevent from genarting a csv version that already exist in  the marketplace

*     * Vendor the bellow packages in order to be able to fetch existing CSV
      - github.com/operator-framework/operator-marketplace
      - github.com/go-openapi/spec
      - github.com/go-openapi/validate
      - github.com/go-openapi/errors
      - github.com/go-openapi/analysis
      - github.com/go-openapi/strfmt
      - github.com/go-openapi/loads
      - github.com/go-openapi/runtime

* lint bug-fix

* CR fixes

* CR typo fixes

* * Split catalogsource/operatorsource/subscription manifests to k8s and os
* Update OLM documentation
* rename bundle-helper.go file

* * change CDI repository name in quay from cdi to cdi-operatorhub

* Update cdi-operator-olm.md
2019-06-19 16:35:58 -04:00
Alexander Wels
630a23ef23 Fix a bunch of go score card issues.
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-05-06 16:52:03 -04:00
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
u5surf
6a2a36e1fd add copies the flags after flags parse 2019-03-07 23:20:34 +09:00
Y.Horie
c9104059fb move to klog from glog 2019-03-05 13:33:20 +09:00
Michael Henriksen
5e2ed1b97b initial oerator implementation 2019-01-16 20:22:14 -05:00
Michael Henriksen
d02ed1d741 generate cdi-controller.yaml from resources defined in code 2019-01-11 10:15:03 -05:00
Michael Henriksen
b135463747 operator scaffolding 2019-01-08 16:03:21 -05:00
Michael Henriksen
452e30bca7 add verification to functional test and change to shared pod phase annotation 2018-09-19 14:37:19 -04:00
Adam Litke
ae0223bc33 Templateize docker image names (#458)
When generating the CDI release manifest, allow the image names for the
controller, importer, and cloner pods to be changed.

Signed-off-by: Adam Litke <alitke@redhat.com>
2018-09-18 11:37:56 -04:00
Shiyang Wang
6c785ca40b [WIP] Provide a jinja2 template for the cdi manifest (#321)
* change build-manifests.sh to generate jinjia template

* change verbosity to string

* add file to travis
2018-08-07 08:46:25 -07:00
David Vossel
c6e33f1bea add namespace template parameter for cdi manifests (#305)
Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-08-01 10:36:41 -07:00
Jon Cope
8f953afd96 Add dynamic manifest generation
Adds go templated controller manifest

Adds make targets for template generation

Removes hard coded version values

Enables template generation and publishing in CI
2018-07-24 16:19:20 -05:00