From d9a8d781b849cd0650bdd2989b34a9a3d28cee7f Mon Sep 17 00:00:00 2001 From: jmarcian Date: Thu, 19 Feb 2026 03:34:09 +0200 Subject: [PATCH] [test_operator] Expose ansibleGitBranch in test_operator ansibletest via cifmw variable This change adds the ability to set ansibleGitBranch in the test_operator config via the cifmw_test_operator_ansibletest_ansible_git_branch variable. for more convenient patches testing. Signed-off-by: Julia Marciano jmarcian@redhat.com --- roles/test_operator/README.md | 2 ++ roles/test_operator/defaults/main.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/roles/test_operator/README.md b/roles/test_operator/README.md index a66df11c52..78451aafd9 100644 --- a/roles/test_operator/README.md +++ b/roles/test_operator/README.md @@ -186,6 +186,7 @@ Default value: {} * `cifmw_test_operator_ansibletest_compute_ssh_key_secret_name`: (String) The name of the k8s secret that contains an ssh key for computes. Default value: `dataplane-ansible-ssh-private-key-secret` * `cifmw_test_operator_ansibletest_workload_ssh_key_secret_name`: (String) The name of the k8s secret that contains an ssh key for the ansible workload. Default value: `""` * `cifmw_test_operator_ansibletest_ansible_git_repo`: (String) Git repo to clone into container. Default value: `""` +* `cifmw_test_operator_ansibletest_ansible_git_branch`: (String) Git branch to checkout from the repo. Default value: `""` * `cifmw_test_operator_ansibletest_ansible_playbook_path`: (String) Path to ansible playbook. Default value: `""` * `cifmw_test_operator_ansibletest_ansible_collection`: (String) Extra ansible collections to install in addition to the ones that exist in the requirements.yaml. Default value: `""` * `cifmw_test_operator_ansibletest_ansible_var_files`: (String) interface to create ansible var files. Default value: `""` @@ -212,6 +213,7 @@ Default value: {} computeSSHKeySecretName: "{{ cifmw_test_operator_ansibletest_compute_ssh_key_secret_name }}" workloadSSHKeySecretName: "{{ cifmw_test_operator_ansibletest_workload_ssh_key_secret_name }}" ansibleGitRepo: "{{ cifmw_test_operator_ansibletest_ansible_git_repo }}" + ansibleGitBranch: "{{ cifmw_test_operator_ansibletest_ansible_git_branch }}" ansiblePlaybookPath: "{{ cifmw_test_operator_ansibletest_ansible_playbook_path }}" ansibleCollections: "{{ cifmw_test_operator_ansibletest_ansible_collection }}" ansibleVarFiles: "{{ cifmw_test_operator_ansibletest_ansible_var_files }}" diff --git a/roles/test_operator/defaults/main.yml b/roles/test_operator/defaults/main.yml index ecfdc3b4fb..1bd2f11677 100644 --- a/roles/test_operator/defaults/main.yml +++ b/roles/test_operator/defaults/main.yml @@ -233,6 +233,7 @@ cifmw_test_operator_ansibletest_image_tag: "{{ cifmw_test_operator_default_image cifmw_test_operator_ansibletest_compute_ssh_key_secret_name: "dataplane-ansible-ssh-private-key-secret" cifmw_test_operator_ansibletest_workload_ssh_key_secret_name: "" cifmw_test_operator_ansibletest_ansible_git_repo: "" +cifmw_test_operator_ansibletest_ansible_git_branch: "" cifmw_test_operator_ansibletest_ansible_playbook_path: "" cifmw_test_operator_ansibletest_ansible_collection: "" cifmw_test_operator_ansibletest_ansible_var_files: "" @@ -260,6 +261,7 @@ cifmw_test_operator_ansibletest_config: computeSSHKeySecretName: "{{ stage_vars_dict.cifmw_test_operator_ansibletest_compute_ssh_key_secret_name }}" workloadSSHKeySecretName: "{{ stage_vars_dict.cifmw_test_operator_ansibletest_workload_ssh_key_secret_name }}" ansibleGitRepo: "{{ stage_vars_dict.cifmw_test_operator_ansibletest_ansible_git_repo }}" + ansibleGitBranch: "{{ stage_vars_dict.cifmw_test_operator_ansibletest_ansible_git_branch }}" ansiblePlaybookPath: "{{ stage_vars_dict.cifmw_test_operator_ansibletest_ansible_playbook_path }}" ansibleCollections: "{{ stage_vars_dict.cifmw_test_operator_ansibletest_ansible_collection }}" ansibleVarFiles: "{{ stage_vars_dict.cifmw_test_operator_ansibletest_ansible_var_files }}"