Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[submodule "ovn-kubernetes"]
path = ovn-kubernetes
url = https://github.com/openshift/ovn-kubernetes
branch = release-5.0
branch = release-4.23
[submodule "containernetworking-plugins"]
path = containernetworking-plugins
url = https://github.com/openshift/containernetworking-plugins
branch = release-5.0
branch = release-4.23
[submodule "promu"]
path = promu
url = https://github.com/openshift/prometheus-promu
Expand All @@ -15,24 +15,24 @@
[submodule "kubelet"]
path = kubelet
url = https://github.com/openshift/kubernetes
branch = release-5.0
branch = release-4.23
[submodule "containerd"]
path = containerd
url = https://github.com/openshift/containerd
branch = release-5.0
branch = release-4.23
[submodule "hcsshim"]
path = hcsshim
url = https://github.com/openshift/hcsshim
branch = release-5.0
branch = release-4.23
[submodule "cloud-provider-azure"]
path = cloud-provider-azure
url = https://github.com/openshift/cloud-provider-azure
branch = release-5.0
branch = release-4.23
[submodule "csi-proxy"]
path = csi-proxy
url = https://github.com/openshift/csi-proxy
branch = release-5.0
branch = release-4.23
[submodule "cloud-provider-aws"]
path = cloud-provider-aws
url = https://github.com/openshift/cloud-provider-aws
branch = release-5.0
branch = release-4.23
2 changes: 1 addition & 1 deletion .tekton/images-mirror-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ spec:
imageDigestMirrors:
- source: registry.redhat.io/openshift4-wincw/windows-machine-config-rhel9-operator
mirrors:
- quay.io/redhat-user-workloads/windows-machine-conf-tenant/windows-machine-config-operator/windows-machine-config-operator-release-5-0
- quay.io/redhat-user-workloads/windows-machine-conf-tenant/windows-machine-config-operator/windows-machine-config-operator-release-4-23
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: '3'
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request"
&& target_branch == "master"
&& target_branch == "release-4.23"
&& ( "Containerfile.bundle".pathChanged() || "bundle/***".pathChanged() || ".tekton/windows-machine-config-operator-bundle-*".pathChanged() )
creationTimestamp:
labels:
appstudio.openshift.io/application: windows-machine-config-operator-release-5-0
appstudio.openshift.io/component: windows-machine-config-operator-bundle-release-5-0
appstudio.openshift.io/application: windows-machine-config-operator-release-4-23
appstudio.openshift.io/component: windows-machine-config-operator-bundle-release-4-23
pipelines.appstudio.openshift.io/type: build
name: windows-machine-config-operator-bundle-release-5-0-on-pull-request
name: windows-machine-config-operator-bundle-release-4-23-on-pull-request
namespace: windows-machine-conf-tenant
spec:
params:
Expand All @@ -33,7 +33,7 @@ spec:
- name: image-expires-after
value: 5d
- name: output-image
value: quay.io/redhat-user-workloads/windows-machine-conf-tenant/windows-machine-config-operator/windows-machine-config-operator-bundle-release-5-0:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/windows-machine-conf-tenant/windows-machine-config-operator/windows-machine-config-operator-bundle-release-4-23:on-pr-{{revision}}
- name: revision
value: '{{revision}}'
pipelineSpec:
Expand Down Expand Up @@ -539,7 +539,7 @@ spec:
memory: 8Gi
name: use-trusted-artifact
taskRunTemplate:
serviceAccountName: build-pipeline-windows-machine-config-operator-bundle-release-5-0
serviceAccountName: build-pipeline-windows-machine-config-operator-bundle-release-4-23
workspaces:
- name: git-auth
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: '3'
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push"
&& target_branch == "master"
&& target_branch == "release-4.23"
&& ( "Containerfile.bundle".pathChanged() || "bundle/***".pathChanged() || ".tekton/windows-machine-config-operator-bundle-*".pathChanged() )
creationTimestamp:
labels:
appstudio.openshift.io/application: windows-machine-config-operator-release-5-0
appstudio.openshift.io/component: windows-machine-config-operator-bundle-release-5-0
appstudio.openshift.io/application: windows-machine-config-operator-release-4-23
appstudio.openshift.io/component: windows-machine-config-operator-bundle-release-4-23
pipelines.appstudio.openshift.io/type: build
name: windows-machine-config-operator-bundle-release-5-0-on-push
name: windows-machine-config-operator-bundle-release-4-23-on-push
namespace: windows-machine-conf-tenant
spec:
params:
Expand All @@ -30,7 +30,7 @@ spec:
- name: git-url
value: '{{source_url}}'
- name: output-image
value: quay.io/redhat-user-workloads/windows-machine-conf-tenant/windows-machine-config-operator/windows-machine-config-operator-bundle-release-5-0:{{revision}}
value: quay.io/redhat-user-workloads/windows-machine-conf-tenant/windows-machine-config-operator/windows-machine-config-operator-bundle-release-4-23:{{revision}}
- name: revision
value: '{{revision}}'
pipelineSpec:
Expand Down Expand Up @@ -525,7 +525,7 @@ spec:
memory: 8Gi
name: use-trusted-artifact
taskRunTemplate:
serviceAccountName: build-pipeline-windows-machine-config-operator-bundle-release-5-0
serviceAccountName: build-pipeline-windows-machine-config-operator-bundle-release-4-23
workspaces:
- name: git-auth
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: '3'
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request"
&& target_branch == "master"
&& target_branch == "release-4.23"
&& !files.all.all(x, x.matches('^docs/|\\.md$|^(?:.*/)?(?:\\.gitignore|OWNERS|PROJECT|LICENSE|Containerfile.bundle)$'))
creationTimestamp:
labels:
appstudio.openshift.io/application: windows-machine-config-operator-release-5-0
appstudio.openshift.io/component: windows-machine-config-operator-release-5-0
appstudio.openshift.io/application: windows-machine-config-operator-release-4-23
appstudio.openshift.io/component: windows-machine-config-operator-release-4-23
pipelines.appstudio.openshift.io/type: build
name: windows-machine-config-operator-release-5-0-on-pull-request
name: windows-machine-config-operator-release-4-23-on-pull-request
namespace: windows-machine-conf-tenant
spec:
params:
Expand All @@ -33,7 +33,7 @@ spec:
- name: image-expires-after
value: 5d
- name: output-image
value: quay.io/redhat-user-workloads/windows-machine-conf-tenant/windows-machine-config-operator/windows-machine-config-operator-release-5-0:on-pr-{{revision}}
value: quay.io/redhat-user-workloads/windows-machine-conf-tenant/windows-machine-config-operator/windows-machine-config-operator-release-4-23:on-pr-{{revision}}
- name: revision
value: '{{revision}}'
pipelineSpec:
Expand Down Expand Up @@ -524,7 +524,7 @@ spec:
memory: 8Gi
name: use-trusted-artifact
taskRunTemplate:
serviceAccountName: build-pipeline-windows-machine-config-operator-release-5-0
serviceAccountName: build-pipeline-windows-machine-config-operator-release-4-23
workspaces:
- name: git-auth
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ metadata:
pipelinesascode.tekton.dev/max-keep-runs: '3'
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push"
&& target_branch == "master"
&& target_branch == "release-4.23"
&& !files.all.all(x, x.matches('^docs/|\\.md$|^(?:.*/)?(?:\\.gitignore|OWNERS|PROJECT|LICENSE|Containerfile.bundle)$'))
creationTimestamp:
labels:
appstudio.openshift.io/application: windows-machine-config-operator-release-5-0
appstudio.openshift.io/component: windows-machine-config-operator-release-5-0
appstudio.openshift.io/application: windows-machine-config-operator-release-4-23
appstudio.openshift.io/component: windows-machine-config-operator-release-4-23
pipelines.appstudio.openshift.io/type: build
name: windows-machine-config-operator-release-5-0-on-push
name: windows-machine-config-operator-release-4-23-on-push
namespace: windows-machine-conf-tenant
spec:
params:
Expand All @@ -30,7 +30,7 @@ spec:
- name: git-url
value: '{{source_url}}'
- name: output-image
value: quay.io/redhat-user-workloads/windows-machine-conf-tenant/windows-machine-config-operator/windows-machine-config-operator-release-5-0:{{revision}}
value: quay.io/redhat-user-workloads/windows-machine-conf-tenant/windows-machine-config-operator/windows-machine-config-operator-release-4-23:{{revision}}
- name: revision
value: '{{revision}}'
pipelineSpec:
Expand Down Expand Up @@ -521,7 +521,7 @@ spec:
memory: 8Gi
name: use-trusted-artifact
taskRunTemplate:
serviceAccountName: build-pipeline-windows-machine-config-operator-release-5-0
serviceAccountName: build-pipeline-windows-machine-config-operator-release-4-23
workspaces:
- name: git-auth
secret:
Expand Down
6 changes: 3 additions & 3 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ LABEL stage=operator

