Skip to content

Commit

Permalink
Merge pull request #381 from ecordell/0.5.0
Browse files Browse the repository at this point in the history
Cut 0.5.0
  • Loading branch information
ecordell authored Jul 23, 2018
2 parents 82060ff + f614d19 commit 1c49102
Show file tree
Hide file tree
Showing 52 changed files with 9,763 additions and 22 deletions.
4 changes: 4 additions & 0 deletions Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ WORKDIR /go/src/github.com/operator-framework/operator-lifecycle-manager
COPY . .

RUN make build

RUN cp ./bin/alm /bin/alm
RUN cp ./bin/catalog /bin/catalog
EXPOSE 8080
35 changes: 33 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,36 @@ ansible-release: $(YQ)
# link newest release into playbook
ln -sfF ../../../../deploy/aos-olm/$(ver) deploy/aos-olm/playbook/private/roles/olm

# make ver=0.3.0 release
release: tectonic-release upstream-release ansible-release
OLM_REF:=$(shell docker inspect --format='{{index .RepoDigests 0}}' quay.io/coreos/olm:$(ver))
CATALOG_REF:=$(shell docker inspect --format='{{index .RepoDigests 0}}' quay.io/coreos/catalog:$(ver))

# must have already tagged a version release in github so that the docker images are available
release:
ifndef ver
$(error ver is undefined)
endif
docker pull quay.io/coreos/olm:$(ver)
docker pull quay.io/coreos/catalog:$(ver)
yaml w -i deploy/upstream/values.yaml alm.image.ref $(OLM_REF)
yaml w -i deploy/upstream/values.yaml catalog.image.ref $(CATALOG_REF)
yaml w -i deploy/tectonic-alm-operator/values.yaml alm.image.ref $(OLM_REF)
yaml w -i deploy/tectonic-alm-operator/values.yaml catalog.image.ref $(CATALOG_REF)
$(MAKE) tectonic-release upstream-release

# These are built from the same image, and repodigests are ordered alphabetically, so olm is ref 1 and catalog ref 2
OLM_REF_RH:=$(shell docker inspect --format='{{index .RepoDigests 1}}' quay.io/coreos/olm:$(ver)-rhel)
CATALOG_REF_RH:=$(shell docker inspect --format='{{index .RepoDigests 0}}' quay.io/coreos/catalog:$(ver)-rhel)

# this will build locally on rhel
release-rh:
ifndef ver
$(error ver is undefined)
endif
./scripts/pull_or_build_rh.sh $(ver)
echo $(OLM_REF_RH)
docker inspect --format='{{index .RepoDigests 0}}' quay.io/coreos/olm:$(ver)-rhel
yaml w -i deploy/aos-olm/values.yaml alm.image.ref $(OLM_REF_RH)
yaml w -i deploy/aos-olm/values.yaml catalog.image.ref $(CATALOG_REF_RH)
$(MAKE) ansible-release

release-all: release release-rh
3 changes: 3 additions & 0 deletions deploy/aos-olm/0.5.0/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
operator_lifecycle_manager_remove: false
operator_lifecycle_manager_install: true
Empty file.
11 changes: 11 additions & 0 deletions deploy/aos-olm/0.5.0/files/01-alm-operator.serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
##---
# Source: olm/templates/01-alm-operator.serviceaccount.yaml
kind: ServiceAccount
apiVersion: v1
metadata:
name: alm-operator-serviceaccount
namespace: operator-lifecycle-manager
labels:
tectonic-operators.coreos.com/managed-by: tectonic-x-operator
imagePullSecrets:
- name: coreos-pull-secret
16 changes: 16 additions & 0 deletions deploy/aos-olm/0.5.0/files/02-alm-operator.rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
##---
# Source: olm/templates/02-alm-operator.rolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: alm-operator-binding
labels:
tectonic-operators.coreos.com/managed-by: tectonic-x-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: alm-operator-serviceaccount
namespace: operator-lifecycle-manager
Loading

0 comments on commit 1c49102

Please sign in to comment.