Issue #4: Supplement README with build instructions for new versions.

This commit is contained in:
Jeff Geerling
2019-11-20 10:09:23 -06:00
parent a6b0ce1ff5
commit 5c5a058524
3 changed files with 86 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
FROM quay.io/operator-framework/ansible-operator:v0.10.0
FROM quay.io/operator-framework/ansible-operator:v0.12.0
# Install kubectl.
COPY --from=lachlanevenson/k8s-kubectl:v1.16.2 /usr/local/bin/kubectl /usr/local/bin/kubectl

View File

@@ -0,0 +1,39 @@
---
# To run: `ansible-playbook chain-operator-files.yml`
- name: Chain operator files together for easy deployment.
hosts: localhost
connection: local
gather_facts: false
vars:
operator_image: geerlingguy/tower-operator:0.1.0
pull_policy: Always
operator_file_path: "../deploy/tower-operator.yaml"
operator_template: "../deploy/operator.yaml"
tasks:
- name: Clear out current contents of tower-operator.yml
copy:
dest: "{{ operator_file_path }}"
content: ''
force: true
- name: Concatenate operator files into tower-operator.yml
blockinfile:
path: "{{ operator_file_path }}"
block: "{{ item }}"
marker: "---"
marker_begin: ""
marker_end: ""
insertafter: "EOF"
with_file:
- "../deploy/crds/tower_v1alpha1_tower_crd.yaml"
- "../deploy/role.yaml"
- "../deploy/role_binding.yaml"
- "../deploy/service_account.yaml"
- "../deploy/operator.yaml"
- name: Template the tower-operator.yaml file into tower-operator.yml
template:
src: "{{ operator_file_path }}"
dest: "{{ operator_file_path }}"