Skip to content

Commit

Permalink
fix: applying configMap change through patch directly
Browse files Browse the repository at this point in the history
  • Loading branch information
scoquelin committed Oct 23, 2024
1 parent 0a953d1 commit c8c7f0f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
12 changes: 0 additions & 12 deletions gitops/components/multus/daemon-config.json

This file was deleted.

27 changes: 20 additions & 7 deletions gitops/components/multus/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ images:
- name: ghcr.io/k8snetworkplumbingwg/multus-cni
newTag: v4.1.3-thick

configMapGenerator:
- name: multus-daemon-config
namespace: kube-system
behavior: replace
files:
- daemon-config.json

patches:
- target:
group: apps
Expand All @@ -28,6 +21,26 @@ patches:
kind: DaemonSet
name: kube-multus-ds
path: ./overlays/multus-daemonset-readiness.yaml
- patch: |-
apiVersion: v1
kind: ConfigMap
metadata:
name: multus-daemon-config
namespace: kube-system
data:
daemon-config.json: |
{
"chrootDir": "/hostroot",
"cniVersion": "1.0.0",
"logFile": "/var/log/aws-routed-eni/multus.log",
"logLevel": "error",
"logToStderr": true,
"cniConfigDir": "/host/etc/cni/net.d",
"multusAutoconfigDir": "/host/etc/cni/net.d",
"multusMasterCNI": "10-aws.conflist",
"multusConfigFile": "auto",
"socketDir": "/host/run/multus/"
}
- target:
group: argoproj.io
version: v1alpha1
Expand Down

0 comments on commit c8c7f0f

Please sign in to comment.