1
1
---
2
- # 100-namespace
3
- # 200-bmc-secret
4
- # 300-nmstate
5
- # 400-image-pull-secret
6
- # 500-agentclusterinstall
7
- # 500-clusterdeployment
8
- # 600-klusterletaddonconfig
9
- # 700-managedcluster
10
- # 800-infraenv
11
- # 900-bmh
12
- # 1000-configmap-workload-paritioning
13
- #
14
2
apiVersion: v1
15
3
kind: Namespace
16
4
metadata:
@@ -65,17 +53,48 @@ spec:
65
53
apiVersion: v1
66
54
kind: Secret
67
55
metadata:
68
- name: assisted-deployment -pull-secret
56
+ name: ai -pull-secret
69
57
namespace: {{ inventory_hostname }}
70
58
type: kubernetes.io/dockerconfigjson
71
59
data:
72
60
.dockerconfigjson: {{ pull_secret }}
73
61
---
62
+ apiVersion: v1
63
+ kind: ConfigMap
64
+ metadata:
65
+ name: {{ inventory_hostname }}-marketplace-namespace
66
+ namespace: {{ inventory_hostname }}
67
+ data:
68
+ namespace.yml: |
69
+ # Taken from https://github.com/operator-framework/operator-marketplace/blob/53c124a3f0edfd151652e1f23c87dd39ed7646bb/manifests/01_namespace.yaml
70
+ # Update it as the source evolves.
71
+ apiVersion: v1
72
+ kind: Namespace
73
+ metadata:
74
+ annotations:
75
+ openshift.io/node-selector: ""
76
+ workload.openshift.io/allowed: "management"
77
+ labels:
78
+ openshift.io/cluster-monitoring: "true"
79
+ pod-security.kubernetes.io/enforce: baseline
80
+ pod-security.kubernetes.io/enforce-version: v1.25
81
+ pod-security.kubernetes.io/audit: baseline
82
+ pod-security.kubernetes.io/audit-version: v1.25
83
+ pod-security.kubernetes.io/warn: baseline
84
+ pod-security.kubernetes.io/warn-version: v1.25
85
+ name: "openshift-marketplace"
86
+ ---
74
87
apiVersion: extensions.hive.openshift.io/v1beta1
75
88
kind: AgentClusterInstall
76
89
metadata:
77
90
annotations:
91
+ {% if siteconfig_sno_du_profile == "4.15" %}
92
+ agent-install.openshift.io/install-config-overrides: '{"networking":{"networkType":"OVNKubernetes"},"capabilities":{"baselineCapabilitySet":"None","additionalEnabledCapabilities":["OperatorLifecycleManager","NodeTuning"]}}'
93
+ {% elif siteconfig_sno_du_profile in ["4.16" , "4.17" ] %}
94
+ agent-install.openshift.io/install-config-overrides: '{"networking":{"networkType":"OVNKubernetes"},"capabilities":{"baselineCapabilitySet":"None","additionalEnabledCapabilities":["OperatorLifecycleManager","Ingress","NodeTuning"]}}'
95
+ {% else %}
78
96
agent-install.openshift.io/install-config-overrides: '{"networking":{"networkType":"OVNKubernetes"}}'
97
+ {% endif %}
79
98
name: {{ inventory_hostname }}
80
99
namespace: {{ inventory_hostname }}
81
100
spec:
@@ -95,12 +114,22 @@ spec:
95
114
controlPlaneAgents: 1
96
115
workerAgents: 0
97
116
sshPublicKey: {{ lookup('file', ssh_public_key_file) }}
117
+ {% if siteconfig_sno_du_profile in ["4.15" , "4.16" , "4.17" ] %}
118
+ manifestsConfigMapRefs:
119
+ - name: {{ inventory_hostname }}-marketplace-namespace
98
120
{% if siteconfig_enable_cpuset %}
99
- manifestsConfigMapRef:
100
- name: "sno-workload-partitioning-configmap"
121
+ - name: sno-workload-partitioning-configmap
122
+ {% else %}
123
+ # - name: sno-workload-partitioning-configmap
124
+ {% endif %}
101
125
{% else %}
102
- # manifestsConfigMapRef:
103
- # name: "sno-workload-partitioning-configmap"
126
+ {% if siteconfig_enable_cpuset %}
127
+ manifestsConfigMapRefs:
128
+ - name: sno-workload-partitioning-configmap
129
+ {% else %}
130
+ # manifestsConfigMapRefs:
131
+ # - name: sno-workload-partitioning-configmap
132
+ {% endif %}
104
133
{% endif %}
105
134
---
106
135
apiVersion: hive.openshift.io/v1
@@ -122,7 +151,7 @@ spec:
122
151
matchLabels:
123
152
cluster-name: {{ inventory_hostname }}
124
153
pullSecretRef:
125
- name: assisted-deployment -pull-secret
154
+ name: ai -pull-secret
126
155
{% if hv_vm_manifest_acm_cr %}
127
156
---
128
157
apiVersion: agent.open-cluster-management.io/v1
@@ -181,7 +210,7 @@ spec:
181
210
matchLabels:
182
211
cluster-name: {{ inventory_hostname }}
183
212
pullSecretRef:
184
- name: assisted-deployment -pull-secret
213
+ name: ai -pull-secret
185
214
nmStateConfigLabelSelector:
186
215
matchLabels:
187
216
sno-cluster-{{ inventory_hostname }}: {{ inventory_hostname }}
0 commit comments