mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-07 13:52:58 +00:00
Issue #4: Supplement README with build instructions for new versions.
This commit is contained in:
@@ -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
|
||||
|
||||
39
build/chain-operator-files.yml
Normal file
39
build/chain-operator-files.yml
Normal 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 }}"
|
||||
Reference in New Issue
Block a user