Skip to content

Commit

Permalink
Merge pull request #758 from IBM/openshift-415-patches
Browse files Browse the repository at this point in the history
Openshift 4.15 patches
  • Loading branch information
fketelaars authored Aug 13, 2024
2 parents 8a4c83b + de64ccb commit 287a443
Show file tree
Hide file tree
Showing 26 changed files with 69 additions and 43 deletions.
2 changes: 1 addition & 1 deletion automation-generators/aws/openshift/templates/main.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ networking:
machineNetwork:
- cidr: {{ generator.attributes.infrastructure.machine_cidr }}
{% endif %}
networkType: OpenShiftSDN
networkType: OVNKubernetes
serviceNetwork:
- 172.30.0.0/16

Expand Down
2 changes: 1 addition & 1 deletion automation-generators/azure/openshift/templates/main.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ networking:
{% endif %}
machineNetwork:
- cidr: {{ generator.attributes.network.machine_cidr | default('10.0.0.0/16') }}
networkType: OpenShiftSDN
networkType: OVNKubernetes
serviceNetwork:
- 172.30.0.0/16

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ data "ibm_container_vpc_cluster" "{{generator.attributes.name | replace("-", "_"
count = local.enable ? 1 : 0
name = local.cluster_id
resource_group_id = data.ibm_resource_group.thisresourcegroup.id
{% if generator.attributes.ocp_version >= "4.15" %}
disable_outbound_traffic_protection = false
{% endif %}
}

data "ibm_container_vpc_cluster_worker" "{{generator.attributes.name | replace("-", "_") }}" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ networking:
- cidr: 10.128.0.0/14
hostPrefix: 23
{% endif %}
networkType: OpenShiftSDN
networkType: OVNKubernetes
serviceNetwork:
- 172.30.0.0/16

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- name: Disable outbound traffic protection for ROKS cluster
shell: |
ibmcloud oc vpc outbound-traffic-protection disable --cluster {{ current_openshift_cluster.name }} -f
- name: Get current state of OperatorHub disableAllDefaultSources
shell:
oc get operatorhub cluster -o jsonpath='{.spec.disableAllDefaultSources}'
register: _disableAllDefaultSources

- name: Patch OperatorHub to enable default sources in marketplace for ROKS clusters
shell: |
oc patch OperatorHub cluster --type json -p '[{"op": "remove", "path": "/spec/disableAllDefaultSources"}]'
when: _disableAllDefaultSources.stdout != ''

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
vars:
_p_openshift_cluster_name: "{{ current_openshift_cluster.name }}"

# Patch OperatorHub to enable default sources in marketplace for ROKS clusters
- include_tasks: ibm-cloud-enable-outbound-traffic.yml
when: cloud_platform == 'ibm-cloud'

