Skip to content

Commit 23253c7

Browse files
committed
cnf ran: two_sno added operator deployment step
1 parent 603cc2c commit 23253c7

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-two-sno-4.20.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,18 @@ tests:
2424
steps:
2525
env:
2626
CLUSTER_NAME: fthub-01
27+
HUB_OPERATORS: |
28+
[
29+
{"name":"local-storage-operator","catalog":"redhat-operators","nsname":"openshift-local-storage","channel":"stable","og_name":"local-operator-group","subscription_name":"local-storage-operator","deploy_default_config":false,"ns_annotations":{"workload.openshift.io/allowed":"management"}},
30+
{"name":"openshift-gitops-operator","catalog":"redhat-operators","nsname":"openshift-gitops-operator","channel":"latest","og_name":"openshift-gitops-operator","subscription_name":"openshift-gitops-operator","deploy_default_config":false,"og_spec":{"targetNamespaces":[]}},
31+
{"name":"advanced-cluster-management","catalog":"redhat-operators","nsname":"open-cluster-management","channel":"release-2.15","og_name":"open-cluster-management","subscription_name":"acm-operator-subscription","deploy_default_config":false,"og_spec":{"targetNamespaces":["open-cluster-management"]}},
32+
{"name":"multicluster-engine","catalog":"redhat-operators","nsname":"multicluster-engine","channel":"stable-2.10","og_name":"multicluster-engine","subscription_name":"multicluster-engine","deploy_default_config":true,"og_spec":{}},
33+
{"name":"topology-aware-lifecycle-manager","catalog":"topology-aware-lifecycle-manager-fbc","og_name":"global-operators","nsname":"openshift-operators","fbc_iib_repo":"latest","channel":"stable","deploy_default_config":false,"ocp_operator_mirror_fbc_image_base":"quay.io/redhat-user-workloads/telco-5g-tenant/topology-aware-lifecycle-manager-fbc-${VERSION_TAG}"},
34+
{"name":"cluster-logging","catalog":"redhat-operators","nsname":"openshift-logging","channel":"stable-6.2","default_channel":"stable-6.4","og_name":"cluster-logging","subscription_name":"cluster-logging","og_spec":{"targetNamespaces":[]}}
35+
]
2736
VERSION: "4.20"
2837
pre:
29-
- ref: telcov10n-functional-cnf-ran-hub-deploy
38+
- ref: telcov10n-functional-cnf-ran-hub-config
3039
zz_generated_metadata:
3140
branch: main
3241
org: openshift-kni

ci-operator/step-registry/telcov10n/functional/cnf-ran/hub-config/telcov10n-functional-cnf-ran-hub-config-commands.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@ if [[ -f "${SHARED_DIR}/cluster_name" ]]; then
6464
CLUSTER_NAME=$(cat "${SHARED_DIR}/cluster_name")
6565
fi
6666

67-
export CLUSTER_NAME="kni-qe-99"
6867
echo CLUSTER_NAME=${CLUSTER_NAME}
6968

7069
# Set kubeconfig path
71-
KUBECONFIG_PATH="/home/telcov10n/project/generated/kni-qe-99/auth/kubeconfig"
70+
KUBECONFIG_PATH="/home/telcov10n/project/generated/${CLUSTER_NAME}/auth/kubeconfig"
7271

7372
# Extract and configure SSH key for Ansible to connect to masters
74-
echo "Set up SSH key configuration for Ansible"
75-
PROJECT_DIR="/tmp"
76-
cat /var/group_variables/common/all/ansible_ssh_private_key > "${PROJECT_DIR}/ansible_ssh_key"
77-
chmod 600 "${PROJECT_DIR}/ansible_ssh_key"
78-
export ANSIBLE_PRIVATE_KEY_FILE="${PROJECT_DIR}/ansible_ssh_key"
79-
echo "SSH key configured at: ${ANSIBLE_PRIVATE_KEY_FILE}"
73+
74+
# echo "Set up SSH key configuration for Ansible"
75+
# PROJECT_DIR="/tmp"
76+
# cat /var/group_variables/common/all/ansible_ssh_private_key > "${PROJECT_DIR}/ansible_ssh_key"
77+
# chmod 600 "${PROJECT_DIR}/ansible_ssh_key"
78+
# export ANSIBLE_PRIVATE_KEY_FILE="${PROJECT_DIR}/ansible_ssh_key"
79+
# echo "SSH key configured at: ${ANSIBLE_PRIVATE_KEY_FILE}"
8080

8181
# Configure Ansible SSH settings for connection resilience
8282
export ANSIBLE_SSH_RETRIES=3

ci-operator/step-registry/telcov10n/functional/cnf-ran/hub-config/telcov10n-functional-cnf-ran-hub-config-ref.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ref:
1414
default: "4.19"
1515
documentation: OCP version; must match ztp-site-configs-ci folder (siteconfigs/<VERSION>/, policygentemplates/<VERSION>/)
1616
- name: CLUSTER_NAME
17-
default: ""
17+
default: "kni-qe-99"
1818
documentation: BM Cluster name
1919
- name: HUB_OPERATORS
2020
default: |
@@ -33,9 +33,6 @@ ref:
3333
- name: GITLAB_REPO_URL
3434
default: "https://gitlab.cee.redhat.com/telcov10n/ztp-site-configs-ci.git"
3535
documentation: ztp-site-configs-ci repo URL
36-
- name: GITLAB_REPO_BRANCH
37-
default: "standard"
38-
documentation: Branch to use in ztp-site-configs-ci
3936
credentials:
4037
- namespace: test-credentials
4138
name: telcov10n-ansible-group-all

0 commit comments

Comments
 (0)