Skip to content

Commit 03d7075

Browse files
authored
Address the cluster-logging subscription by overriding the channel at the baseline policy generator manifest (#50)
1 parent 02c6b13 commit 03d7075

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
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
66

7-
# Enable means uncommented, so false means comment out for now
7+
# Enable overriding the clusterlogging subscription reference CR channel
8+
telco_core_reference_cluster_logging_channel_override_enable: true
9+
telco_core_reference_cluster_logging_channel_override: stable-6.1
10+
11+
# Enabling a cluster logging version refers to enabling a specific target version for
12+
# the cluster logging operator status to be compliant with. Setting as false means the
13+
# version will be commented and your policy will be compliant regardless of the version
14+
# of the cluster logging operator installed.
815
telco_core_cluster_logging_version_enable: false
916
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.1"
8+
channel: "stable-6.0"
99
name: cluster-logging
1010
source: redhat-operators-disconnected
1111
sourceNamespace: openshift-marketplace

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ policies:
3232
- path: reference-crs/optional/logging/ClusterLogNS.yaml
3333
- path: reference-crs/optional/logging/ClusterLogOperGroup.yaml
3434
- path: reference-crs/optional/logging/ClusterLogSubscription.yaml
35+
{% if telco_core_reference_cluster_logging_channel_override_enable %}
36+
patches:
37+
- spec:
38+
channel: "{{ telco_core_reference_cluster_logging_channel_override }}"
39+
{% else %}
40+
# patches:
41+
# - spec:
42+
# channel: "{{ telco_core_reference_cluster_logging_channel_override }}"
43+
{% endif %}
3544
- path: reference-crs/optional/logging/ClusterLogOperatorStatus.yaml
3645
patches:
3746
- status:

0 commit comments

Comments
 (0)