# This block contains standard Red Hat container labels
LABEL name="openshift4-wincw/windows-machine-config-rhel9-operator" \
cpe="cpe:/a:redhat:windows_machine_config:11.0::el9" \
cpe="cpe:/a:redhat:windows_machine_config:10.23::el9" \
License="ASL 2.0" \
io.k8s.display-name="Windows Machine Config Operator" \
io.k8s.description="Windows Machine Config Operator" \
Expand Down Expand Up @@ -217,7 +217,7 @@ RUN /usr/local/bin/user_setup
ENTRYPOINT ["/usr/local/bin/entrypoint"]

# Used to tag the released image. Should be a semver.
LABEL version="v11.0.0"
LABEL release="v11.0.0"
LABEL version="v10.23.0"
LABEL release="v10.23.0"

USER ${USER_UID}
10 changes: 5 additions & 5 deletions Containerfile.bundle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ LABEL name="openshift4-wincw/windows-machine-config-operator-bundle" \
io.openshift.tags=""

# Used to tag the released image. Should be a semver.
LABEL version="v11.0.0"
LABEL version="v10.23.0"
# Component to file bugs against
LABEL com.redhat.component="Windows Containers"
LABEL cpe="cpe:/a:redhat:windows_machine_config:11.0::el9"
LABEL cpe="cpe:/a:redhat:windows_machine_config:10.23::el9"

