mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Merge pull request #102 from Spredzy/templatize_api_version
Make the API version used for status update parametrable
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
---
|
||||
deployment_type: awx
|
||||
api_version: '{{ deployment_type }}.ansible.com/v1beta1'
|
||||
|
||||
tower_task_privileged: false
|
||||
tower_ingress_type: none
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: Update admin password status
|
||||
operator_sdk.util.k8s_status:
|
||||
api_version: awx.ansible.com/v1beta1
|
||||
api_version: '{{ api_version }}'
|
||||
kind: "{{ deployment_type | upper }}"
|
||||
name: "{{ meta.name }}"
|
||||
namespace: "{{ meta.namespace }}"
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
- name: Update admin user status
|
||||
operator_sdk.util.k8s_status:
|
||||
api_version: awx.ansible.com/v1beta1
|
||||
api_version: '{{ api_version }}'
|
||||
kind: "{{ deployment_type | upper }}"
|
||||
name: "{{ meta.name }}"
|
||||
namespace: "{{ meta.namespace }}"
|
||||
@@ -29,12 +29,12 @@
|
||||
|
||||
- name: Update version status
|
||||
operator_sdk.util.k8s_status:
|
||||
api_version: awx.ansible.com/v1beta1
|
||||
api_version: '{{ api_version }}'
|
||||
kind: "{{ deployment_type | upper }}"
|
||||
name: "{{ meta.name }}"
|
||||
namespace: "{{ meta.namespace }}"
|
||||
status:
|
||||
towerVersion: "{{ instance_version.stdout }}"
|
||||
towerVersion: "{{ instance_version.stdout | trim }}"
|
||||
|
||||
- block:
|
||||
- name: Retrieve route URL
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
- name: Update URL status
|
||||
operator_sdk.util.k8s_status:
|
||||
api_version: awx.ansible.com/v1beta1
|
||||
api_version: '{{ api_version }}'
|
||||
kind: "{{ deployment_type | upper }}"
|
||||
name: "{{ meta.name }}"
|
||||
namespace: "{{ meta.namespace }}"
|
||||
|
||||
Reference in New Issue
Block a user