- name: Prepare storage for OpenShift cluster {{ current_openshift_cluster.name }}
include_role:
name: prepare-openshift-storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ spec:
instance: "" # instance is empty by default
topologyupdater: false # False by default
operand:
{% if _p_current_ocp_version == '4.15' %}
image: registry.redhat.io/openshift4/ose-node-feature-discovery-rhel9:v{{ _p_current_ocp_version }}
{% else %}
image: registry.redhat.io/openshift4/ose-node-feature-discovery:v{{ _p_current_ocp_version }}
{% endif %}
servicePort: 12000
workerConfig:
configData: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nfs_server:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.10.34
ocp_version: 4.15.22
compute_flavour: m5.4xlarge
compute_nodes: 3
infrastructure:
Expand All @@ -25,7 +25,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: True
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nfs_server:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.10.34
ocp_version: 4.15.22
compute_flavour: m5.4xlarge
compute_nodes: 3
infrastructure:
Expand All @@ -29,7 +29,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: True
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ global_config:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.12.3
ocp_version: 4.15.22
compute_flavour: m5.4xlarge
compute_nodes: 3
infrastructure:
Expand All @@ -20,7 +20,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: False
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nfs_server:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.10.47
ocp_version: 4.15.22
domain_name: example.com
control_plane_flavour: m4.xlarge
control_plane_nodes: 3
Expand All @@ -33,7 +33,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: True
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nfs_server:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.10.54
ocp_version: 4.15.22
domain_name: example.com
control_plane_flavour: m4.xlarge
control_plane_nodes: 1
Expand All @@ -27,7 +27,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: False
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nfs_server:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.10.34
ocp_version: 4.15.22
domain_name: example.com
control_plane_flavour: m4.xlarge
control_plane_nodes: 3
Expand All @@ -27,7 +27,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.82.8
mcg:
install: True
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nfs_server:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.10.34
ocp_version: 4.15.22
domain_name: example.com
control_plane_flavour: m4.xlarge
control_plane_nodes: 3
Expand All @@ -37,7 +37,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: True
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ global_config:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.12.3
ocp_version: 4.15.22
domain_name: example.com
control_plane_flavour: m4.xlarge
control_plane_nodes: 3
Expand All @@ -22,7 +22,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: False
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ openshift:
azure_name: "{{ env_id }}-infra"
domain_name: "{{ env_id }}.eu"
domain_resource_group: "{{ env_id }}-domain-rg"
ocp_version: 4.10.54
ocp_version: 4.15.22
control_plane_flavour: Standard_D8s_v3
compute_flavour: Standard_D16s_v3
compute_disk_size_gb: 300
Expand All @@ -42,7 +42,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: False
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ openshift:
azure_name: "{{ env_id }}-infra"
domain_name: "{{ env_id }}.eu"
domain_resource_group: "{{ env_id }}-domain-rg"
ocp_version: 4.10.54
ocp_version: 4.15.22
control_plane_flavour: Standard_D8s_v3
compute_flavour: Standard_D16s_v3
compute_disk_size_gb: 300
Expand All @@ -43,7 +43,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: False
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ global_config:

openshift:
- name: "{{ env_id }}"
ocp_version: "4.10"
ocp_version: "4.15"
cluster_name: "{{ env_id }}"
domain_name: example.com
mcg:
Expand All @@ -18,7 +18,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
openshift_storage:
- storage_name: auto-storage
storage_type: auto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ global_config:
#
openshift:
- name: "{{ env_id }}"
ocp_version: "4.10"
ocp_version: "4.15"
cluster_name: "{{ env_id }}"
domain_name: example.com
infrastructure:
Expand All @@ -22,7 +22,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: False
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ global_config:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.8
ocp_version: 4.15
cluster_name: "{{ env_id }}"
domain_name: example.com
gpu:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: False
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ global_config:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.8
ocp_version: 4.15
cluster_name: "{{ env_id }}"
domain_name: example.com
gpu:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: True
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ global_config:

openshift:
- name: "mycluster"
ocp_version: "4.10"
ocp_version: "4.15"
cluster_name: "mycluster"
domain_name: example.com
gpu:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
openshift_storage:
- storage_name: auto-storage
storage_type: auto
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ cos:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.8
ocp_version: 4.15
compute_flavour: bx2.16x64
compute_nodes: 5
infrastructure:
Expand All @@ -86,7 +86,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: True
storage_type: storage-class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ cos:

openshift:
- name: "{{ env_id }}"
ocp_version: 4.8
ocp_version: 4.15
compute_flavour: bx2.16x64
compute_nodes: 3
infrastructure:
Expand All @@ -68,7 +68,7 @@ openshift:
install: False
openshift_ai:
install: False
channel: fast
channel: eus-2.8
mcg:
install: False
storage_type: storage-class
Expand All @@ -78,4 +78,4 @@ openshift:
storage_type: ocs
ocs_storage_label: ocs
ocs_storage_size_gb: 500
ocs_version: 4.8.0
ocs_version: 4.15.0
Loading

0 comments on commit 287a443

Please sign in to comment.