# Core bundle labels.
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
Expand All @@ -33,10 +33,10 @@ LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3

LABEL distribution-scope=public
LABEL release="11.0.0"
LABEL url="https://docs.redhat.com/en/documentation/openshift_container_platform/5.0/html/windows_container_support_for_openshift/index"
LABEL release="v10.23.0"
LABEL url="https://docs.redhat.com/en/documentation/openshift_container_platform/4.23/html/windows_container_support_for_openshift/index"
LABEL vendor="Red Hat, Inc."
LABEL com.redhat.openshift.versions="=v5.0"
LABEL com.redhat.openshift.versions="=v4.23"

# create licenses directory
# See https://docs.redhat.com/en/documentation/red_hat_software_certification/2025/html-single/red_hat_openshift_software_certification_policy_guide/index#con-image-content-requirements_openshift-sw-cert-policy-container-images
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - use the WMCO_VERSION as arg of the bundle target (e.g make bundle WMCO_VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export WMCO_VERSION=0.0.2)
WMCO_VERSION ?= 11.0.0
WMCO_VERSION ?= 10.23.0

# *_GIT_VERSION are the k8s versions. Any update to the build line could potentially require an update to the sed
# command in generate_k8s_version_commit() in hack/update_submodules.sh
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 as build
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-4.23 as build
LABEL stage=build

# Silence go compliance shim output
Expand Down
4 changes: 2 additions & 2 deletions build/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# building the operator from the PR source without using the operator-sdk.

# build stage for building binaries
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 as build
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-4.23 as build
LABEL stage=build

# Silence go compliance shim output
Expand Down Expand Up @@ -194,7 +194,7 @@ mkdir /payload/generated && \
chmod 0777 /payload/generated


FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.26-openshift-5.0
FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.26-openshift-4.23
LABEL stage=operator

WORKDIR /
Expand Down
8 changes: 4 additions & 4 deletions build/Dockerfile.wmco
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG BASE_IMG=localhost/wmco-base:latest

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 as build
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-4.23 as build
LABEL stage=build

# Silence go compliance shim output
Expand Down Expand Up @@ -52,7 +52,7 @@ LABEL stage=operator

# This block contains standard Red Hat container labels
LABEL name="openshift4-wincw/windows-machine-config-rhel9-operator" \
cpe="cpe:/a:redhat:windows_machine_config:11.0::el9" \
cpe="cpe:/a:redhat:windows_machine_config:10.23::el9" \
License="ASL 2.0" \
io.k8s.display-name="Windows Machine Config Operator" \
io.k8s.description="Windows Machine Config Operator" \
Expand Down Expand Up @@ -84,7 +84,7 @@ RUN /usr/local/bin/user_setup
ENTRYPOINT ["/usr/local/bin/entrypoint"]

# Used to tag the released image. Should be a semver.
LABEL version="v11.0.0"
LABEL release="v11.0.0"
LABEL version="v10.23.0"
LABEL release="v10.23.0"

