Skip to content

Commit 20cf5ea

Browse files
authored
Merge pull request #3 from sabre1041/remove-acm
Removed ACM from Pattern
2 parents c31ccb1 + 1ca52f4 commit 20cf5ea

10 files changed

+13
-158
lines changed

common/scripts/preview-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ REPO=$1; shift;
44
TARGET_BRANCH=$1; shift
55

66
HUB=$( yq ".main.clusterGroupName" values-global.yaml )
7-
MANAGED_CLUSTERS=$( yq ".clusterGroup.managedClusterGroups.[].name" values-$HUB.yaml )
7+
MANAGED_CLUSTERS=$( yq '.clusterGroup.managedClusterGroups.[].name // ""' values-$HUB.yaml )
88
ALL_CLUSTERS=( $HUB $MANAGED_CLUSTERS )
99

1010
CLUSTER_INFO_OUT=$(oc cluster-info 2>&1)

tests/interop/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
* create python3 venv, clone layered-zero-trust repository
1313
* export KUBECONFIG=\<path to hub kubeconfig file>
14-
* export KUBECONFIG_EDGE=\<path to edge kubeconfig file>
1514
* export INFRA_PROVIDER=\<infra platform description>
1615
* (optional) export WORKSPACE=\<dir to save test results to> (defaults to /tmp)
1716
* cd layered-zero-trust/tests/interop

tests/interop/run_tests.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ if [ -z "${KUBECONFIG}" ]; then
99
exit 1
1010
fi
1111

12-
if [ -z "${KUBECONFIG_EDGE}" ]; then
13-
echo "No kubeconfig file set for edge cluster"
14-
exit 1
15-
fi
16-
1712
if [ -z "${INFRA_PROVIDER}" ]; then
1813
echo "INFRA_PROVIDER is not defined"
1914
exit 1

tests/interop/test_subscription_status_edge.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

tests/interop/test_subscription_status_hub.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ def test_subscription_status_hub(openshift_dyn_client):
1313
# These are the operator subscriptions and their associated namespaces
1414
expected_subs = {
1515
"openshift-gitops-operator": ["openshift-operators"],
16-
"advanced-cluster-management": ["open-cluster-management"],
17-
"multicluster-engine": ["multicluster-engine"],
1816
}
1917

2018
err_msg = subscription.subscription_status(

tests/interop/test_validate_edge_site_components.py

Lines changed: 0 additions & 72 deletions
This file was deleted.

tests/interop/test_validate_hub_site_components.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ def test_check_pod_status(openshift_dyn_client):
4242
logger.info("Checking pod status")
4343
projects = [
4444
"openshift-operators",
45-
"open-cluster-management",
46-
"open-cluster-management-hub",
4745
"openshift-gitops",
4846
"vault",
4947
]
@@ -55,20 +53,6 @@ def test_check_pod_status(openshift_dyn_client):
5553
logger.info("PASS: Pod status check succeeded.")
5654

5755

58-
@pytest.mark.validate_acm_self_registration_managed_clusters
59-
def test_validate_acm_self_registration_managed_clusters(openshift_dyn_client):
60-
logger.info("Check ACM self registration for edge site")
61-
kubefiles = [os.getenv("KUBECONFIG_EDGE")]
62-
err_msg = components.validate_acm_self_registration_managed_clusters(
63-
openshift_dyn_client, kubefiles
64-
)
65-
if err_msg:
66-
logger.error(f"FAIL: {err_msg}")
67-
assert False, err_msg
68-
else:
69-
logger.info("PASS: Edge site is self registered")
70-
71-
7256
@pytest.mark.validate_argocd_reachable_hub_site
7357
def test_validate_argocd_reachable_hub_site(openshift_dyn_client):
7458
logger.info("Check if argocd route/url on hub site is reachable")

values-4.18-hub.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
clusterGroup:
2-
subscriptions:
3-
acm:
4-
name: advanced-cluster-management
5-
namespace: open-cluster-management
6-
channel: release-2.12
2+
subscriptions: {}

values-4.19-hub.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
clusterGroup:
2-
subscriptions:
3-
acm:
4-
name: advanced-cluster-management
5-
namespace: open-cluster-management
6-
channel: release-2.12
2+
subscriptions: {}

values-hub.yaml

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ clusterGroup:
55
- open-cluster-management
66
- vault
77
- golang-external-secrets
8-
subscriptions:
9-
acm:
10-
name: advanced-cluster-management
11-
namespace: open-cluster-management
12-
channel: release-2.11
13-
#csv: advanced-cluster-management.v2.6.1
8+
subscriptions: {}
149
projects:
1510
- hub
1611
# Explicitly mention the cluster-state based overrides we plan to use for this pattern.
@@ -34,17 +29,6 @@ clusterGroup:
3429
# - '/overrides/values-{{ $.Values.global.hubClusterDomain }}.yaml'
3530
# - '/overrides/values-{{ $.Values.global.localClusterDomain }}.yaml'
3631
applications:
37-
acm:
38-
name: acm
39-
namespace: open-cluster-management
40-
project: hub
41-
chart: acm
42-
chartVersion: 0.1.*
43-
ignoreDifferences:
44-
- group: internal.open-cluster-management.io
45-
kind: ManagedClusterInfo
46-
jsonPointers:
47-
- /spec/loggingCA
4832
vault:
4933
name: vault
5034
namespace: vault
@@ -65,15 +49,15 @@ clusterGroup:
6549
# For additional overrides that apply to the jobs, please refer to
6650
# https://hybrid-cloud-patterns.io/imperative-actions/#additional-job-customizations
6751
jobs: []
68-
managedClusterGroups:
69-
exampleRegion:
70-
name: group-one
71-
acmlabels:
72-
- name: clusterGroup
73-
value: group-one
74-
helmOverrides:
75-
- name: clusterGroup.isHubCluster
76-
value: false
52+
managedClusterGroups: {}
53+
# exampleRegion:
54+
# name: group-one
55+
# acmlabels:
56+
# - name: clusterGroup
57+
# value: group-one
58+
# helmOverrides:
59+
# - name: clusterGroup.isHubCluster
60+
# value: false
7761
# Before enabling cluster provisioning, ensure AWS and/or Azure
7862
# credentials and OCP pull secrets are defined in Vault.
7963
# See values-secret.yaml.template

0 commit comments

Comments
 (0)