Skip to content

Commit

Permalink
Liqonet: IPSet
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored and adamjensenbot committed Oct 24, 2023
1 parent 4f4b45d commit c6b63a1
Show file tree
Hide file tree
Showing 7 changed files with 602 additions and 5 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ run:
- "zz_generated.*.go"
skip-dirs:
- "pkg/client"
- "pkg/liqonet/ipset/kubernetes"

linters-settings:
exhaustive:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fmt: gci addlicense
go mod tidy
go fmt ./...
find . -type f -name '*.go' -a ! -name '*zz_generated*' -exec $(GCI) write -s standard -s default -s "prefix(github.com/liqotech/liqo)" {} \;
find . -type f -name '*.go' -exec $(ADDLICENSE) -l apache -c "The Liqo Authors" -y "2019-$(shell date +%Y)" {} \;
find . -type f -name '*.go' -exec $(ADDLICENSE) -ignore pkg/liqonet/ipset/kubernetes -l apache -c "The Liqo Authors" -y "2019-$(shell date +%Y)" {} \;

# Install golangci-lint if not available
golangci-lint:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ require (
k8s.io/component-helpers v0.28.3
k8s.io/klog/v2 v2.100.1
k8s.io/kubectl v0.28.3
k8s.io/kubernetes v1.27.6
k8s.io/metrics v0.28.3
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2
sigs.k8s.io/aws-iam-authenticator v0.6.12
Expand Down Expand Up @@ -169,6 +168,7 @@ require (
github.com/josharian/intern v1.0.0 // indirect
github.com/josharian/native v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/karrick/godirwalk v1.17.0 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/klauspost/compress v1.16.0 // indirect
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1296,8 +1296,6 @@ k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 h1:LyMgNKD2P8Wn1iAwQU5Ohx
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9/go.mod h1:wZK2AVp1uHCp4VamDVgBP2COHZjqD1T68Rf0CM3YjSM=
k8s.io/kubectl v0.28.3 h1:H1Peu1O3EbN9zHkJCcvhiJ4NUj6lb88sGPO5wrWIM6k=
k8s.io/kubectl v0.28.3/go.mod h1:RDAudrth/2wQ3Sg46fbKKl4/g+XImzvbsSRZdP2RiyE=
k8s.io/kubernetes v1.27.6 h1:S89BDD6Rl316AMoxbkddiNhGyUHmxV3fdxGtrx8aqq8=
k8s.io/kubernetes v1.27.6/go.mod h1:otFZGfN11HvC2Es0PN7FpbkSDRT7LYG7xyc9pCd6f4E=
k8s.io/metrics v0.28.3 h1:w2s3kVi7HulXqCVDFkF4hN/OsL1tXTTb4Biif995h/g=
k8s.io/metrics v0.28.3/go.mod h1:OZZ23AHFojPzU6r3xoHGRUcV3I9pauLua+07sAUbwLc=
k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
Expand Down
3 changes: 2 additions & 1 deletion pkg/liqonet/ipset/ipset.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
package ipset

import (
"k8s.io/kubernetes/pkg/util/ipset"
"k8s.io/utils/exec"

ipset "github.com/liqotech/liqo/pkg/liqonet/ipset/kubernetes"
)

// IPSHandler is a handler exposing functions to use the ipset utility.
Expand Down

0 comments on commit c6b63a1

Please sign in to comment.