USER ${USER_UID}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ metadata:
features.operators.openshift.io/token-auth-aws: "false"
features.operators.openshift.io/token-auth-azure: "false"
features.operators.openshift.io/token-auth-gcp: "false"
olm.skipRange: '>=10.22.0 <11.0.0'
olm.skipRange: '>=10.22.0 <10.23.0'
operatorframework.io/cluster-monitoring: "true"
operatorframework.io/suggested-namespace: openshift-windows-machine-config-operator
operators.openshift.io/valid-subscription: '["Red Hat OpenShift support for Windows
Expand All @@ -27,16 +27,16 @@ metadata:
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/openshift/windows-machine-config-operator
support: Red Hat
name: windows-machine-config-operator.v11.0.0
name: windows-machine-config-operator.v10.23.0
namespace: placeholder
spec:
apiservicedefinitions: {}
customresourcedefinitions: {}
description: |-
### Introduction
The Windows Machine Config Operator configures Windows Machines into nodes, enabling Windows container workloads to
be run on OCP clusters. Windows instances can be added either by creating a [MachineSet](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/windows_container_support_for_openshift/creating-windows-machine-sets#creating-windows-machineset-aws),
or by specifying existing instances through a [ConfigMap](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/windows_container_support_for_openshift/byoh-windows-instance)
be run on OCP clusters. Windows instances can be added either by creating a [MachineSet](https://docs.redhat.com/en/documentation/openshift_container_platform/4.23/html/windows_container_support_for_openshift/creating-windows-machine-sets#creating-windows-machineset-aws),
or by specifying existing instances through a [ConfigMap](https://docs.redhat.com/en/documentation/openshift_container_platform/4.23/html/windows_container_support_for_openshift/byoh-windows-instance)
The operator completes all the necessary steps to configure the Windows instance so that it can join the cluster as a worker node.

Usage of this operator requires an OpenShift Container Platform for Windows Containers subscription. Users looking to
Expand All @@ -47,7 +47,7 @@ spec:
### Pre-requisites
* A Red Hat OpenShift Container Platform for Windows Containers [subscription](https://access.redhat.com/support/policy/updates/openshift#windows)
* OCP 4.21 cluster running on Azure, AWS, GCP or vSphere configured with hybrid OVN Kubernetes networking
* [WMCO prerequisites](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/windows_container_support_for_openshift/understanding-windows-container-workloads)
* [WMCO prerequisites](https://docs.redhat.com/en/documentation/openshift_container_platform/4.23/html/windows_container_support_for_openshift/understanding-windows-container-workloads)

### Usage
Once the `openshift-windows-machine-config-operator` namespace has been created, a secret must be created containing
Expand All @@ -57,7 +57,7 @@ spec:
oc create secret generic cloud-private-key --from-file=private-key.pem=/path/to/key -n openshift-windows-machine-config-operator
```
We strongly recommend not using the same
[private key](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/installing_on_azure/installing-azure-default#ssh-agent-using_installing-azure-default)
[private key](https://docs.redhat.com/en/documentation/openshift_container_platform/4.23/html/installing_on_azure/installing-azure-default#ssh-agent-using_installing-azure-default)
used when installing the cluster

Below is an example of a vSphere Windows MachineSet which can create Windows Machines that the WMCO can react upon.
Expand Down Expand Up @@ -142,9 +142,9 @@ spec:
server: <vCenter Server FQDN/IP>
```
Example MachineSet for other cloud providers:
- [AWS](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/windows_container_support_for_openshift/creating-windows-machine-sets#creating-windows-machineset-aws)
- [Azure](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/windows_container_support_for_openshift/creating-windows-machine-sets#creating-windows-machineset-azure)
- [GCP](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/windows_container_support_for_openshift/creating-windows-machine-sets#creating-windows-machineset-gcp)
- [AWS](https://docs.redhat.com/en/documentation/openshift_container_platform/4.23/html/windows_container_support_for_openshift/creating-windows-machine-sets#creating-windows-machineset-aws)
- [Azure](https://docs.redhat.com/en/documentation/openshift_container_platform/4.23/html/windows_container_support_for_openshift/creating-windows-machine-sets#creating-windows-machineset-azure)
- [GCP](https://docs.redhat.com/en/documentation/openshift_container_platform/4.23/html/windows_container_support_for_openshift/creating-windows-machine-sets#creating-windows-machineset-gcp)

### Limitations
#### DeploymentConfigs
Expand All @@ -153,7 +153,7 @@ spec:

### Reporting issues
Support for this distribution of WMCO requires a Red Hat OpenShfit subscription. Support should be requested through the Red Hat Customer Portal.
Please read through the [troubleshooting document](https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/support/troubleshooting#olm-reinstall_troubleshooting-operator-issues)
Please read through the [troubleshooting document](https://docs.redhat.com/en/documentation/openshift_container_platform/4.23/html/support/troubleshooting#olm-reinstall_troubleshooting-operator-issues)
before opening a support case.
displayName: Windows Machine Config Operator
icon:
Expand Down Expand Up @@ -548,4 +548,4 @@ spec:
minKubeVersion: 1.36.0
provider:
name: Red Hat
version: 11.0.0
version: 10.23.0
2 changes: 1 addition & 1 deletion bundle/windows-machine-config-operator.package.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
channels:
- currentCSV: windows-machine-config-operator.v11.0.0
- currentCSV: windows-machine-config-operator.v10.23.0
channels: alpha
packageName: windows-machine-config-operator
Loading