-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OCPBUGS-29641: fix rendering extra ctrcfgs (#972)
Fix bootstrap error of "more than one ContainerRuntimeConfig found that matches MCP labels" when an additional ContainerRuntimeConfig is provided by user. Signed-off-by: Vitaly Grinberg <v.g@redhat.com> Co-authored-by: Vitaly Grinberg <v.g@redhat.com>
- Loading branch information
Showing
15 changed files
with
759 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
test/e2e/performanceprofile/cluster-setup/container-runtime-crun/enable-crun-master.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: ContainerRuntimeConfig | ||
metadata: | ||
name: enable-crun-master | ||
spec: | ||
containerRuntimeConfig: | ||
defaultRuntime: crun | ||
machineConfigPoolSelector: | ||
matchLabels: | ||
pools.operator.machineconfiguration.openshift.io/master: "" | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
.../bootstrap/extra-ctrcfg/01_01-master-cpu-partitioning_workload_pinning_machineconfig.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfig | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
machineconfiguration.openshift.io/role: master | ||
name: 01-master-cpu-partitioning | ||
spec: | ||
baseOSExtensionsContainerImage: "" | ||
config: | ||
ignition: | ||
config: | ||
replace: | ||
verification: {} | ||
proxy: {} | ||
security: | ||
tls: {} | ||
timeouts: {} | ||
version: 3.2.0 | ||
passwd: {} | ||
storage: | ||
files: | ||
- contents: | ||
source: data:text/plain;charset=utf-8;base64,CnsKICAibWFuYWdlbWVudCI6IHsKICAgICJjcHVzZXQiOiAiIgogIH0KfQo= | ||
verification: {} | ||
group: {} | ||
mode: 420 | ||
path: /etc/kubernetes/openshift-workload-pinning | ||
user: {} | ||
- contents: | ||
source: data:text/plain;charset=utf-8;base64,CltjcmlvLnJ1bnRpbWUud29ya2xvYWRzLm1hbmFnZW1lbnRdCmFjdGl2YXRpb25fYW5ub3RhdGlvbiA9ICJ0YXJnZXQud29ya2xvYWQub3BlbnNoaWZ0LmlvL21hbmFnZW1lbnQiCmFubm90YXRpb25fcHJlZml4ID0gInJlc291cmNlcy53b3JrbG9hZC5vcGVuc2hpZnQuaW8iCnJlc291cmNlcyA9IHsgImNwdXNoYXJlcyIgPSAwLCAiY3B1c2V0IiA9ICIiIH0K | ||
verification: {} | ||
group: {} | ||
mode: 420 | ||
path: /etc/crio/crio.conf.d/01-workload-pinning-default.conf | ||
user: {} | ||
systemd: {} | ||
extensions: null | ||
fips: false | ||
kernelArguments: null | ||
kernelType: "" | ||
osImageURL: "" |
42 changes: 42 additions & 0 deletions
42
.../bootstrap/extra-ctrcfg/01_01-worker-cpu-partitioning_workload_pinning_machineconfig.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfig | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
machineconfiguration.openshift.io/role: worker | ||
name: 01-worker-cpu-partitioning | ||
spec: | ||
baseOSExtensionsContainerImage: "" | ||
config: | ||
ignition: | ||
config: | ||
replace: | ||
verification: {} | ||
proxy: {} | ||
security: | ||
tls: {} | ||
timeouts: {} | ||
version: 3.2.0 | ||
passwd: {} | ||
storage: | ||
files: | ||
- contents: | ||
source: data:text/plain;charset=utf-8;base64,CnsKICAibWFuYWdlbWVudCI6IHsKICAgICJjcHVzZXQiOiAiIgogIH0KfQo= | ||
verification: {} | ||
group: {} | ||
mode: 420 | ||
path: /etc/kubernetes/openshift-workload-pinning | ||
user: {} | ||
- contents: | ||
source: data:text/plain;charset=utf-8;base64,CltjcmlvLnJ1bnRpbWUud29ya2xvYWRzLm1hbmFnZW1lbnRdCmFjdGl2YXRpb25fYW5ub3RhdGlvbiA9ICJ0YXJnZXQud29ya2xvYWQub3BlbnNoaWZ0LmlvL21hbmFnZW1lbnQiCmFubm90YXRpb25fcHJlZml4ID0gInJlc291cmNlcy53b3JrbG9hZC5vcGVuc2hpZnQuaW8iCnJlc291cmNlcyA9IHsgImNwdXNoYXJlcyIgPSAwLCAiY3B1c2V0IiA9ICIiIH0K | ||
verification: {} | ||
group: {} | ||
mode: 420 | ||
path: /etc/crio/crio.conf.d/01-workload-pinning-default.conf | ||
user: {} | ||
systemd: {} | ||
extensions: null | ||
fips: false | ||
kernelArguments: null | ||
kernelType: "" | ||
osImageURL: "" |
58 changes: 58 additions & 0 deletions
58
...nder-expected-output/bootstrap/extra-ctrcfg/openshift-bootstrap-master_kubeletconfig.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: KubeletConfig | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
performance.openshift.io/weak-owner-reference-name: openshift-bootstrap-master | ||
name: performance-openshift-bootstrap-master | ||
spec: | ||
kubeletConfig: | ||
apiVersion: kubelet.config.k8s.io/v1beta1 | ||
authentication: | ||
anonymous: {} | ||
webhook: | ||
cacheTTL: 0s | ||
x509: {} | ||
authorization: | ||
webhook: | ||
cacheAuthorizedTTL: 0s | ||
cacheUnauthorizedTTL: 0s | ||
containerRuntimeEndpoint: "" | ||
cpuManagerPolicy: static | ||
cpuManagerReconcilePeriod: 5s | ||
evictionHard: | ||
imagefs.available: 15% | ||
memory.available: 100Mi | ||
nodefs.available: 10% | ||
nodefs.inodesFree: 5% | ||
evictionPressureTransitionPeriod: 0s | ||
fileCheckFrequency: 0s | ||
httpCheckFrequency: 0s | ||
imageMinimumGCAge: 0s | ||
kind: KubeletConfiguration | ||
kubeReserved: | ||
memory: 500Mi | ||
logging: | ||
flushFrequency: 0 | ||
options: | ||
json: | ||
infoBufferSize: "0" | ||
verbosity: 0 | ||
memorySwap: {} | ||
nodeStatusReportFrequency: 0s | ||
nodeStatusUpdateFrequency: 0s | ||
reservedSystemCPUs: 2-7 | ||
runtimeRequestTimeout: 0s | ||
shutdownGracePeriod: 0s | ||
shutdownGracePeriodCriticalPods: 0s | ||
streamingConnectionIdleTimeout: 0s | ||
syncFrequency: 0s | ||
systemReserved: | ||
memory: 500Mi | ||
topologyManagerPolicy: best-effort | ||
volumeStatsAggPeriod: 0s | ||
machineConfigPoolSelector: | ||
matchLabels: | ||
pools.operator.machineconfiguration.openshift.io/master: "" | ||
status: | ||
conditions: null |
Oops, something went wrong.