Skip to content

Commit

Permalink
append pod/exec resource for vpc nat gw
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Aug 6, 2021
1 parent 7831f80 commit 2ba31cc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ rules:
- ""
resources:
- pods
- pods/exec
- namespaces
- nodes
- configmaps
Expand Down Expand Up @@ -1235,6 +1236,7 @@ rules:
- ""
resources:
- pods
- pods/exec
- namespaces
- nodes
- configmaps
Expand Down
3 changes: 1 addition & 2 deletions pkg/controller/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -1002,9 +1002,8 @@ func (c *Controller) deleteStaticRoute(ip, router string, subnet *kubeovnv1.Subn
}

func (c *Controller) reconcileVlan(subnet *kubeovnv1.Subnet) error {
klog.Infof("reconcile vlan, %v", subnet.Spec.Vlan)

if subnet.Spec.Vlan != "" {
klog.Infof("reconcile vlan, %v", subnet.Spec.Vlan)
//create subnet localnet
if err := c.addLocalnet(subnet); err != nil {
klog.Errorf("failed add localnet to subnet, %v", err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/vpc_nat_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ func (c *Controller) genNatGwDeployment(gw *kubeovnv1.VpcNatGateway) (dp *v1.Dep
Image: vpcNatImage,
Command: []string{"bash"},
Args: []string{"-c", "while true; do sleep 10000; done"},
ImagePullPolicy: corev1.PullAlways,
ImagePullPolicy: corev1.PullIfNotPresent,
SecurityContext: &corev1.SecurityContext{
Privileged: &privileged,
AllowPrivilegeEscalation: &allowPrivilegeEscalation,
Expand Down
1 change: 1 addition & 0 deletions yamls/ovn-dpdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ rules:
- ""
resources:
- pods
- pods/exec
- namespaces
- nodes
- configmaps
Expand Down
1 change: 1 addition & 0 deletions yamls/ovn-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ rules:
- ""
resources:
- pods
- pods/exec
- namespaces
- nodes
- configmaps
Expand Down

0 comments on commit 2ba31cc

Please sign in to comment.