Skip to content

Commit

Permalink
host: tell sdnagent to use common.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
yousong committed Apr 26, 2020
1 parent 3794cff commit a260f9c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/manager/component/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,12 @@ func (m *hostManager) newHostPrivilegedDaemonSet(
Name: "sdnagent",
Image: dsSpec.SdnAgent.Image,
ImagePullPolicy: dsSpec.SdnAgent.ImagePullPolicy,
Command: []string{"/opt/yunion/bin/sdnagent"},
VolumeMounts: volMounts,
Command: []string{
"/opt/yunion/bin/sdnagent",
"--common-config-file",
"/etc/yunion/common/common.conf",
},
VolumeMounts: volMounts,
SecurityContext: &corev1.SecurityContext{
Privileged: &privileged,
},
Expand Down

0 comments on commit a260f9c

Please sign in to comment.