Skip to content

Commit 0197d0d

Browse files
Merge pull request #618 from bpickard22/kube-bump
SDN-4404: Kube 1.29 bump
2 parents 981bec2 + f1a3ea7 commit 0197d0d

File tree

957 files changed

+75356
-28710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

957 files changed

+75356
-28710
lines changed

go.mod

Lines changed: 76 additions & 74 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 135 additions & 589 deletions
Large diffs are not rendered by default.

pkg/cmd/openshift-sdn-node/kube_proxy.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type ProxyServer struct {
6565
MetricsBindAddress string
6666
EnableProfiling bool
6767
ConfigSyncPeriod time.Duration
68-
HealthzServer healthcheck.ProxierHealthUpdater
68+
HealthzServer *healthcheck.ProxierHealthServer
6969

7070
// Not in the upstream version
7171
baseProxy sdnproxy.HybridizableProxy
@@ -97,9 +97,9 @@ func newProxyServer(config *kubeproxyconfig.KubeProxyConfiguration, client clien
9797
Namespace: "",
9898
}
9999

100-
var healthzServer healthcheck.ProxierHealthUpdater
100+
var healthzServer *healthcheck.ProxierHealthServer
101101
if len(config.HealthzBindAddress) > 0 {
102-
healthzServer = healthcheck.NewProxierHealthServer(config.HealthzBindAddress, 2*config.IPTables.SyncPeriod.Duration, recorder, nodeRef)
102+
healthzServer = healthcheck.NewProxierHealthServer(config.HealthzBindAddress, 2*config.IPTables.SyncPeriod.Duration)
103103
}
104104

105105
var proxier sdnproxy.HybridizableProxy
@@ -142,6 +142,7 @@ func newProxyServer(config *kubeproxyconfig.KubeProxyConfiguration, client clien
142142
recorder,
143143
healthzServer,
144144
config.NodePortAddresses,
145+
false,
145146
)
146147
if err != nil {
147148
return nil, fmt.Errorf("unable to create proxier: %v", err)
@@ -173,7 +174,7 @@ func newProxyServer(config *kubeproxyconfig.KubeProxyConfiguration, client clien
173174

174175
// serveHealthz runs the healthz server. This is an exact copy of serveHealthz() from
175176
// k8s.io/kubernetes/cmd/kube-proxy/app/server.go
176-
func serveHealthz(hz healthcheck.ProxierHealthUpdater, errCh chan error) {
177+
func serveHealthz(hz *healthcheck.ProxierHealthServer, errCh chan error) {
177178
if hz == nil {
178179
return
179180
}

pkg/cmd/openshift-sdn-node/proxy.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package openshift_sdn_node
22

33
import (
4-
"github.com/spf13/pflag"
54
"net"
65
"time"
76

7+
"github.com/spf13/pflag"
8+
89
corev1 "k8s.io/api/core/v1"
910
utilnet "k8s.io/apimachinery/pkg/util/net"
1011
"k8s.io/client-go/kubernetes/scheme"
@@ -135,6 +136,14 @@ func (d *sdnLocalDetector) IfNotLocal() []string {
135136
return []string{"!", "-i", sdnnode.Tun0}
136137
}
137138

139+
func (d *sdnLocalDetector) IfLocalNFT() []string {
140+
return nil
141+
}
142+
143+
func (d *sdnLocalDetector) IfNotLocalNFT() []string {
144+
return nil
145+
}
146+
138147
func getLocalDetector() proxyutiliptables.LocalTrafficDetector {
139148
return &sdnLocalDetector{}
140149
}

pkg/network/node/egressip.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (eip *egressIPWatcher) runIPAssignmentResync(stopCh <-chan struct{}) {
197197

198198
subscribeErr := addrSubscribe()
199199
if subscribeErr != nil {
200-
klog.Error("Error during netlink subscribe: %v", subscribeErr)
200+
klog.Errorf("Error during netlink subscribe: %v", subscribeErr)
201201
}
202202

203203
for {
@@ -208,7 +208,7 @@ func (eip *egressIPWatcher) runIPAssignmentResync(stopCh <-chan struct{}) {
208208
case a, ok := <-addrChan:
209209
if !ok {
210210
if subscribeErr = addrSubscribe(); subscribeErr != nil {
211-
klog.Error("Error during netlink re-subscribe due to address channel closing: %v", subscribeErr)
211+
klog.Errorf("Error during netlink re-subscribe due to address channel closing: %v", subscribeErr)
212212
// limit the retry attempts
213213
time.Sleep(common.DefaultPollInterval)
214214
}

pkg/network/node/node.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"k8s.io/client-go/tools/record"
2222
kubeletapi "k8s.io/cri-api/pkg/apis"
2323
kruntimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
24-
ktypes "k8s.io/kubernetes/pkg/kubelet/types"
2524
"k8s.io/kubernetes/pkg/util/iptables"
2625
kexec "k8s.io/utils/exec"
2726

@@ -439,7 +438,7 @@ func (node *OsdnNode) killFailedPods(failed map[string]*kruntimeapi.PodSandbox)
439438
// See https://github.com/containernetworking/cni/issues/89
440439
func (node *OsdnNode) UpdatePod(pod corev1.Pod) error {
441440
filter := &kruntimeapi.PodSandboxFilter{
442-
LabelSelector: map[string]string{ktypes.KubernetesPodUIDLabel: string(pod.UID)},
441+
LabelSelector: map[string]string{"io.kubernetes.pod.uid": string(pod.UID)},
443442
}
444443
sandboxID, err := node.getPodSandboxID(filter)
445444
if err != nil {

vendor/github.com/cyphar/filepath-securejoin/.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

vendor/github.com/cyphar/filepath-securejoin/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cyphar/filepath-securejoin/VERSION

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cyphar/filepath-securejoin/join.go

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/danwinship/knftables/README.md

Lines changed: 177 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)