Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCO-588: Update ignition spec to 3.4, disallow ignition KernelArguments for now #3814

Merged
merged 4 commits into from
Aug 12, 2023
Merged
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
2 changes: 1 addition & 1 deletion lib/resourceapply/machineconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
"github.com/davecgh/go-spew/spew"
mcfgv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
"github.com/openshift/machine-config-operator/pkg/generated/clientset/versioned/fake"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/bootstrap/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"k8s.io/apimachinery/pkg/util/diff"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/build/build_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"time"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
buildv1 "github.com/openshift/api/build/v1"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/build/fixtures_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
"github.com/davecgh/go-spew/spew"
"github.com/ghodss/yaml"
buildv1 "github.com/openshift/api/build/v1"
Expand Down
7 changes: 7 additions & 0 deletions pkg/controller/common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,11 @@ const (
ExperimentalNewestLayeredImageEquivalentConfigAnnotationKey = "machineconfiguration.openshift.io/newestImageEquivalentConfig"

OSImageBuildPodLabel = "machineconfiguration.openshift.io/buildPod"

// InternalMCOIgnitionVersion is the ignition version that the MCO converts everything to internally. The intent here is that
// we should be able to update this constant when we bump the internal ignition version instead of having to hunt down all of
// the version references and figure out "was this supposed to be explicitly 3.4.0 or just the default version which happens
// to be 3.4.0 currently". Ideally if you find an explicit "3.4.0", it's supposed to be "3.4.0" version. If it's this constant,
// it's supposed to be the internal default version.
InternalMCOIgnitionVersion = "3.4.0"
)
244 changes: 116 additions & 128 deletions pkg/controller/common/helpers.go

Large diffs are not rendered by default.

