Skip to content

Commit

Permalink
Merge pull request #957 from kubeovn/vpc-nat-gw
Browse files Browse the repository at this point in the history
append pod/exec resource for vpc nat gw
  • Loading branch information
hongzhen-ma authored Aug 5, 2021
2 parents 2340495 + 59869da commit 63d391d
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 @@ -761,6 +761,7 @@ rules:
- ""
resources:
- pods
- pods/exec
- namespaces
- nodes
- configmaps
Expand Down Expand Up @@ -1241,6 +1242,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 @@ -1014,9 +1014,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 63d391d

Please sign in to comment.