Skip to content

Commit

Permalink
DNM: lets use the upstream yaml as much as possible
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Duarte Barroso <[email protected]>
  • Loading branch information
maiqueb committed Oct 17, 2022
1 parent 266cf14 commit f8568c2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
13 changes: 8 additions & 5 deletions data/multus/001-multus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ spec:
mountPath: /host/etc/cni/net.d
- name: host-run
mountPath: /host/run
- name: cnicache
mountPath: /host/var/lib/cni
- name: host-var-lib-cni-multus
mountPath: /var/lib/cni/multus
- name: host-var-lib-kubelet
mountPath: /var/lib/kubelet
- name: host-run-k8s-cni-cncf-io
mountPath: /run/k8s.cni.cncf.io
- name: host-run-netns
Expand Down Expand Up @@ -181,14 +183,15 @@ spec:
- name: cnibin
hostPath:
path: {{ .CNIBinDir }}
- name: cnicache
- name: hostroot
hostPath:
path: /
- name: multus-daemon-config
configMap:
name: multus-daemon-config
items:
- key: daemon-config.json
path: daemon-config.json
hostPath:
path: /var/lib/cni
- name: host-run
hostPath:
path: /run
Expand Down
6 changes: 0 additions & 6 deletions hack/components/bump-multus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,8 @@ function __parametize_by_object() {
yaml-utils::set_param ${f} spec.template.spec.containers[0].imagePullPolicy '{{ .ImagePullPolicy }}'
yaml-utils::update_param ${f} spec.template.spec.initContainers[0].image '{{ .MultusImage }}'
yaml-utils::set_param ${f} spec.template.spec.priorityClassName 'system-cluster-critical'
yaml-utils::delete_param ${f} spec.template.spec.containers[0].volumeMounts[2]
yaml-utils::set_param ${f} spec.template.spec.containers[0].volumeMounts[2].name 'cnicache'
yaml-utils::set_param ${f} spec.template.spec.containers[0].volumeMounts[2].mountPath '/host/var/lib/cni'
yaml-utils::update_param ${f} spec.template.spec.volumes[0].hostPath.path '{{ .CNIConfigDir }}'
yaml-utils::update_param ${f} spec.template.spec.volumes[1].hostPath.path '{{ .CNIBinDir }}'
yaml-utils::delete_param ${f} spec.template.spec.volumes[2]
yaml-utils::set_param ${f} spec.template.spec.volumes[2].name 'cnicache'
yaml-utils::set_param ${f} spec.template.spec.volumes[2].hostPath.path '/var/lib/cni'
yaml-utils::delete_param ${f} spec.template.spec.containers[0].resources.limits
yaml-utils::update_param ${f} spec.template.spec.containers[0].resources.requests.cpu '"10m"'
yaml-utils::update_param ${f} spec.template.spec.containers[0].resources.requests.memory '"15Mi"'
Expand Down
2 changes: 1 addition & 1 deletion pkg/components/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var (
)

const (
MultusImageDefault = "ghcr.io/k8snetworkplumbingwg/multus-cni@sha256:ccc6ac85da5f32c86d65b291b0a9555f75bb878b66f0af2d05698d05f8ab440b"
MultusImageDefault = "ghcr.io/k8snetworkplumbingwg/multus-cni@sha256:09a572e8bdf8a398db024ca252d06cf3ac0a03e07ae547d6a84221d4f6a9f96f"
LinuxBridgeCniImageDefault = "quay.io/kubevirt/cni-default-plugins@sha256:5d9442c26f8750d44f97175f36dbd74bef503f782b9adefcfd08215d065c437a"
LinuxBridgeMarkerImageDefault = "quay.io/kubevirt/bridge-marker@sha256:5d24c6d1ecb0556896b7b81c7e5260b54173858425777b7a84df8a706c07e6d2"
KubeMacPoolImageDefault = "quay.io/kubevirt/kubemacpool@sha256:fb07b1be9e0990e3846ef628e993694bf0765602af5907abf98f7e218db0cb4a"
Expand Down
4 changes: 2 additions & 2 deletions test/releases/99.0.0.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ func init() {
ParentName: "multus",
ParentKind: "DaemonSet",
Name: "kube-multus",
Image: "ghcr.io/k8snetworkplumbingwg/multus-cni@sha256:ccc6ac85da5f32c86d65b291b0a9555f75bb878b66f0af2d05698d05f8ab440b",
Image: "ghcr.io/k8snetworkplumbingwg/multus-cni@sha256:09a572e8bdf8a398db024ca252d06cf3ac0a03e07ae547d6a84221d4f6a9f96f",
},
{
ParentName: "multus",
ParentKind: "DaemonSet",
Name: "install-multus-binary",
Image: "ghcr.io/k8snetworkplumbingwg/multus-cni@sha256:ccc6ac85da5f32c86d65b291b0a9555f75bb878b66f0af2d05698d05f8ab440b",
Image: "ghcr.io/k8snetworkplumbingwg/multus-cni@sha256:09a572e8bdf8a398db024ca252d06cf3ac0a03e07ae547d6a84221d4f6a9f96f",
},
{
ParentName: "bridge-marker",
Expand Down

0 comments on commit f8568c2

Please sign in to comment.