81 changes: 22 additions & 59 deletions pkg/controller/common/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import (

"github.com/clarketm/json"
ign2types "github.com/coreos/ignition/config/v2_2/types"
ign3 "github.com/coreos/ignition/v2/config/v3_2"
ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3_4 "github.com/coreos/ignition/v2/config/v3_4"
ign3_4types "github.com/coreos/ignition/v2/config/v3_4/types"
ign3 "github.com/coreos/ignition/v2/config/v3_4"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
validate3 "github.com/coreos/ignition/v2/config/validate"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -104,7 +102,7 @@ func TestValidateIgnition(t *testing.T) {
require.NotNil(t, isValid2)

// Test that a valid ignition config returns nil
testIgn3Config.Ignition.Version = "3.2.0"
testIgn3Config.Ignition.Version = InternalMCOIgnitionVersion
mode := 420
testfiledata := "data:,greatconfigstuff"
tempFile := ign3types.File{Node: ign3types.Node{Path: "/etc/testfileconfig"},
Expand Down Expand Up @@ -141,7 +139,7 @@ func TestConvertIgnition2to3(t *testing.T) {
isValid := ValidateIgnition(testIgn2Config)
require.Nil(t, isValid)

convertedIgn, err := convertIgnition2to3(testIgn2Config)
convertedIgn, err := convertIgnition22to34(testIgn2Config)
require.Nil(t, err)
assert.IsType(t, ign3types.Config{}, convertedIgn)
isValid3 := ValidateIgnition(convertedIgn)
Expand All @@ -153,11 +151,11 @@ func TestConvertIgnition3to2(t *testing.T) {
testIgn3Config := ign3types.Config{}
tempUser := ign3types.PasswdUser{Name: "core", SSHAuthorizedKeys: []ign3types.SSHAuthorizedKey{"5678", "abc"}}
testIgn3Config.Passwd.Users = []ign3types.PasswdUser{tempUser}
testIgn3Config.Ignition.Version = "3.2.0"
testIgn3Config.Ignition.Version = "3.4.0"
isValid := ValidateIgnition(testIgn3Config)
require.Nil(t, isValid)

convertedIgn, err := convertIgnition3to2(testIgn3Config)
convertedIgn, err := convertIgnition34to22(testIgn3Config)
require.Nil(t, err)
assert.IsType(t, ign2types.Config{}, convertedIgn)
isValid2 := ValidateIgnition(convertedIgn)
Expand All @@ -169,7 +167,7 @@ func TestParseAndConvert(t *testing.T) {
testIgn3Config := ign3types.Config{}
tempUser := ign3types.PasswdUser{Name: "core", SSHAuthorizedKeys: []ign3types.SSHAuthorizedKey{"5678", "abc"}}
testIgn3Config.Passwd.Users = []ign3types.PasswdUser{tempUser}
testIgn3Config.Ignition.Version = "3.2.0"
testIgn3Config.Ignition.Version = InternalMCOIgnitionVersion

// Make a Ign2 comp config
testIgn2Config := ign2types.Config{}
Expand Down Expand Up @@ -197,7 +195,7 @@ func TestParseAndConvert(t *testing.T) {
assert.Equal(t, testIgn3Config, convertedIgn)

// Make a valid Ign 3.2 cfg
testIgn3Config.Ignition.Version = "3.2.0"
testIgn3Config.Ignition.Version = InternalMCOIgnitionVersion
// turn it into a raw []byte
rawIgn = helpers.MarshalOrDie(testIgn3Config)
// check that it was parsed successfully
Expand All @@ -209,63 +207,40 @@ func TestParseAndConvert(t *testing.T) {
testIgn3Config.Ignition.Version = "3.1.0"
// turn it into a raw []byte
rawIgn = helpers.MarshalOrDie(testIgn3Config)
// check that it was parsed successfully back to 3.2
// check that it was parsed successfully back to the default version
convertedIgn, err = ParseAndConvertConfig(rawIgn)
require.Nil(t, err)
testIgn3Config.Ignition.Version = "3.2.0"
testIgn3Config.Ignition.Version = InternalMCOIgnitionVersion
assert.Equal(t, testIgn3Config, convertedIgn)

// Make a valid Ign 3.0 cfg
testIgn3Config.Ignition.Version = "3.0.0"
// turn it into a raw []byte
rawIgn = helpers.MarshalOrDie(testIgn3Config)
// check that it was parsed successfully back to 3.2
// check that it was parsed successfully back to the default version
convertedIgn, err = ParseAndConvertConfig(rawIgn)
require.Nil(t, err)
testIgn3Config.Ignition.Version = "3.2.0"
testIgn3Config.Ignition.Version = InternalMCOIgnitionVersion
assert.Equal(t, testIgn3Config, convertedIgn)

// Make a valid Ign 3.3 cfg
testIgn3Config.Ignition.Version = "3.3.0"
// turn it into a raw []byte
rawIgn = helpers.MarshalOrDie(testIgn3Config)
// check that it was parsed successfully back to 3.2
// check that it was parsed successfully back to the default version
convertedIgn, err = ParseAndConvertConfig(rawIgn)
require.Nil(t, err)
testIgn3Config.Ignition.Version = "3.2.0"
testIgn3Config.Ignition.Version = InternalMCOIgnitionVersion
assert.Equal(t, testIgn3Config, convertedIgn)

// Make a valid Ign 3.4 cfg
testIgn3Config.Ignition.Version = "3.4.0"
// turn it into a raw []byte
rawIgn = helpers.MarshalOrDie(testIgn3Config)
// check that it was parsed successfully back to 3.2
// check that it was parsed successfully back to the default version
convertedIgn, err = ParseAndConvertConfig(rawIgn)
require.Nil(t, err)
testIgn3Config.Ignition.Version = "3.2.0"
assert.Equal(t, testIgn3Config, convertedIgn)

// Make a an Ign 3.4 cfg with kargs
testIgn3Config.Ignition.Version = "3.4.0"

var ign34 ign3_4types.Config
// Parse this up to 3.4 specifically so we can test a downgrade that
// is using kargs
ign34, _, err = ign3_4.ParseCompatibleVersion(rawIgn)
require.Nil(t, err)
ign34.KernelArguments = ign3_4types.KernelArguments{
ShouldExist: []ign3_4types.KernelArgument{"one", "two", "three"},
ShouldNotExist: []ign3_4types.KernelArgument{"four", "five", "six"},
}
// turn it into a raw []byte
rawIgn = helpers.MarshalOrDie(ign34)

// check that it was parsed successfully back to 3.2
// this should strip out the kernel args
convertedIgn, err = ParseAndConvertConfig(rawIgn)
require.Nil(t, err)
testIgn3Config.Ignition.Version = "3.2.0"
// we compare to testign3Config because kargs should get stripped out
testIgn3Config.Ignition.Version = InternalMCOIgnitionVersion
assert.Equal(t, testIgn3Config, convertedIgn)

// Make a bad Ign3 cfg
Expand Down Expand Up @@ -368,17 +343,6 @@ func TestMergeMachineConfigs(t *testing.T) {
},
})

// TODO(jkyros): remove this when we raise the ignition default to 3.4
machineConfigIgnKernelArgsDowngrade := helpers.CreateMachineConfigFromIgnition(ign3_4types.Config{
Ignition: ign3_4types.Ignition{
Version: ign3_4types.MaxVersion.String(),
},
KernelArguments: ign3_4types.KernelArguments{
ShouldExist: []ign3_4types.KernelArgument{"kargFromIgnitionDowngrade"},
ShouldNotExist: []ign3_4types.KernelArgument{},
},
})

// we added some v3 specific logic for kargs, make sure we didn't break the v2 path
machineConfigIgnV2Merge := helpers.CreateMachineConfigFromIgnition(ign2types.Config{
Ignition: ign2types.Ignition{
Expand Down Expand Up @@ -407,7 +371,6 @@ func TestMergeMachineConfigs(t *testing.T) {
machineConfigFIPS,
machineConfigIgnPasswdHashUser,
machineConfigIgnSSHUser,
machineConfigIgnKernelArgsDowngrade,
machineConfigIgnV2Merge,
}

Expand Down Expand Up @@ -563,12 +526,12 @@ func TestSetDefaultFileOverwrite(t *testing.T) {
// Set up two Ignition configs, one with overwrite: no default, overwrite: false (to be passed to MergeMachineConfigs)
// and one with a overwrite: true, overwrite: false (the expected output)
testIgn3ConfigPreMerge := ign3types.Config{}
testIgn3ConfigPreMerge.Ignition.Version = "3.2.0"
testIgn3ConfigPreMerge.Ignition.Version = InternalMCOIgnitionVersion
testIgn3ConfigPreMerge.Storage.Files = append(testIgn3ConfigPreMerge.Storage.Files, tempFileNoDefault)
testIgn3ConfigPreMerge.Storage.Files = append(testIgn3ConfigPreMerge.Storage.Files, tempFileOverwriteFalse)

testIgn3ConfigPostMerge := ign3types.Config{}
testIgn3ConfigPostMerge.Ignition.Version = "3.2.0"
testIgn3ConfigPostMerge.Ignition.Version = InternalMCOIgnitionVersion
testIgn3ConfigPostMerge.Storage.Files = append(testIgn3ConfigPostMerge.Storage.Files, tempFileOvewriteTrue)
testIgn3ConfigPostMerge.Storage.Files = append(testIgn3ConfigPostMerge.Storage.Files, tempFileOverwriteFalse)

Expand Down Expand Up @@ -606,7 +569,7 @@ func TestSetDefaultFileOverwrite(t *testing.T) {
// TestIgnitionMergeCompressed tests https://github.com/coreos/butane/issues/332
func TestIgnitionMergeCompressed(t *testing.T) {
testIgn3Config := ign3types.Config{}
testIgn3Config.Ignition.Version = "3.2.0"
testIgn3Config.Ignition.Version = InternalMCOIgnitionVersion
mode := 420
testfiledata := "data:;base64,H4sIAAAAAAAAA0vLz+cCAKhlMn4EAAAA"
compression := "gzip"
Expand All @@ -615,7 +578,7 @@ func TestIgnitionMergeCompressed(t *testing.T) {
testIgn3Config.Storage.Files = append(testIgn3Config.Storage.Files, tempFile)

testIgn3Config2 := ign3types.Config{}
testIgn3Config2.Ignition.Version = "3.2.0"
testIgn3Config2.Ignition.Version = InternalMCOIgnitionVersion
testIgn3Config2.Storage.Files = append(testIgn3Config2.Storage.Files, NewIgnFile("/etc/testfileconfig", "hello world"))

merged := ign3.Merge(testIgn3Config, testIgn3Config2)
Expand All @@ -634,11 +597,11 @@ func TestCalculateConfigFileDiffs(t *testing.T) {
newTempFile := NewIgnFile("/etc/kubernetes/kubelet-ca.crt", "newcertificates")

// Make an "old" config with the existing file in it
testIgn3ConfigOld.Ignition.Version = "3.2.0"
testIgn3ConfigOld.Ignition.Version = InternalMCOIgnitionVersion
testIgn3ConfigOld.Storage.Files = append(testIgn3ConfigOld.Storage.Files, oldTempFile)

// Make a "new" config with a change to that file
testIgn3ConfigNew.Ignition.Version = "3.2.0"
testIgn3ConfigNew.Ignition.Version = InternalMCOIgnitionVersion
testIgn3ConfigNew.Storage.Files = append(testIgn3ConfigNew.Storage.Files, newTempFile)

// If it works, it should notice the file changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/clarketm/json"
ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
apicfgv1 "github.com/openshift/api/config/v1"
apioperatorsv1alpha1 "github.com/openshift/api/operator/v1alpha1"
configclientset "github.com/openshift/client-go/config/clientset/versioned"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/tools/record"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
apicfgv1 "github.com/openshift/api/config/v1"
apioperatorsv1alpha1 "github.com/openshift/api/operator/v1alpha1"
fakeconfigv1client "github.com/openshift/client-go/config/clientset/versioned/fake"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/container-runtime-config/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
signature "github.com/containers/image/v5/signature"
"github.com/containers/image/v5/types"
storageconfig "github.com/containers/storage/pkg/config"
ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
apicfgv1 "github.com/openshift/api/config/v1"
apioperatorsv1alpha1 "github.com/openshift/api/operator/v1alpha1"
"github.com/openshift/runtime-utils/pkg/registries"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/kubelet-config/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"strings"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
"github.com/imdario/mergo"
osev1 "github.com/openshift/api/config/v1"
"github.com/openshift/library-go/pkg/operator/configobserver/featuregates"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/kubelet-config/kubelet_config_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/clarketm/json"
ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
"github.com/imdario/mergo"
corev1 "k8s.io/api/core/v1"
macherrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"testing"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
osev1 "github.com/openshift/api/config/v1"
oseconfigfake "github.com/openshift/client-go/config/clientset/versioned/fake"
oseinformersv1 "github.com/openshift/client-go/config/informers/externalversions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
configv1 "github.com/openshift/api/config/v1"
osev1 "github.com/openshift/api/config/v1"
"github.com/openshift/library-go/pkg/operator/configobserver/featuregates"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/kubelet-config/kubelet_config_nodes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"testing"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
configv1 "github.com/openshift/api/config/v1"
osev1 "github.com/openshift/api/config/v1"
mcfgv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/render/render_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/clarketm/json"
ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
configv1 "github.com/openshift/api/config/v1"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/template/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"testing"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
configv1 "github.com/openshift/api/config/v1"
"github.com/openshift/library-go/pkg/cloudprovider"
"github.com/openshift/library-go/pkg/operator/configobserver/featuregates"
Expand Down
2 changes: 1 addition & 1 deletion pkg/daemon/config_drift_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"

ign2types "github.com/coreos/ignition/config/v2_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
"github.com/fsnotify/fsnotify"
mcfgv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
ctrlcommon "github.com/openshift/machine-config-operator/pkg/controller/common"
Expand Down
2 changes: 1 addition & 1 deletion pkg/daemon/config_drift_monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
mcfgv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
"github.com/openshift/machine-config-operator/test/helpers"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion pkg/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"syscall"
"time"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
"github.com/google/renameio"
"golang.org/x/time/rate"
corev1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/daemon/daemon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

ign2types "github.com/coreos/ignition/config/v2_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
"github.com/stretchr/testify/require"
"github.com/vincent-petithory/dataurl"
corev1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/daemon/drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/BurntSushi/toml"
"github.com/containers/image/v5/pkg/sysregistriesv2"
ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
ctrlcommon "github.com/openshift/machine-config-operator/pkg/controller/common"
"github.com/openshift/machine-config-operator/pkg/daemon/constants"
corev1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/daemon/drain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

ign3types "github.com/coreos/ignition/v2/config/v3_2/types"
ign3types "github.com/coreos/ignition/v2/config/v3_4/types"
mcfgv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
ctrlcommon "github.com/openshift/machine-config-operator/pkg/controller/common"
"github.com/openshift/machine-config-operator/test/helpers"
Expand Down
Loading