Skip to content

Commit ea0201f

Browse files
Merge remote-tracking branch 'origin/master' into mcn-not-updated-ocl
2 parents d08769f + 7a65c1c commit ea0201f

File tree

138 files changed

+2921
-21149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+2921
-21149
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use RHEL 9 as the primary builder base for the Machine Config Operator
2-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS rhel9-builder
2+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS rhel9-builder
33
ARG TAGS=""
44
WORKDIR /go/src/github.com/openshift/machine-config-operator
55
COPY . .
@@ -12,7 +12,7 @@ RUN --mount=type=cache,target=/go/rhel9/.cache,z \
1212
make install DESTDIR=./instroot-rhel9 && tar -C instroot-rhel9 -cf instroot-rhel9.tar .
1313

1414
# Add a RHEL 8 builder to compile the RHEL 8 compatible binaries
15-
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.22-openshift-4.17 AS rhel8-builder
15+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.22-openshift-4.18 AS rhel8-builder
1616
ARG TAGS=""
1717
WORKDIR /go/src/github.com/openshift/machine-config-operator
1818
# Copy the RHEL 8 machine-config-daemon binary and rename
@@ -23,7 +23,7 @@ RUN --mount=type=cache,target=/go/rhel8/.cache,z \
2323
--mount=type=cache,target=/go/rhel8/pkg/mod,z \
2424
make install DESTDIR=./instroot-rhel8 && tar -C instroot-rhel8 -cf instroot-rhel8.tar .
2525

26-
FROM registry.ci.openshift.org/ocp/4.17:base-rhel9
26+
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
2727
ARG TAGS=""
2828
COPY install /manifests
2929
RUN --mount=type=cache,target=/var/cache/dnf,z \

Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ test-unit: install-go-junit-report
5656
# make update
5757
update:
5858
hack/update-templates.sh
59-
hack/crds-sync.sh
6059
go-deps:
6160
go mod tidy
6261
go mod vendor

OWNERS

+4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ approvers:
55
- dkhater-redhat
66
- yuqi-zhang
77
- cheesesashimi
8+
- umohnani8
9+
- LorbusChris
810
reviewers:
911
- djoshy
1012
- dkhater-redhat
1113
- yuqi-zhang
1214
- cheesesashimi
15+
- umohnani8
16+
- LorbusChris
1317

1418
component: "Machine Config Operator"

cmd/machine-config-daemon/firstboot_complete_machineconfig.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import (
55
"fmt"
66
"time"
77

8+
daemonconsts "github.com/openshift/machine-config-operator/pkg/daemon/constants"
9+
810
daemon "github.com/openshift/machine-config-operator/pkg/daemon"
911
"github.com/spf13/cobra"
1012
"github.com/spf13/pflag"
@@ -21,11 +23,14 @@ var firstbootCompleteMachineconfig = &cobra.Command{
2123

2224
var persistNics bool
2325

26+
var machineConfigFile string
27+
2428
// init executes upon import
2529
func init() {
2630
rootCmd.AddCommand(firstbootCompleteMachineconfig)
2731
firstbootCompleteMachineconfig.PersistentFlags().StringVar(&startOpts.rootMount, "root-mount", "/rootfs", "where the nodes root filesystem is mounted for chroot and file manipulation.")
2832
firstbootCompleteMachineconfig.PersistentFlags().BoolVar(&persistNics, "persist-nics", false, "Run nmstatectl persist-nic-names")
33+
firstbootCompleteMachineconfig.PersistentFlags().StringVar(&machineConfigFile, "machineconfig-file", daemonconsts.MachineConfigEncapsulatedPath, "The MachineConfig file on-disk to use as the source of truth.")
2934
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
3035
}
3136

@@ -55,7 +60,7 @@ func runFirstBootCompleteMachineConfig(_ *cobra.Command, _ []string) error {
5560
return err
5661
}
5762

58-
return dn.RunFirstbootCompleteMachineconfig()
63+
return dn.RunFirstbootCompleteMachineconfig(machineConfigFile)
5964
}
6065

6166
func executeFirstbootCompleteMachineConfig(cmd *cobra.Command, args []string) {

docs/MachineConfig.md

+1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ RHCOS is a minimal OCP focused OS which provides capabilities common across all
209209
| 4.8 | `usbguard`, `sandboxed-containers` |
210210
| 4.11 | `usbguard`, `sandboxed-containers`, `kerberos` |
211211
| 4.14 | `usbguard`, `sandboxed-containers`, `kerberos`, `ipsec`, `wasm` |
212+
| 4.17 | `usbguard`, `sandboxed-containers`, `kerberos`, `ipsec`, `wasm` , `sysstat` |
212213

213214
Extensions can be installed by creating a MachineConfig object. Extensions can be enabled as both day1 and day2. Check [installer guide](https://github.com/openshift/installer/blob/master/docs/user/customization.md#Enabling-RHCOS-Extensions) to enable extensions during cluster install.
214215

0 commit comments

Comments
 (0)