Skip to content

Commit 3e644a5

Browse files
chore(Kubeconform): Update (#113)
1 parent 7c41301 commit 3e644a5

File tree

11 files changed

+30
-20
lines changed

11 files changed

+30
-20
lines changed

ansible/playbooks/desktop/kubernetes.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
- name: Download Kubeconform
6464
get_url:
65-
url: https://github.com/yannh/kubeconform/releases/download/v0.6.2/kubeconform-linux-amd64.tar.gz
65+
url: https://github.com/yannh/kubeconform/releases/download/v0.6.7/kubeconform-linux-amd64.tar.gz
6666
dest: /tmp/kubeconform-linux-amd64.tar.gz
6767
check_mode: false
6868

ansible/playbooks/laptop/kubernetes.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
- name: Download Kubeconform
7676
get_url:
77-
url: https://github.com/yannh/kubeconform/releases/download/v0.6.2/kubeconform-linux-arm64.tar.gz
77+
url: https://github.com/yannh/kubeconform/releases/download/v0.6.7/kubeconform-linux-arm64.tar.gz
7878
dest: /tmp/kubeconform-linux-arm64.tar.gz
7979
check_mode: false
8080

ansible/playbooks/vscode-server/kubernetes.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
- name: Download Kubeconform
6464
get_url:
65-
url: https://github.com/yannh/kubeconform/releases/download/v0.6.2/kubeconform-linux-amd64.tar.gz
65+
url: https://github.com/yannh/kubeconform/releases/download/v0.6.7/kubeconform-linux-amd64.tar.gz
6666
dest: /tmp/kubeconform-linux-amd64.tar.gz
6767
check_mode: false
6868

containers/toolbox/containerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ENV \
1212
GO_VERSION=1.23.3 \
1313
GH_VERSION=2.62.0 \
1414
# 0.6.3 Not Working
15-
KUBECONFORM_VERSION=0.6.2 \
15+
KUBECONFORM_VERSION=0.6.7 \
1616
MARKDOWNLINT_CLI_VERSION=0.43.0 \
1717
PRETTIER_CLI_VERSION=3.3.3 \
1818
HOME=/tmp \

containers/udi/containerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV \
1313
GO_VERSION=1.23.3 \
1414
GH_VERSION=2.62.0 \
1515
# 0.6.3 Not Working
16-
KUBECONFORM_VERSION=0.6.2 \
16+
KUBECONFORM_VERSION=0.6.7 \
1717
MARKDOWNLINT_CLI_VERSION=0.43.0 \
1818
PRETTIER_CLI_VERSION=3.3.3 \
1919
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin \

kubernetes/ceph/base/scc.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ allowHostPID: false
1717
allowHostNetwork: false
1818
# set to true if running rook with the provider as host
1919
allowHostPorts: false
20-
priority:
20+
priority: 0
2121
allowedCapabilities: ["MKNOD"]
2222
allowHostIPC: true
2323
readOnlyRootFilesystem: false
@@ -61,9 +61,11 @@ allowPrivilegedContainer: true
6161
allowHostNetwork: true
6262
# This need to be set to true as we use HostPath
6363
allowHostDirVolumePlugin: true
64-
priority:
64+
priority: 0
6565
# SYS_ADMIN is needed for rbd to execute rbd map command
6666
allowedCapabilities: ["SYS_ADMIN"]
67+
defaultAddCapabilities: []
68+
requiredDropCapabilities: []
6769
# Needed as we run liveness container on daemonset pods
6870
allowHostPorts: true
6971
# Needed as we are setting this in RBD plugin pod

kubernetes/kubevirt/base/hyperconverged.yaml

+9-3
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
kind: HyperConverged
33
metadata:
44
annotations:
5-
deployOVS: "false"
6-
argocd.argoproj.io/sync-wave: "2"
75
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
8-
name: kubevirt-hyperconverged
6+
argocd.argoproj.io/sync-wave: "2"
7+
deployOVS: "false"
8+
name: kubevirt-hyperconverged\
99
namespace: kubevirt-hyperconverged
1010
labels:
1111
app: kubevirt-hyperconverged
12+
argocd.argoproj.io/instance: kubevirt
1213
spec:
1314
virtualMachineOptions:
1415
disableFreePageReporting: false
1516
disableSerialConsoleLog: true
17+
higherWorkloadDensity:
18+
memoryOvercommitPercentage: 100
1619
liveMigrationConfig:
1720
allowAutoConverge: false
1821
allowPostCopy: false
@@ -33,15 +36,18 @@ spec:
3336
deployTektonTaskResources: false
3437
enableCommonBootImageImport: true
3538
withHostPassthroughCPU: false
39+
downwardMetrics: false
3640
disableMDevConfiguration: false
3741
enableApplicationAwareQuota: false
3842
deployKubeSecondaryDNS: false
3943
nonRoot: true
4044
alignCPUs: false
4145
enableManagedTenantQuota: false
46+
primaryUserDefinedNetworkBinding: false
4247
deployVmConsoleProxy: false
4348
persistentReservation: false
4449
autoResourceLimits: false
50+
deployKubevirtIpamController: false
4551
workloadUpdateStrategy:
4652
batchEvictionInterval: 1m0s
4753
batchEvictionSize: 10

main.bash

+5-3
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ test_overlays() {
6969
done
7070

7171
echo "Run KubeConform on Yaml's"
72-
kubeconform -n 16 -verbose --summary -ignore-missing-schemas \
73-
-schema-location="../kubernetes-json-schema/master-standalone-strict/{{.ResourceKind}}{{.KindSuffix}}.json" \
72+
# -ignore-missing-schemas # -debug
73+
kubeconform -n 16 -verbose --summary -strict \
74+
-schema-location="../kubernetes-json-schema/master-standalone-strict/{{.ResourceKind}}-{{.Group}}-{{.ResourceAPIVersion}}.json" \
75+
-schema-location 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone-strict/{{.ResourceKind}}{{.KindSuffix}}.json' \
76+
-schema-location "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{.NormalizedKubernetesVersion}}/{{.ResourceKind}}.json" \
7477
-output text "${DIR}" | grep -v "is valid"
75-
7678
else
7779
echo "Vault Variables Missing"
7880
exit 1

okd/okd-configuration/components/scc/anyuid_scc.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ allowHostPID: false
88
allowHostPorts: false
99
allowPrivilegeEscalation: true
1010
allowPrivilegedContainer: false
11-
allowedCapabilities: null
11+
allowedCapabilities: []
1212
apiVersion: security.openshift.io/v1
13-
defaultAddCapabilities: null
13+
defaultAddCapabilities: []
1414
fsGroup:
1515
type: RunAsAny
1616
groups:

okd/okd-configuration/overlays/sandbox/kustomization.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ patches:
2929
- op: replace
3030
path: /spec/dnsNames/0
3131
value: "*.apps.okd.sandbox.arthurvardevanyan.com"
32-
- op: replace
33-
path: /spec/dnsNames/1
34-
value: "*.sandbox.arthurvardevanyan.com"
3532
- target:
3633
kind: MachineConfig
3734
name: 71-mount-storage-worker

tekton/base/overlay-test.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,11 @@ spec:
103103
fi
104104
done
105105
106-
kubeconform -n 16 -verbose --summary -ignore-missing-schemas \
107-
-schema-location="../kubernetes-json-schema/master-standalone-strict/{{.ResourceKind}}{{.KindSuffix}}.json" \
106+
# -ignore-missing-schemas # -debug
107+
kubeconform -n 16 -verbose --summary -strict \
108+
-schema-location="../kubernetes-json-schema/master-standalone-strict/{{.ResourceKind}}-{{.Group}}-{{.ResourceAPIVersion}}.json" \
109+
-schema-location 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone-strict/{{.ResourceKind}}{{.KindSuffix}}.json' \
110+
-schema-location "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{.NormalizedKubernetesVersion}}/{{.ResourceKind}}.json" \
108111
-output text "${DIR}" | grep -v "is valid"
109112
110113
volumes:

0 commit comments

Comments
 (0)