Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into downstream_merge_…
Browse files Browse the repository at this point in the history
…20240415
  • Loading branch information
ricky-rav committed Apr 15, 2024
2 parents f4dee0f + 8e1ad05 commit ad6eb23
Show file tree
Hide file tree
Showing 26 changed files with 4,436 additions and 1,946 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
packages: write

env:
GO_VERSION: 1.20.6
GO_VERSION: 1.21
REGISTRY: ghcr.io
OWNER: ovn-org
REPOSITORY: ovn-kubernetes
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ concurrency:
cancel-in-progress: true

env:
GO_VERSION: "1.20.6"
K8S_VERSION: v1.28.0
GO_VERSION: "1.21"
K8S_VERSION: v1.29.2
KIND_CLUSTER_NAME: ovn
KIND_INSTALL_INGRESS: true
KIND_ALLOW_SYSTEM_WRITES: true
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Verify
uses: golangci/golangci-lint-action@v4
with:
version: v1.52
version: v1.56.1
working-directory: go-controller
args: --modules-download-mode=vendor --timeout=15m0s --verbose

Expand Down
2 changes: 1 addition & 1 deletion contrib/kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ set_default_params() {
fi
RUN_IN_CONTAINER=${RUN_IN_CONTAINER:-false}
KIND_IMAGE=${KIND_IMAGE:-kindest/node}
K8S_VERSION=${K8S_VERSION:-v1.28.0}
K8S_VERSION=${K8S_VERSION:-v1.29.2}
OVN_GATEWAY_MODE=${OVN_GATEWAY_MODE:-shared}
KIND_INSTALL_INGRESS=${KIND_INSTALL_INGRESS:-false}
KIND_INSTALL_METALLB=${KIND_INSTALL_METALLB:-false}
Expand Down
6 changes: 3 additions & 3 deletions docs/kind.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ sudo ln -s /usr/bin/kubectl-v1.17.3 /usr/bin/kubectl
Download and install latest version of `kubectl`:

```
$ K8S_VERSION=v1.28.3
$ K8S_VERSION=v1.29.2
$ curl -LO https://storage.googleapis.com/kubernetes-release/release/$K8S_VERSION/bin/linux/amd64/kubectl
$ chmod +x kubectl
$ sudo mv kubectl /usr/bin/kubectl-$K8S_VERSION
Expand Down Expand Up @@ -411,7 +411,7 @@ $ cd ../dist/images/
$ make fedora
$ cd ../../contrib/
$ KIND_IPV4_SUPPORT=true KIND_IPV6_SUPPORT=true K8S_VERSION=v1.28.0 ./kind.sh
$ KIND_IPV4_SUPPORT=true KIND_IPV6_SUPPORT=true K8S_VERSION=v1.29.2 ./kind.sh
```

Once `kind.sh` completes, setup kube config file:
Expand All @@ -437,7 +437,7 @@ one (or both of) the following variables:

```
$ cd ../../contrib/
$ KIND_IMAGE=example.com/kindest/node K8S_VERSION=v1.28.3 ./kind.sh
$ KIND_IMAGE=example.com/kindest/node K8S_VERSION=v1.29.2 ./kind.sh
```

### Using kind local registry to deploy non ovn-k containers
Expand Down
6 changes: 3 additions & 3 deletions go-controller/pkg/node/gateway_shared_intf.go
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ func (npw *nodePortWatcher) DeleteEndpointSlice(epSlice *discovery.EndpointSlice

// GetLocalEndpointAddresses returns a list of eligible endpoints that are local to the node
func (npw *nodePortWatcher) GetLocalEligibleEndpointAddresses(endpointSlices []*discovery.EndpointSlice, service *kapi.Service) sets.Set[string] {
return util.GetLocalEligibleEndpointAddresses(endpointSlices, service, npw.nodeIPManager.nodeName)
return util.GetLocalEligibleEndpointAddressesFromSlices(endpointSlices, service, npw.nodeIPManager.nodeName)
}

func (npw *nodePortWatcher) UpdateEndpointSlice(oldEpSlice, newEpSlice *discovery.EndpointSlice) error {
Expand All @@ -917,8 +917,8 @@ func (npw *nodePortWatcher) UpdateEndpointSlice(oldEpSlice, newEpSlice *discover
namespacedName.Namespace, namespacedName.Name, newEpSlice.Name, err)
}

oldEndpointAddresses := util.GetEligibleEndpointAddresses([]*discovery.EndpointSlice{oldEpSlice}, svc)
newEndpointAddresses := util.GetEligibleEndpointAddresses([]*discovery.EndpointSlice{newEpSlice}, svc)
oldEndpointAddresses := util.GetEligibleEndpointAddressesFromSlices([]*discovery.EndpointSlice{oldEpSlice}, svc)
newEndpointAddresses := util.GetEligibleEndpointAddressesFromSlices([]*discovery.EndpointSlice{newEpSlice}, svc)
if reflect.DeepEqual(oldEndpointAddresses, newEndpointAddresses) {
return nil
}
Expand Down

0 comments on commit ad6eb23

Please sign in to comment.