Skip to content

Commit

Permalink
Merge pull request operator-framework#475 from ecordell/0.7.1
Browse files Browse the repository at this point in the history
Cut 0.7.1
  • Loading branch information
openshift-merge-robot authored Sep 20, 2018
2 parents 3f9ae52 + 9d7d8c1 commit af9ccd1
Show file tree
Hide file tree
Showing 67 changed files with 34,125 additions and 53 deletions.
25 changes: 10 additions & 15 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
script:
- echo $TEAMUI_KUBECONFIG | base64 -d > kubeconfig
- export KUBECONFIG=./kubeconfig
- kubectl create ns operator-lifecycle-manager || true
- kubectl create secret docker-registry coreos-pull-secret --docker-server quay.io --docker-username $DOCKER_USER --docker-password $DOCKER_PASS --docker-email ignored@example.com --namespace=operator-lifecycle-manager
|| true
- charttmpdir=`mktemp -d 2>/dev/null || mktemp -d -t 'charttmpdir'`;mkdir -p ${charttmpdir};helm template -n olm --set namespace=operator-lifecycle-manager deploy/chart --set alm.image.ref=quay.io/coreos/olm:${CI_COMMIT_REF_SLUG}-${SHA8}
--set catalog.image.ref=quay.io/coreos/catalog:${CI_COMMIT_REF_SLUG}-${SHA8} --set catalog_namespace=operator-lifecycle-manager --set namespace=operator-lifecycle-manager --set package.image.ref=quay.io/coreos/package-server:${CI_COMMIT_REF_SLUG}-${SHA8}
--set watchedNamespaces= --output-dir ${charttmpdir};chartfilenames=$(ls ${charttmpdir}/olm/templates/*.yaml);echo ${chartfilenames};for f in ${chartfilenames};do kubectl replace --force -f ${f};done;
- kubectl create secret docker-registry coreos-pull-secret --docker-server quay.io --docker-username $DOCKER_USER --docker-password $DOCKER_PASS --docker-email ignored@example.com --namespace=operator-lifecycle-manager
|| true
- kubectl rollout status -w deployment/olm-operator --namespace=operator-lifecycle-manager
- kubectl rollout status -w deployment/catalog-operator --namespace=operator-lifecycle-manager
- kubectl rollout status -w deployment/package-server --namespace=operator-lifecycle-manager
Expand Down Expand Up @@ -114,12 +113,11 @@ deploy-openshift:
script:
- echo $OPENSHIFT_KUBECONFIG | base64 -d > kubeconfig
- export KUBECONFIG=./kubeconfig
- kubectl create ns operator-lifecycle-manager || true
- kubectl create secret docker-registry coreos-pull-secret --docker-server quay.io --docker-username $DOCKER_USER --docker-password $DOCKER_PASS --docker-email ignored@example.com --namespace=operator-lifecycle-manager
|| true
- charttmpdir=`mktemp -d 2>/dev/null || mktemp -d -t 'charttmpdir'`;mkdir -p ${charttmpdir};helm template -n olm --set namespace=operator-lifecycle-manager deploy/chart --set alm.image.ref=quay.io/coreos/olm:${CI_COMMIT_REF_SLUG}-${SHA8}
--set catalog.image.ref=quay.io/coreos/catalog:${CI_COMMIT_REF_SLUG}-${SHA8} --set catalog_namespace=operator-lifecycle-manager --set namespace=operator-lifecycle-manager --set package.image.ref=quay.io/coreos/package-server:${CI_COMMIT_REF_SLUG}-${SHA8}
--set watchedNamespaces= --output-dir ${charttmpdir};chartfilenames=$(ls ${charttmpdir}/olm/templates/*.yaml);echo ${chartfilenames};for f in ${chartfilenames};do kubectl replace --force -f ${f};done;
- kubectl create secret docker-registry coreos-pull-secret --docker-server quay.io --docker-username $DOCKER_USER --docker-password $DOCKER_PASS --docker-email ignored@example.com --namespace=operator-lifecycle-manager
|| true
- kubectl rollout status -w deployment/olm-operator --namespace=operator-lifecycle-manager
- kubectl rollout status -w deployment/catalog-operator --namespace=operator-lifecycle-manager
- kubectl rollout status -w deployment/package-server --namespace=operator-lifecycle-manager
Expand Down Expand Up @@ -150,13 +148,12 @@ deploy-preview:
script:
- echo $CD_KUBECONFIG | base64 -d > kubeconfig
- export KUBECONFIG=./kubeconfig
- kubectl create ns ci-alm-${CI_COMMIT_REF_SLUG} || true
- kubectl create secret docker-registry coreos-pull-secret --docker-server quay.io --docker-username $DOCKER_USER --docker-password $DOCKER_PASS --docker-email ignored@example.com --namespace=ci-alm-${CI_COMMIT_REF_SLUG}
|| true
- charttmpdir=`mktemp -d 2>/dev/null || mktemp -d -t 'charttmpdir'`;mkdir -p ${charttmpdir};helm template -n olm --set namespace=ci-alm-${CI_COMMIT_REF_SLUG} deploy/chart --set alm.image.ref=quay.io/coreos/alm-ci:${CI_COMMIT_REF_SLUG}-pre
--set catalog.image.ref=quay.io/coreos/catalog-ci:${CI_COMMIT_REF_SLUG}-pre --set catalog_namespace=operator-lifecycle-manager --set namespace=ci-alm-${CI_COMMIT_REF_SLUG} --set package.image.ref=quay.io/coreos/package-server-ci:${CI_COMMIT_REF_SLUG}-pre
--set watchedNamespaces=ci-alm-${CI_COMMIT_REF_SLUG} --output-dir ${charttmpdir};chartfilenames=$(ls ${charttmpdir}/olm/templates/*.yaml);echo ${chartfilenames};for f in ${chartfilenames};do kubectl
replace --force -f ${f};done;
- kubectl create secret docker-registry coreos-pull-secret --docker-server quay.io --docker-username $DOCKER_USER --docker-password $DOCKER_PASS --docker-email ignored@example.com --namespace=ci-alm-${CI_COMMIT_REF_SLUG}
|| true
- kubectl rollout status -w deployment/olm-operator --namespace=ci-alm-${CI_COMMIT_REF_SLUG}
- kubectl rollout status -w deployment/catalog-operator --namespace=ci-alm-${CI_COMMIT_REF_SLUG}
- kubectl rollout status -w deployment/package-server --namespace=ci-alm-${CI_COMMIT_REF_SLUG}
Expand All @@ -182,13 +179,12 @@ deploy-staging:
script:
- echo $CD_KUBECONFIG | base64 -d > kubeconfig
- export KUBECONFIG=./kubeconfig
- kubectl create ns ci-alm-staging || true
- kubectl create secret docker-registry coreos-pull-secret --docker-server quay.io --docker-username $DOCKER_USER --docker-password $DOCKER_PASS --docker-email ignored@example.com --namespace=ci-alm-staging
|| true
- charttmpdir=`mktemp -d 2>/dev/null || mktemp -d -t 'charttmpdir'`;mkdir -p ${charttmpdir};helm template -n olm --set namespace=ci-alm-staging deploy/chart --set alm.image.ref=quay.io/coreos/olm:${CI_COMMIT_REF_SLUG}-${SHA8}
--set catalog.image.ref=quay.io/coreos/catalog:${CI_COMMIT_REF_SLUG}-${SHA8} --set catalog_namespace=operator-lifecycle-manager --set namespace=ci-alm-staging --set package.image.ref=quay.io/coreos/package-server:${CI_COMMIT_REF_SLUG}-${SHA8}
--set watchedNamespaces=ci-alm-staging --output-dir ${charttmpdir};chartfilenames=$(ls ${charttmpdir}/olm/templates/*.yaml);echo ${chartfilenames};for f in ${chartfilenames};do kubectl replace --force
-f ${f};done;
- kubectl create secret docker-registry coreos-pull-secret --docker-server quay.io --docker-username $DOCKER_USER --docker-password $DOCKER_PASS --docker-email ignored@example.com --namespace=ci-alm-staging
|| true
- kubectl rollout status -w deployment/olm-operator --namespace=ci-alm-staging
- kubectl rollout status -w deployment/catalog-operator --namespace=ci-alm-staging
- kubectl rollout status -w deployment/package-server --namespace=ci-alm-staging
Expand All @@ -212,13 +208,12 @@ e2e-setup:
script:
- echo $CD_KUBECONFIG | base64 -d > kubeconfig
- export KUBECONFIG=./kubeconfig
- kubectl create ns e2e-${CI_COMMIT_REF_SLUG}-${SHA8} || true
- kubectl create secret docker-registry coreos-pull-secret --docker-server quay.io --docker-username $DOCKER_USER --docker-password $DOCKER_PASS --docker-email ignored@example.com --namespace=e2e-${CI_COMMIT_REF_SLUG}-${SHA8}
|| true
- charttmpdir=`mktemp -d 2>/dev/null || mktemp -d -t 'charttmpdir'`;mkdir -p ${charttmpdir};helm template -n olm --set namespace=e2e-${CI_COMMIT_REF_SLUG}-${SHA8} deploy/chart --set alm.image.ref=quay.io/coreos/alm-ci:${CI_COMMIT_REF_SLUG}-pre
--set catalog.image.ref=quay.io/coreos/catalog-ci:${CI_COMMIT_REF_SLUG}-pre --set catalog_namespace=e2e-${CI_COMMIT_REF_SLUG}-${SHA8} --set namespace=e2e-${CI_COMMIT_REF_SLUG}-${SHA8} --set package.image.ref=quay.io/coreos/package-server-ci:${CI_COMMIT_REF_SLUG}-pre
--set watchedNamespaces=e2e-${CI_COMMIT_REF_SLUG}-${SHA8} --output-dir ${charttmpdir};chartfilenames=$(ls ${charttmpdir}/olm/templates/*.yaml);echo ${chartfilenames};for f in ${chartfilenames};do kubectl
replace --force -f ${f};done;
- kubectl create secret docker-registry coreos-pull-secret --docker-server quay.io --docker-username $DOCKER_USER --docker-password $DOCKER_PASS --docker-email ignored@example.com --namespace=e2e-${CI_COMMIT_REF_SLUG}-${SHA8}
|| true
- kubectl rollout status -w deployment/olm-operator --namespace=e2e-${CI_COMMIT_REF_SLUG}-${SHA8}
- kubectl rollout status -w deployment/catalog-operator --namespace=e2e-${CI_COMMIT_REF_SLUG}-${SHA8}
- kubectl rollout status -w deployment/package-server --namespace=e2e-${CI_COMMIT_REF_SLUG}-${SHA8}
Expand Down
3 changes: 1 addition & 2 deletions .gitlab-ci/base_jobs.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,12 @@ local appr = utils.appr;

script:
k8s.setKubeConfig(_vars.kubeconfig) +
k8s.createNamespace(_vars.namespace) +
helm.templateApply("olm", _vars.chart, _vars.namespace, _vars.params) +
k8s.createPullSecret("coreos-pull-secret",
_vars.namespace,
"quay.io",
"$DOCKER_USER",
"$DOCKER_PASS") +
helm.templateApply("olm", _vars.chart, _vars.namespace, _vars.params) +
k8s.waitForDeployment("olm-operator", _vars.namespace) +
k8s.waitForDeployment("catalog-operator", _vars.namespace) +
k8s.waitForDeployment("package-server", _vars.namespace),
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ release:
docker pull quay.io/coreos/package-server:$(ver)
$(MAKE) target=upstream ver=$(ver) package
$(MAKE) target=okd ver=$(ver) package
$(MAKE) target=ocp ver=$(ver) package

package:
ifndef target
Expand Down
2 changes: 1 addition & 1 deletion OLM_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.0
0.7.1
10 changes: 0 additions & 10 deletions deploy/chart/templates/00-olm-operator.clusterrole.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions deploy/chart/templates/01-olm-operator.serviceaccount.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions deploy/chart/templates/21-aggregated-view.clusterrole.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions deploy/chart/templates/30_00-namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.namespace }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
apiVersion: {{ .Values.rbacApiVersion }}/v1
kind: ClusterRole
metadata:
name: system:controller:operator-lifecycle-manager
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
- nonResourceURLs: ["*"]
verbs: ["*"]
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: olm-operator-serviceaccount
namespace: {{ .Values.namespace }}
---
apiVersion: {{ .Values.rbacApiVersion }}/v1
kind: ClusterRoleBinding
metadata:
name: olm-operator-binding-{{ .Values.namespace }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,15 @@ rules:
- apiGroups: ["operators.coreos.com"]
resources: ["clusterserviceversions", "catalogsources", "installplans", "subscriptions", "packagemanifests"]
verbs: ["create", "update", "patch", "delete"]
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: aggregate-olm-view
labels:
# Add these permissions to the "view" default roles
rbac.authorization.k8s.io/aggregate-to-view: "true"
rules:
- apiGroups: ["operators.coreos.com"]
resources: ["clusterserviceversions", "catalogsources", "installplans", "subscriptions", "packagemanifests"]
verbs: ["get", "list", "watch"]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- $ca := genCA "package-server-ca" 365 -}}
{{- $ca := genCA "package-server-ca" 3650 -}}
apiVersion: apiregistration.k8s.io/v1beta1
kind: APIService
metadata:
Expand Down
18 changes: 18 additions & 0 deletions deploy/chart/templates/30_14-imagestream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Values.imagestream }}
kind: ImageStream
apiVersion: image.openshift.io/v1
spec:
tags:
- name: olm
from:
kind: DockerImage
Name: {{ .Values.alm.image.ref }}
- name: catalog
from:
kind: DockerImage
Name: {{ .Values.catalog.image.ref }}
- name: package-server
from:
kind: DockerImage
Name: {{ .Values.package.image.ref }}
{{- end }}
5 changes: 3 additions & 2 deletions deploy/chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
rbacApiVersion: rbac.authorization.k8s.io
namespace: alm
catalog_namespace: tectonic-system
namespace: operator-lifecycle-manager
catalog_namespace: operator-lifecycle-manager
imagestream: false
alm:
replicaCount: 1
image:
Expand Down
6 changes: 6 additions & 0 deletions deploy/ocp/manifests/0.7.1/30_00-namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
##---
# Source: olm/templates/30_00-namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: operator-lifecycle-manager
31 changes: 31 additions & 0 deletions deploy/ocp/manifests/0.7.1/30_01-olm-operator.serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
##---
# Source: olm/templates/30_01-olm-operator.serviceaccount.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: system:controller:operator-lifecycle-manager
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
- nonResourceURLs: ["*"]
verbs: ["*"]
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: olm-operator-serviceaccount
namespace: operator-lifecycle-manager
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: olm-operator-binding-operator-lifecycle-manager
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:controller:operator-lifecycle-manager
subjects:
- kind: ServiceAccount
name: olm-operator-serviceaccount
namespace: operator-lifecycle-manager
Loading

0 comments on commit af9ccd1

Please sign in to comment.