Skip to content
Draft
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
2 changes: 2 additions & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ cifmw_installyamls_repos_relative: src/github.com/openstack-k8s-operators/instal
cifmw_installyamls_repos: "{{ ansible_user_dir }}/{{ cifmw_installyamls_repos_relative }}"
cifmw_architecture_repo_relative: src/github.com/openstack-k8s-operators/architecture
cifmw_architecture_repo: "{{ ansible_user_dir }}/{{ cifmw_architecture_repo_relative }}"

operator_namespace: "{{ cifmw_install_yamls_defaults['OPERATOR_NAMESPACE'] | default('openstack-operators') }}"
4 changes: 2 additions & 2 deletions roles/kustomize_deploy/tasks/install_operators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@
kubeconfig: "{{ cifmw_openshift_kubeconfig }}"
api_version: "operator.openstack.org/v1beta1"
kind: OpenStack
namespace: openstack-operators
namespace: "{{ operator_namespace }}"
name: openstack
wait: true
wait_condition:
Expand All @@ -462,7 +462,7 @@
kubernetes.core.k8s_info:
kubeconfig: "{{ cifmw_openshift_kubeconfig }}"
kind: Deployment
namespace: openstack-operators
namespace: "{{ operator_namespace }}"
label_selectors:
- "{{ item }}"
wait: true
Expand Down
6 changes: 3 additions & 3 deletions roles/kustomize_deploy/tasks/install_plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
context: "{{ cifmw_openshift_context | default(omit) }}"
api_version: operators.coreos.com/v1alpha1
kind: InstallPlan
namespace: openstack-operators
namespace: "{{ operator_namespace }}"
register: _cifmw_kustomize_deploy_install_plans
until: >
_cifmw_kustomize_deploy_install_plans.resources |
Expand All @@ -50,7 +50,7 @@
api_key: "{{ cifmw_openshift_token | default(omit) }}"
context: "{{ cifmw_openshift_context | default(omit) }}"
state: present
namespace: openstack-operators
namespace: "{{ operator_namespace }}"
definition:
apiVersion: operators.coreos.com/v1alpha1
kind: InstallPlan
Expand All @@ -70,7 +70,7 @@
context: "{{ cifmw_openshift_context | default(omit) }}"
api_version: operators.coreos.com/v1alpha1
kind: InstallPlan
namespace: openstack-operators
namespace: "{{ operator_namespace }}"
name: "{{ _cifmw_kustomize_deploy_installplan_name }}"
register: _cifmw_kustomize_deploy_installplan
until:
Expand Down
2 changes: 1 addition & 1 deletion roles/os_must_gather/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cifmw_os_must_gather_repo_path: "{{ ansible_user_dir }}/src/github.com/openstack
cifmw_os_must_gather_timeout: "30m"
cifmw_os_must_gather_additional_namespaces: "kuttl,openshift-storage,openshift-marketplace,openshift-operators,sushy-emulator,tobiko"
cifmw_os_must_gather_namespaces:
- openstack-operators
- "{{ operator_namespace }}"
- openstack
- baremetal-operator-system
- openshift-machine-api
Expand Down
6 changes: 0 additions & 6 deletions roles/run_hook/tasks/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
{%- endif -%}
_bdir: >-
{{ cifmw_basedir | default(ansible_user_dir ~ '/ci-framework-data') }}
_operator_namespace: >-
{{
cifmw_install_yamls_defaults['OPERATOR_NAMESPACE'] |
default('openstack-operators')
}}
_namespace: >-
{{
cifmw_install_yamls_defaults['NAMESPACE'] |
Expand All @@ -31,7 +26,6 @@
log_path: >-
{{ _bdir }}/logs/{{ step }}_{{ _hook_name }}.log
extra_vars: >-
-e operator_namespace={{ _operator_namespace }}
-e namespace={{ _namespace}}
{%- if hook.extra_vars is defined and hook.extra_vars|length > 0 -%}
{% for key,value in hook.extra_vars.items() -%}
Expand Down
8 changes: 3 additions & 5 deletions roles/set_openstack_containers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
- name: Set common facts for the role
ansible.builtin.set_fact:
operator_name: "{{ cifmw_set_openstack_containers_operator_name }}"
operator_namespace: >-
{{
cifmw_install_yamls_defaults['OPERATOR_NAMESPACE'] |
default(cifmw_set_openstack_containers_operators_namespace)
}}
cifmw_set_openstack_containers_common_env: >-
{{
( cifmw_install_yamls_environment |
Expand All @@ -59,6 +54,9 @@
output_dir: "{{ cifmw_set_openstack_containers_basedir }}/artifacts"
script: "oc set env $(oc get pods -n {{ operator_namespace }} -o name -l openstack.org/operator-name={{ operator_name }}) -n {{ operator_namespace }} --list"
register: containers_env_list
until: containers_env_list.rc == 0
retries: 10
delay: 5

- name: Generate update_env_vars.sh script
ansible.builtin.template:
Expand Down
4 changes: 2 additions & 2 deletions roles/update/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
kind: OpenStack
metadata:
name: openstack
namespace: openstack-operators
namespace: "{{ operator_namespace }}"

- name: Set update step to Wait for successful deployment of the openstack operator
ansible.builtin.command:
Expand All @@ -89,7 +89,7 @@
context: "{{ cifmw_openshift_context | default(omit) }}"
api_version: operator.openstack.org/v1beta1
kind: OpenStack
namespace: openstack-operators
namespace: "{{ operator_namespace }}"
register: _cifmw_update_openstack_info
until: >
_cifmw_update_openstack_info.resources[0].status.conditions is defined
Expand Down
Loading