Skip to content

Commit 02c6b13

Browse files
authored
Adjustments to the telco core policies (#49)
1 parent 209bb49 commit 02c6b13

File tree

8 files changed

+25
-16
lines changed

8 files changed

+25
-16
lines changed

ansible/roles/telco-core-ztp/defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33

44
# Currently only the 4.18 profile has been placed and adjusted for this testing in this repo
55
telco_core_profile_version: 4.18
6+
7+
# Enable means uncommented, so false means comment out for now
8+
telco_core_cluster_logging_version_enable: false
9+
telco_core_cluster_logging_version: cluster-logging.v6.0.0

ansible/roles/telco-core-ztp/files/release-4.18/reference-crs/optional/logging/ClusterLogSubscription.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: cluster-logging
66
namespace: openshift-logging
77
spec:
8-
channel: "stable-6.0"
8+
channel: "stable-6.1"
99
name: cluster-logging
1010
source: redhat-operators-disconnected
1111
sourceNamespace: openshift-marketplace

ansible/roles/telco-core-ztp/tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
src: "{{ item.src }}"
2929
dest: "{{ item.dest }}"
3030
loop:
31-
- src: cluster-ns-application.yaml
32-
dest: "{{ install_directory }}/rhacm-ztp/cnf-features-deploy/ztp/gitops-subscriptions/argocd/cluster-applications/ztp-core.yaml"
33-
- src: policy-baseline-application.yaml
34-
dest: "{{ install_directory }}/rhacm-ztp/cnf-features-deploy/ztp/gitops-subscriptions/argocd/policy-applications/ztp-core.yaml"
31+
- src: cluster-application.yaml
32+
dest: "{{ install_directory }}/rhacm-ztp/cnf-features-deploy/ztp/gitops-subscriptions/argocd/cluster-applications/ztp-core-cluster.yaml"
33+
- src: policy-application.yaml
34+
dest: "{{ install_directory }}/rhacm-ztp/cnf-features-deploy/ztp/gitops-subscriptions/argocd/policy-applications/ztp-core-policies.yaml"
3535

3636
# https://github.com/openshift-kni/telco-reference/tree/release-4.18/telco-core/configuration
3737
- name: Template Telco Core Profile policy manifests into cnf-features-deploy

ansible/roles/telco-core-ztp/templates/cluster-ns-application.yaml renamed to ansible/roles/telco-core-ztp/templates/cluster-application.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
---
2-
apiVersion: v1
3-
kind: Namespace
4-
metadata:
5-
name: ztp-core
6-
---
72
apiVersion: argoproj.io/v1alpha1
83
kind: Application
94
metadata:
10-
name: ztp-core
5+
name: ztp-core-cluster
116
namespace: openshift-gitops
127
spec:
138
destination:
149
server: https://kubernetes.default.svc
15-
namespace: ztp-core
10+
namespace: ztp-core-cluster
1611
project: ztp-app-project
1712
source:
1813
path: ztp/gitops-subscriptions/argocd/cluster/ztp-core

ansible/roles/telco-core-ztp/templates/policy-baseline-application.yaml renamed to ansible/roles/telco-core-ztp/templates/policy-application.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
apiVersion: argoproj.io/v1alpha1
33
kind: Application
44
metadata:
5-
name: policy-telco-core
5+
name: ztp-core-policies
66
namespace: openshift-gitops
77
spec:
88
destination:
99
server: https://kubernetes.default.svc
10-
namespace: ztp-site
10+
namespace: ztp-core-policies
1111
project: policy-app-project
1212
source:
1313
path: ztp/gitops-subscriptions/argocd/policy/telco-core

ansible/roles/telco-core-ztp/templates/policy-kustomization.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
generators:
44
- core-baseline.yaml
5-
- core-overlay.yaml
5+
# Overlay commented out until template-value ConfigMaps completed
6+
# - core-overlay.yaml
67
# - core-upgrade.yaml
78

89
resources:

ansible/roles/telco-core-ztp/templates/release-4.18/core-baseline.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ policies:
4040
- kind: ClusterServiceVersion
4141
namespace: openshift-logging
4242
# Update with specific target version
43-
name: cluster-logging.v6.0.0
43+
{% if telco_core_cluster_logging_version_enable %}
44+
name: {{ telco_core_cluster_logging_version }}
45+
{% else %}
46+
# name: {{ telco_core_cluster_logging_version }}
47+
{% endif %}
4448
conditions:
4549
- type: Succeeded
4650
status: "True"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
---
22
apiVersion: v1
33
kind: Namespace
4+
metadata:
5+
name: ztp-core-cluster
6+
---
7+
apiVersion: v1
8+
kind: Namespace
49
metadata:
510
name: ztp-core-policies

0 commit comments

Comments
 (0)