-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support configuring cgroupMode (#69)
* Support configuring cgroupMode * Add suggestions from review --------- Co-authored-by: Stephan Feurer <stephan.feurer@vshn.ch>
- Loading branch information
1 parent
928eb62
commit 3241755
Showing
11 changed files
with
121 additions
and
1 deletion.
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
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
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,18 @@ | ||
local common = import 'common.libsonnet'; | ||
local com = import 'lib/commodore.libjsonnet'; | ||
local kap = import 'lib/kapitan.libjsonnet'; | ||
local kube = import 'lib/kube.libjsonnet'; | ||
local inv = kap.inventory(); | ||
|
||
local params = inv.parameters.openshift4_nodes; | ||
|
||
local nodeConfig = kube._Object('config.openshift.io/v1', 'Node', 'cluster') { | ||
metadata+: { | ||
labels+: common.DefaultLabels, | ||
}, | ||
spec: params.nodeConfig, | ||
}; | ||
|
||
{ | ||
'10_nodeconfig': nodeConfig, | ||
} |
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
12 changes: 12 additions & 0 deletions
12
tests/golden/defaults/openshift4-nodes/openshift4-nodes/10_nodeconfig.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,12 @@ | ||
apiVersion: config.openshift.io/v1 | ||
kind: Node | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/component: openshift4-nodes | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: openshift4-nodes | ||
name: cluster | ||
name: cluster | ||
spec: | ||
cgroupMode: v1 |
12 changes: 12 additions & 0 deletions
12
tests/golden/gcp/openshift4-nodes/openshift4-nodes/10_nodeconfig.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,12 @@ | ||
apiVersion: config.openshift.io/v1 | ||
kind: Node | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/component: openshift4-nodes | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: openshift4-nodes | ||
name: cluster | ||
name: cluster | ||
spec: | ||
cgroupMode: v1 |
12 changes: 12 additions & 0 deletions
12
tests/golden/machineconfig/openshift4-nodes/openshift4-nodes/10_nodeconfig.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,12 @@ | ||
apiVersion: config.openshift.io/v1 | ||
kind: Node | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/component: openshift4-nodes | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: openshift4-nodes | ||
name: cluster | ||
name: cluster | ||
spec: | ||
cgroupMode: v1 |
12 changes: 12 additions & 0 deletions
12
tests/golden/maxpods/openshift4-nodes/openshift4-nodes/10_nodeconfig.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,12 @@ | ||
apiVersion: config.openshift.io/v1 | ||
kind: Node | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/component: openshift4-nodes | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: openshift4-nodes | ||
name: cluster | ||
name: cluster | ||
spec: | ||
cgroupMode: v1 |
12 changes: 12 additions & 0 deletions
12
tests/golden/pidslimit/openshift4-nodes/openshift4-nodes/10_nodeconfig.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,12 @@ | ||
apiVersion: config.openshift.io/v1 | ||
kind: Node | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/component: openshift4-nodes | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: openshift4-nodes | ||
name: cluster | ||
name: cluster | ||
spec: | ||
cgroupMode: v1 |
12 changes: 12 additions & 0 deletions
12
tests/golden/remove-machineconfigpool/openshift4-nodes/openshift4-nodes/10_nodeconfig.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,12 @@ | ||
apiVersion: config.openshift.io/v1 | ||
kind: Node | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/component: openshift4-nodes | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: openshift4-nodes | ||
name: cluster | ||
name: cluster | ||
spec: | ||
cgroupMode: v1 |
12 changes: 12 additions & 0 deletions
12
tests/golden/syn-monitoring/openshift4-nodes/openshift4-nodes/10_nodeconfig.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,12 @@ | ||
apiVersion: config.openshift.io/v1 | ||
kind: Node | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/component: openshift4-nodes | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: openshift4-nodes | ||
name: cluster | ||
name: cluster | ||
spec: | ||
cgroupMode: v1 |