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