Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cut 0.5.0 #381

Merged
merged 2 commits into from
Jul 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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