mirror of https://github.com/k3s-io/k3s.git
Update to v1.28.0-k3s1 (#8199)
* Update to v1.28.0 Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * Update golang to v1.20.7 Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * more changes Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * update wrangler Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * update wrangler Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * fix nodepassword test Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * fix nodepassword test Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * disable CGO before running golangci-lint Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * execlude CGO Enabled checks Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * Ignore reapply change error with logging Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * Update google api client Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> --------- Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
This commit is contained in:
parent
79fd7469e5
commit
af50e1b096
|
@ -48,7 +48,7 @@ jobs:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.20.6'
|
go-version: '1.20.7'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
cache: true
|
cache: true
|
||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
|
@ -75,4 +75,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
files: ./${{ matrix.itest }}.out
|
files: ./${{ matrix.itest }}.out
|
||||||
flags: inttests # optional
|
flags: inttests # optional
|
||||||
verbose: true # optional (default = false)
|
verbose: true # optional (default = false)
|
||||||
|
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.20.6'
|
go-version: '1.20.7'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
cache: true
|
cache: true
|
||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
|
|
|
@ -29,6 +29,10 @@
|
||||||
"linters": "typecheck",
|
"linters": "typecheck",
|
||||||
"text": "imported but not used"
|
"text": "imported but not used"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"linters": "typecheck",
|
||||||
|
"text": "build constraints exclude all Go files"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"linters": "revive",
|
"linters": "revive",
|
||||||
"text": "should have comment"
|
"text": "should have comment"
|
||||||
|
@ -39,4 +43,4 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
ARG GOLANG=golang:1.20.6-alpine3.18
|
ARG GOLANG=golang:1.20.7-alpine3.18
|
||||||
FROM ${GOLANG}
|
FROM ${GOLANG}
|
||||||
|
|
||||||
ARG http_proxy=$http_proxy
|
ARG http_proxy=$http_proxy
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ARG GOLANG=golang:1.20.4-alpine3.18
|
ARG GOLANG=golang:1.20.7-alpine3.18
|
||||||
FROM ${GOLANG} as infra
|
FROM ${GOLANG} as infra
|
||||||
|
|
||||||
ARG http_proxy=$http_proxy
|
ARG http_proxy=$http_proxy
|
||||||
|
@ -67,4 +67,4 @@ COPY --from=build ${SRC_DIR}/bin /bin
|
||||||
COPY --from=build ${SRC_DIR}/build/out /build/out
|
COPY --from=build ${SRC_DIR}/build/out /build/out
|
||||||
COPY --from=build ${SRC_DIR}/build/static /build/static
|
COPY --from=build ${SRC_DIR}/build/static /build/static
|
||||||
COPY --from=build ${SRC_DIR}/pkg/static /pkg/static
|
COPY --from=build ${SRC_DIR}/pkg/static /pkg/static
|
||||||
COPY --from=build ${SRC_DIR}/pkg/deploy /pkg/deploy
|
COPY --from=build ${SRC_DIR}/pkg/deploy /pkg/deploy
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ARG GOLANG=golang:1.20.6-alpine3.18
|
ARG GOLANG=golang:1.20.7-alpine3.18
|
||||||
FROM ${GOLANG}
|
FROM ${GOLANG}
|
||||||
|
|
||||||
COPY --from=plugins/manifest:1.2.3 /bin/* /bin/
|
COPY --from=plugins/manifest:1.2.3 /bin/* /bin/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ARG GOLANG=golang:1.20.6-alpine3.18
|
ARG GOLANG=golang:1.20.7-alpine3.18
|
||||||
FROM ${GOLANG} as test-base
|
FROM ${GOLANG} as test-base
|
||||||
|
|
||||||
RUN apk -U --no-cache add bash jq
|
RUN apk -U --no-cache add bash jq
|
||||||
|
@ -44,7 +44,7 @@ RUN vagrant box add generic/ubuntu2004 --provider libvirt --force
|
||||||
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"; \
|
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"; \
|
||||||
chmod +x ./kubectl; \
|
chmod +x ./kubectl; \
|
||||||
mv ./kubectl /usr/local/bin/kubectl
|
mv ./kubectl /usr/local/bin/kubectl
|
||||||
RUN GO_VERSION=go1.20.6; \
|
RUN GO_VERSION=go1.20.7; \
|
||||||
curl -O -L "https://golang.org/dl/${GO_VERSION}.linux-amd64.tar.gz"; \
|
curl -O -L "https://golang.org/dl/${GO_VERSION}.linux-amd64.tar.gz"; \
|
||||||
rm -rf /usr/local/go; \
|
rm -rf /usr/local/go; \
|
||||||
tar -C /usr/local -xzf ${GO_VERSION}.linux-amd64.tar.gz;
|
tar -C /usr/local -xzf ${GO_VERSION}.linux-amd64.tar.gz;
|
||||||
|
|
209
go.mod
209
go.mod
|
@ -4,9 +4,9 @@ go 1.20
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
github.com/Microsoft/hcsshim => github.com/Microsoft/hcsshim v0.8.25
|
github.com/Microsoft/hcsshim => github.com/Microsoft/hcsshim v0.8.25
|
||||||
github.com/Mirantis/cri-dockerd => github.com/k3s-io/cri-dockerd v0.3.4-k3s1 // k3s/release-1.27
|
github.com/Mirantis/cri-dockerd => github.com/k3s-io/cri-dockerd v0.3.4-k3s3 // k3s/release-1.28
|
||||||
github.com/cloudnativelabs/kube-router/v2 => github.com/k3s-io/kube-router/v2 v2.0.1-0.20230508174102-b42e5faded1c
|
github.com/cloudnativelabs/kube-router/v2 => github.com/k3s-io/kube-router/v2 v2.0.1-0.20230508174102-b42e5faded1c
|
||||||
github.com/containerd/containerd => github.com/k3s-io/containerd v1.7.3-k3s1
|
github.com/containerd/containerd => github.com/k3s-io/containerd v1.7.3-k3s2
|
||||||
github.com/containerd/stargz-snapshotter => github.com/k3s-io/stargz-snapshotter v0.13.0-k3s1
|
github.com/containerd/stargz-snapshotter => github.com/k3s-io/stargz-snapshotter v0.13.0-k3s1
|
||||||
github.com/coreos/go-systemd => github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
|
github.com/coreos/go-systemd => github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
|
||||||
github.com/docker/distribution => github.com/docker/distribution v2.8.2+incompatible
|
github.com/docker/distribution => github.com/docker/distribution v2.8.2+incompatible
|
||||||
|
@ -14,13 +14,13 @@ replace (
|
||||||
github.com/docker/libnetwork => github.com/docker/libnetwork v0.8.0-dev.2.0.20190624125649-f0e46a78ea34
|
github.com/docker/libnetwork => github.com/docker/libnetwork v0.8.0-dev.2.0.20190624125649-f0e46a78ea34
|
||||||
github.com/emicklei/go-restful/v3 => github.com/emicklei/go-restful/v3 v3.9.0
|
github.com/emicklei/go-restful/v3 => github.com/emicklei/go-restful/v3 v3.9.0
|
||||||
github.com/golang/protobuf => github.com/golang/protobuf v1.5.3
|
github.com/golang/protobuf => github.com/golang/protobuf v1.5.3
|
||||||
github.com/googleapis/gax-go/v2 => github.com/googleapis/gax-go/v2 v2.1.1
|
github.com/googleapis/gax-go/v2 => github.com/googleapis/gax-go/v2 v2.12.0
|
||||||
github.com/juju/errors => github.com/k3s-io/nocode v0.0.0-20200630202308-cb097102c09f
|
github.com/juju/errors => github.com/k3s-io/nocode v0.0.0-20200630202308-cb097102c09f
|
||||||
github.com/kubernetes-sigs/cri-tools => github.com/k3s-io/cri-tools v1.26.0-rc.0-k3s1
|
github.com/kubernetes-sigs/cri-tools => github.com/k3s-io/cri-tools v1.26.0-rc.0-k3s1
|
||||||
github.com/opencontainers/runc => github.com/opencontainers/runc v1.1.8
|
github.com/opencontainers/runc => github.com/opencontainers/runc v1.1.8
|
||||||
github.com/opencontainers/runtime-spec => github.com/opencontainers/runtime-spec v1.0.3-0.20220909204839-494a5a6aca78
|
github.com/opencontainers/runtime-spec => github.com/opencontainers/runtime-spec v1.0.3-0.20220909204839-494a5a6aca78
|
||||||
github.com/opencontainers/selinux => github.com/opencontainers/selinux v1.10.1
|
github.com/opencontainers/selinux => github.com/opencontainers/selinux v1.10.1
|
||||||
github.com/rancher/wrangler => github.com/rancher/wrangler v1.1.1-0.20230425173236-39a4707f0689
|
github.com/rancher/wrangler => github.com/rancher/wrangler v1.1.1-0.20230818201331-3604a6be798d
|
||||||
go.etcd.io/etcd/api/v3 => github.com/k3s-io/etcd/api/v3 v3.5.9-k3s1
|
go.etcd.io/etcd/api/v3 => github.com/k3s-io/etcd/api/v3 v3.5.9-k3s1
|
||||||
go.etcd.io/etcd/client/pkg/v3 => github.com/k3s-io/etcd/client/pkg/v3 v3.5.9-k3s1
|
go.etcd.io/etcd/client/pkg/v3 => github.com/k3s-io/etcd/client/pkg/v3 v3.5.9-k3s1
|
||||||
go.etcd.io/etcd/client/v2 => github.com/k3s-io/etcd/client/v2 v2.305.9-k3s1
|
go.etcd.io/etcd/client/v2 => github.com/k3s-io/etcd/client/v2 v2.305.9-k3s1
|
||||||
|
@ -47,42 +47,43 @@ replace (
|
||||||
golang.org/x/crypto => golang.org/x/crypto v0.1.0
|
golang.org/x/crypto => golang.org/x/crypto v0.1.0
|
||||||
golang.org/x/net => golang.org/x/net v0.8.0
|
golang.org/x/net => golang.org/x/net v0.8.0
|
||||||
golang.org/x/sys => golang.org/x/sys v0.6.0
|
golang.org/x/sys => golang.org/x/sys v0.6.0
|
||||||
google.golang.org/genproto => google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21
|
google.golang.org/genproto => google.golang.org/genproto v0.0.0-20230525234035-dd9d682886f9
|
||||||
google.golang.org/grpc => google.golang.org/grpc v1.51.0
|
google.golang.org/grpc => google.golang.org/grpc v1.51.0
|
||||||
gopkg.in/square/go-jose.v2 => gopkg.in/square/go-jose.v2 v2.6.0
|
gopkg.in/square/go-jose.v2 => gopkg.in/square/go-jose.v2 v2.6.0
|
||||||
k8s.io/api => github.com/k3s-io/kubernetes/staging/src/k8s.io/api v1.27.4-k3s1
|
k8s.io/api => github.com/k3s-io/kubernetes/staging/src/k8s.io/api v1.28.0-k3s1
|
||||||
k8s.io/apiextensions-apiserver => github.com/k3s-io/kubernetes/staging/src/k8s.io/apiextensions-apiserver v1.27.4-k3s1
|
k8s.io/apiextensions-apiserver => github.com/k3s-io/kubernetes/staging/src/k8s.io/apiextensions-apiserver v1.28.0-k3s1
|
||||||
k8s.io/apimachinery => github.com/k3s-io/kubernetes/staging/src/k8s.io/apimachinery v1.27.4-k3s1
|
k8s.io/apimachinery => github.com/k3s-io/kubernetes/staging/src/k8s.io/apimachinery v1.28.0-k3s1
|
||||||
k8s.io/apiserver => github.com/k3s-io/kubernetes/staging/src/k8s.io/apiserver v1.27.4-k3s1
|
k8s.io/apiserver => github.com/k3s-io/kubernetes/staging/src/k8s.io/apiserver v1.28.0-k3s1
|
||||||
k8s.io/cli-runtime => github.com/k3s-io/kubernetes/staging/src/k8s.io/cli-runtime v1.27.4-k3s1
|
k8s.io/cli-runtime => github.com/k3s-io/kubernetes/staging/src/k8s.io/cli-runtime v1.28.0-k3s1
|
||||||
k8s.io/client-go => github.com/k3s-io/kubernetes/staging/src/k8s.io/client-go v1.27.4-k3s1
|
k8s.io/client-go => github.com/k3s-io/kubernetes/staging/src/k8s.io/client-go v1.28.0-k3s1
|
||||||
k8s.io/cloud-provider => github.com/k3s-io/kubernetes/staging/src/k8s.io/cloud-provider v1.27.4-k3s1
|
k8s.io/cloud-provider => github.com/k3s-io/kubernetes/staging/src/k8s.io/cloud-provider v1.28.0-k3s1
|
||||||
k8s.io/cluster-bootstrap => github.com/k3s-io/kubernetes/staging/src/k8s.io/cluster-bootstrap v1.27.4-k3s1
|
k8s.io/cluster-bootstrap => github.com/k3s-io/kubernetes/staging/src/k8s.io/cluster-bootstrap v1.28.0-k3s1
|
||||||
k8s.io/code-generator => github.com/k3s-io/kubernetes/staging/src/k8s.io/code-generator v1.27.4-k3s1
|
k8s.io/code-generator => github.com/k3s-io/kubernetes/staging/src/k8s.io/code-generator v1.28.0-k3s1
|
||||||
k8s.io/component-base => github.com/k3s-io/kubernetes/staging/src/k8s.io/component-base v1.27.4-k3s1
|
k8s.io/component-base => github.com/k3s-io/kubernetes/staging/src/k8s.io/component-base v1.28.0-k3s1
|
||||||
k8s.io/component-helpers => github.com/k3s-io/kubernetes/staging/src/k8s.io/component-helpers v1.27.4-k3s1
|
k8s.io/component-helpers => github.com/k3s-io/kubernetes/staging/src/k8s.io/component-helpers v1.28.0-k3s1
|
||||||
k8s.io/controller-manager => github.com/k3s-io/kubernetes/staging/src/k8s.io/controller-manager v1.27.4-k3s1
|
k8s.io/controller-manager => github.com/k3s-io/kubernetes/staging/src/k8s.io/controller-manager v1.28.0-k3s1
|
||||||
k8s.io/cri-api => github.com/k3s-io/kubernetes/staging/src/k8s.io/cri-api v1.27.4-k3s1
|
k8s.io/cri-api => github.com/k3s-io/kubernetes/staging/src/k8s.io/cri-api v1.28.0-k3s1
|
||||||
k8s.io/csi-translation-lib => github.com/k3s-io/kubernetes/staging/src/k8s.io/csi-translation-lib v1.27.4-k3s1
|
k8s.io/csi-translation-lib => github.com/k3s-io/kubernetes/staging/src/k8s.io/csi-translation-lib v1.28.0-k3s1
|
||||||
k8s.io/dynamic-resource-allocation => github.com/k3s-io/kubernetes/staging/src/k8s.io/dynamic-resource-allocation v1.27.4-k3s1
|
k8s.io/dynamic-resource-allocation => github.com/k3s-io/kubernetes/staging/src/k8s.io/dynamic-resource-allocation v1.28.0-k3s1
|
||||||
|
k8s.io/endpointslice => github.com/k3s-io/kubernetes/staging/src/k8s.io/endpointslice v1.28.0-k3s1
|
||||||
k8s.io/klog => github.com/k3s-io/klog v1.0.0-k3s2 // k3s-release-1.x
|
k8s.io/klog => github.com/k3s-io/klog v1.0.0-k3s2 // k3s-release-1.x
|
||||||
k8s.io/klog/v2 => github.com/k3s-io/klog/v2 v2.90.1-k3s1 // k3s-main
|
k8s.io/klog/v2 => github.com/k3s-io/klog/v2 v2.100.1-k3s1 // k3s-main
|
||||||
k8s.io/kms => github.com/k3s-io/kubernetes/staging/src/k8s.io/kms v1.27.4-k3s1
|
k8s.io/kms => github.com/k3s-io/kubernetes/staging/src/k8s.io/kms v1.28.0-k3s1
|
||||||
k8s.io/kube-aggregator => github.com/k3s-io/kubernetes/staging/src/k8s.io/kube-aggregator v1.27.4-k3s1
|
k8s.io/kube-aggregator => github.com/k3s-io/kubernetes/staging/src/k8s.io/kube-aggregator v1.28.0-k3s1
|
||||||
k8s.io/kube-controller-manager => github.com/k3s-io/kubernetes/staging/src/k8s.io/kube-controller-manager v1.27.4-k3s1
|
k8s.io/kube-controller-manager => github.com/k3s-io/kubernetes/staging/src/k8s.io/kube-controller-manager v1.28.0-k3s1
|
||||||
k8s.io/kube-proxy => github.com/k3s-io/kubernetes/staging/src/k8s.io/kube-proxy v1.27.4-k3s1
|
k8s.io/kube-proxy => github.com/k3s-io/kubernetes/staging/src/k8s.io/kube-proxy v1.28.0-k3s1
|
||||||
k8s.io/kube-scheduler => github.com/k3s-io/kubernetes/staging/src/k8s.io/kube-scheduler v1.27.4-k3s1
|
k8s.io/kube-scheduler => github.com/k3s-io/kubernetes/staging/src/k8s.io/kube-scheduler v1.28.0-k3s1
|
||||||
k8s.io/kubectl => github.com/k3s-io/kubernetes/staging/src/k8s.io/kubectl v1.27.4-k3s1
|
k8s.io/kubectl => github.com/k3s-io/kubernetes/staging/src/k8s.io/kubectl v1.28.0-k3s1
|
||||||
k8s.io/kubelet => github.com/k3s-io/kubernetes/staging/src/k8s.io/kubelet v1.27.4-k3s1
|
k8s.io/kubelet => github.com/k3s-io/kubernetes/staging/src/k8s.io/kubelet v1.28.0-k3s1
|
||||||
k8s.io/kubernetes => github.com/k3s-io/kubernetes v1.27.4-k3s1
|
k8s.io/kubernetes => github.com/k3s-io/kubernetes v1.28.0-k3s1
|
||||||
k8s.io/legacy-cloud-providers => github.com/k3s-io/kubernetes/staging/src/k8s.io/legacy-cloud-providers v1.27.4-k3s1
|
k8s.io/legacy-cloud-providers => github.com/k3s-io/kubernetes/staging/src/k8s.io/legacy-cloud-providers v1.28.0-k3s1
|
||||||
k8s.io/metrics => github.com/k3s-io/kubernetes/staging/src/k8s.io/metrics v1.27.4-k3s1
|
k8s.io/metrics => github.com/k3s-io/kubernetes/staging/src/k8s.io/metrics v1.28.0-k3s1
|
||||||
k8s.io/mount-utils => github.com/k3s-io/kubernetes/staging/src/k8s.io/mount-utils v1.27.4-k3s1
|
k8s.io/mount-utils => github.com/k3s-io/kubernetes/staging/src/k8s.io/mount-utils v1.28.0-k3s1
|
||||||
k8s.io/node-api => github.com/k3s-io/kubernetes/staging/src/k8s.io/node-api v1.27.4-k3s1
|
k8s.io/node-api => github.com/k3s-io/kubernetes/staging/src/k8s.io/node-api v1.28.0-k3s1
|
||||||
k8s.io/pod-security-admission => github.com/k3s-io/kubernetes/staging/src/k8s.io/pod-security-admission v1.27.4-k3s1
|
k8s.io/pod-security-admission => github.com/k3s-io/kubernetes/staging/src/k8s.io/pod-security-admission v1.28.0-k3s1
|
||||||
k8s.io/sample-apiserver => github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-apiserver v1.27.4-k3s1
|
k8s.io/sample-apiserver => github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-apiserver v1.28.0-k3s1
|
||||||
k8s.io/sample-cli-plugin => github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-cli-plugin v1.27.4-k3s1
|
k8s.io/sample-cli-plugin => github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-cli-plugin v1.28.0-k3s1
|
||||||
k8s.io/sample-controller => github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller v1.27.4-k3s1
|
k8s.io/sample-controller => github.com/k3s-io/kubernetes/staging/src/k8s.io/sample-controller v1.28.0-k3s1
|
||||||
mvdan.cc/unparam => mvdan.cc/unparam v0.0.0-20210104141923-aac4ce9116a7
|
mvdan.cc/unparam => mvdan.cc/unparam v0.0.0-20210104141923-aac4ce9116a7
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -103,7 +104,7 @@ require (
|
||||||
github.com/go-bindata/go-bindata v3.1.2+incompatible
|
github.com/go-bindata/go-bindata v3.1.2+incompatible
|
||||||
github.com/go-sql-driver/mysql v1.7.1
|
github.com/go-sql-driver/mysql v1.7.1
|
||||||
github.com/go-test/deep v1.0.7
|
github.com/go-test/deep v1.0.7
|
||||||
github.com/google/cadvisor v0.47.2
|
github.com/google/cadvisor v0.47.3
|
||||||
github.com/google/uuid v1.3.0
|
github.com/google/uuid v1.3.0
|
||||||
github.com/gorilla/mux v1.8.0
|
github.com/gorilla/mux v1.8.0
|
||||||
github.com/gorilla/websocket v1.5.0
|
github.com/gorilla/websocket v1.5.0
|
||||||
|
@ -118,12 +119,12 @@ require (
|
||||||
github.com/natefinch/lumberjack v2.0.0+incompatible
|
github.com/natefinch/lumberjack v2.0.0+incompatible
|
||||||
github.com/onsi/ginkgo/v2 v2.9.4
|
github.com/onsi/ginkgo/v2 v2.9.4
|
||||||
github.com/onsi/gomega v1.27.6
|
github.com/onsi/gomega v1.27.6
|
||||||
github.com/opencontainers/runc v1.1.6
|
github.com/opencontainers/runc v1.1.7
|
||||||
github.com/opencontainers/selinux v1.11.0
|
github.com/opencontainers/selinux v1.11.0
|
||||||
github.com/otiai10/copy v1.7.0
|
github.com/otiai10/copy v1.7.0
|
||||||
github.com/pkg/errors v0.9.1
|
github.com/pkg/errors v0.9.1
|
||||||
github.com/rancher/dynamiclistener v0.3.6-rc2
|
github.com/rancher/dynamiclistener v0.3.6-rc2
|
||||||
github.com/rancher/lasso v0.0.0-20221227210133-6ea88ca2fbcc
|
github.com/rancher/lasso v0.0.0-20230629200414-8a54b32e6792
|
||||||
github.com/rancher/remotedialer v0.3.0
|
github.com/rancher/remotedialer v0.3.0
|
||||||
github.com/rancher/wharfie v0.5.3
|
github.com/rancher/wharfie v0.5.3
|
||||||
github.com/rancher/wrangler v1.1.1
|
github.com/rancher/wrangler v1.1.1
|
||||||
|
@ -141,38 +142,39 @@ require (
|
||||||
go.etcd.io/etcd/etcdutl/v3 v3.5.9
|
go.etcd.io/etcd/etcdutl/v3 v3.5.9
|
||||||
go.etcd.io/etcd/server/v3 v3.5.9
|
go.etcd.io/etcd/server/v3 v3.5.9
|
||||||
go.uber.org/zap v1.24.0
|
go.uber.org/zap v1.24.0
|
||||||
golang.org/x/crypto v0.10.0
|
golang.org/x/crypto v0.12.0
|
||||||
golang.org/x/net v0.10.0
|
golang.org/x/net v0.14.0
|
||||||
golang.org/x/sync v0.1.0
|
golang.org/x/sync v0.3.0
|
||||||
golang.org/x/sys v0.9.0
|
golang.org/x/sys v0.11.0
|
||||||
google.golang.org/grpc v1.53.0
|
google.golang.org/grpc v1.57.0
|
||||||
gopkg.in/yaml.v2 v2.4.0
|
gopkg.in/yaml.v2 v2.4.0
|
||||||
inet.af/tcpproxy v0.0.0-20200125044825-b6bb9b5b8252
|
inet.af/tcpproxy v0.0.0-20200125044825-b6bb9b5b8252
|
||||||
k8s.io/api v0.27.4
|
k8s.io/api v0.28.0
|
||||||
k8s.io/apimachinery v0.27.4
|
k8s.io/apimachinery v0.28.0
|
||||||
k8s.io/apiserver v0.27.4
|
k8s.io/apiserver v0.28.0
|
||||||
k8s.io/client-go v11.0.1-0.20190409021438-1a26190bd76a+incompatible
|
k8s.io/client-go v11.0.1-0.20190409021438-1a26190bd76a+incompatible
|
||||||
k8s.io/cloud-provider v0.27.4
|
k8s.io/cloud-provider v0.28.0
|
||||||
k8s.io/cluster-bootstrap v0.0.0
|
k8s.io/cluster-bootstrap v0.0.0
|
||||||
k8s.io/component-base v0.27.4
|
k8s.io/component-base v0.28.0
|
||||||
k8s.io/component-helpers v0.27.4
|
k8s.io/component-helpers v0.28.0
|
||||||
k8s.io/cri-api v0.27.4
|
k8s.io/cri-api v0.28.0
|
||||||
k8s.io/klog/v2 v2.90.1
|
k8s.io/klog/v2 v2.100.1
|
||||||
k8s.io/kubectl v0.25.0
|
k8s.io/kubectl v0.25.0
|
||||||
k8s.io/kubernetes v1.27.4
|
k8s.io/kubernetes v1.28.0
|
||||||
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5
|
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2
|
||||||
sigs.k8s.io/yaml v1.3.0
|
sigs.k8s.io/yaml v1.3.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go v0.97.0 // indirect
|
cloud.google.com/go/compute v1.23.0 // indirect
|
||||||
|
cloud.google.com/go/compute/metadata v0.2.3 // indirect
|
||||||
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230106234847-43070de90fa1 // indirect
|
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230106234847-43070de90fa1 // indirect
|
||||||
github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20221215162035-5330a85ea652 // indirect
|
github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20221215162035-5330a85ea652 // indirect
|
||||||
github.com/Azure/azure-sdk-for-go v55.0.0+incompatible // indirect
|
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect
|
||||||
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
|
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
|
||||||
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
|
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
|
||||||
github.com/Azure/go-autorest/autorest v0.11.27 // indirect
|
github.com/Azure/go-autorest/autorest v0.11.29 // indirect
|
||||||
github.com/Azure/go-autorest/autorest/adal v0.9.20 // indirect
|
github.com/Azure/go-autorest/autorest/adal v0.9.23 // indirect
|
||||||
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
|
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
|
||||||
github.com/Azure/go-autorest/autorest/mocks v0.4.2 // indirect
|
github.com/Azure/go-autorest/autorest/mocks v0.4.2 // indirect
|
||||||
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
|
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
|
||||||
|
@ -186,7 +188,7 @@ require (
|
||||||
github.com/Microsoft/hcsshim v0.10.0-rc.8 // indirect
|
github.com/Microsoft/hcsshim v0.10.0-rc.8 // indirect
|
||||||
github.com/NYTimes/gziphandler v1.1.1 // indirect
|
github.com/NYTimes/gziphandler v1.1.1 // indirect
|
||||||
github.com/Rican7/retry v0.1.0 // indirect
|
github.com/Rican7/retry v0.1.0 // indirect
|
||||||
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 // indirect
|
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect
|
||||||
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e // indirect
|
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e // indirect
|
||||||
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
|
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
|
||||||
github.com/avast/retry-go/v4 v4.3.2 // indirect
|
github.com/avast/retry-go/v4 v4.3.2 // indirect
|
||||||
|
@ -195,13 +197,13 @@ require (
|
||||||
github.com/blang/semver/v4 v4.0.0 // indirect
|
github.com/blang/semver/v4 v4.0.0 // indirect
|
||||||
github.com/bronze1man/goStrongswanVici v0.0.0-20201105010758-936f38b697fd // indirect
|
github.com/bronze1man/goStrongswanVici v0.0.0-20201105010758-936f38b697fd // indirect
|
||||||
github.com/canonical/go-dqlite v1.5.1 // indirect
|
github.com/canonical/go-dqlite v1.5.1 // indirect
|
||||||
github.com/cenkalti/backoff/v4 v4.2.0 // indirect
|
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
|
||||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||||
github.com/chai2010/gettext-go v1.0.2 // indirect
|
github.com/chai2010/gettext-go v1.0.2 // indirect
|
||||||
github.com/checkpoint-restore/go-criu/v5 v5.3.0 // indirect
|
github.com/checkpoint-restore/go-criu/v5 v5.3.0 // indirect
|
||||||
github.com/cilium/ebpf v0.9.1 // indirect
|
github.com/cilium/ebpf v0.9.1 // indirect
|
||||||
github.com/container-orchestrated-devices/container-device-interface v0.5.4 // indirect
|
github.com/container-orchestrated-devices/container-device-interface v0.5.4 // indirect
|
||||||
github.com/container-storage-interface/spec v1.7.0 // indirect
|
github.com/container-storage-interface/spec v1.8.0 // indirect
|
||||||
github.com/containerd/btrfs/v2 v2.0.0 // indirect
|
github.com/containerd/btrfs/v2 v2.0.0 // indirect
|
||||||
github.com/containerd/cgroups/v3 v3.0.2 // indirect
|
github.com/containerd/cgroups/v3 v3.0.2 // indirect
|
||||||
github.com/containerd/console v1.0.3 // indirect
|
github.com/containerd/console v1.0.3 // indirect
|
||||||
|
@ -218,8 +220,8 @@ require (
|
||||||
github.com/containernetworking/cni v1.1.2 // indirect
|
github.com/containernetworking/cni v1.1.2 // indirect
|
||||||
github.com/containernetworking/plugins v1.2.0 // indirect
|
github.com/containernetworking/plugins v1.2.0 // indirect
|
||||||
github.com/containers/ocicrypt v1.1.6 // indirect
|
github.com/containers/ocicrypt v1.1.6 // indirect
|
||||||
github.com/coreos/go-oidc v2.1.0+incompatible // indirect
|
github.com/coreos/go-oidc v2.2.1+incompatible // indirect
|
||||||
github.com/coreos/go-semver v0.3.0 // indirect
|
github.com/coreos/go-semver v0.3.1 // indirect
|
||||||
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
||||||
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
|
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
|
||||||
github.com/cyphar/filepath-securejoin v0.2.3 // indirect
|
github.com/cyphar/filepath-securejoin v0.2.3 // indirect
|
||||||
|
@ -232,46 +234,48 @@ require (
|
||||||
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
|
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
|
||||||
github.com/docker/go-metrics v0.0.1 // indirect
|
github.com/docker/go-metrics v0.0.1 // indirect
|
||||||
github.com/docker/go-units v0.5.0 // indirect
|
github.com/docker/go-units v0.5.0 // indirect
|
||||||
github.com/dustin/go-humanize v1.0.0 // indirect
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||||
github.com/emicklei/go-restful v2.16.0+incompatible // indirect
|
github.com/emicklei/go-restful v2.16.0+incompatible // indirect
|
||||||
github.com/emicklei/go-restful/v3 v3.10.2 // indirect
|
github.com/emicklei/go-restful/v3 v3.10.2 // indirect
|
||||||
github.com/euank/go-kmsg-parser v2.0.0+incompatible // indirect
|
github.com/euank/go-kmsg-parser v2.0.0+incompatible // indirect
|
||||||
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
|
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
|
||||||
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect
|
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect
|
||||||
github.com/fatih/camelcase v1.0.0 // indirect
|
github.com/fatih/camelcase v1.0.0 // indirect
|
||||||
github.com/felixge/httpsnoop v1.0.3 // indirect
|
github.com/felixge/httpsnoop v1.0.3 // indirect
|
||||||
github.com/fsnotify/fsnotify v1.6.0 // indirect
|
github.com/fsnotify/fsnotify v1.6.0 // indirect
|
||||||
github.com/fvbommel/sortorder v1.0.1 // indirect
|
github.com/fvbommel/sortorder v1.1.0 // indirect
|
||||||
github.com/ghodss/yaml v1.0.0 // indirect
|
github.com/ghodss/yaml v1.0.0 // indirect
|
||||||
github.com/go-errors/errors v1.4.2 // indirect
|
github.com/go-errors/errors v1.4.2 // indirect
|
||||||
github.com/go-logr/logr v1.2.4 // indirect
|
github.com/go-logr/logr v1.2.4 // indirect
|
||||||
github.com/go-logr/stdr v1.2.2 // indirect
|
github.com/go-logr/stdr v1.2.2 // indirect
|
||||||
github.com/go-openapi/jsonpointer v0.19.6 // indirect
|
github.com/go-openapi/jsonpointer v0.19.6 // indirect
|
||||||
github.com/go-openapi/jsonreference v0.20.1 // indirect
|
github.com/go-openapi/jsonreference v0.20.2 // indirect
|
||||||
github.com/go-openapi/swag v0.22.3 // indirect
|
github.com/go-openapi/swag v0.22.3 // indirect
|
||||||
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
|
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
|
||||||
github.com/godbus/dbus/v5 v5.1.0 // indirect
|
github.com/godbus/dbus/v5 v5.1.0 // indirect
|
||||||
github.com/gofrs/flock v0.8.1 // indirect
|
github.com/gofrs/flock v0.8.1 // indirect
|
||||||
github.com/gofrs/uuid v4.0.0+incompatible // indirect
|
github.com/gofrs/uuid v4.4.0+incompatible // indirect
|
||||||
github.com/gogo/protobuf v1.3.2 // indirect
|
github.com/gogo/protobuf v1.3.2 // indirect
|
||||||
github.com/golang-jwt/jwt/v4 v4.4.2 // indirect
|
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
|
||||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||||
github.com/golang/mock v1.6.0 // indirect
|
github.com/golang/mock v1.6.0 // indirect
|
||||||
github.com/golang/protobuf v1.5.3 // indirect
|
github.com/golang/protobuf v1.5.3 // indirect
|
||||||
github.com/google/btree v1.1.2 // indirect
|
github.com/google/btree v1.1.2 // indirect
|
||||||
github.com/google/cel-go v0.12.6 // indirect
|
github.com/google/cel-go v0.16.0 // indirect
|
||||||
github.com/google/gnostic v0.5.7-v3refs // indirect
|
github.com/google/gnostic-models v0.6.8 // indirect
|
||||||
github.com/google/go-cmp v0.5.9 // indirect
|
github.com/google/go-cmp v0.5.9 // indirect
|
||||||
github.com/google/go-containerregistry v0.7.0 // indirect
|
github.com/google/go-containerregistry v0.7.0 // indirect
|
||||||
github.com/google/gofuzz v1.2.0 // indirect
|
github.com/google/gofuzz v1.2.0 // indirect
|
||||||
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
|
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
|
||||||
|
github.com/google/s2a-go v0.1.5 // indirect
|
||||||
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
|
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
|
||||||
github.com/googleapis/gax-go/v2 v2.1.1 // indirect
|
github.com/googleapis/enterprise-certificate-proxy v0.2.5 // indirect
|
||||||
|
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
|
||||||
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
|
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
|
||||||
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
||||||
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
|
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
|
||||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
|
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
|
||||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
|
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect
|
||||||
github.com/hanwen/go-fuse/v2 v2.2.0 // indirect
|
github.com/hanwen/go-fuse/v2 v2.2.0 // indirect
|
||||||
github.com/hashicorp/errwrap v1.1.0 // indirect
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
||||||
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
||||||
|
@ -305,7 +309,6 @@ require (
|
||||||
github.com/mistifyio/go-zfs v2.1.2-0.20190413222219-f784269be439+incompatible // indirect
|
github.com/mistifyio/go-zfs v2.1.2-0.20190413222219-f784269be439+incompatible // indirect
|
||||||
github.com/mistifyio/go-zfs/v3 v3.0.1 // indirect
|
github.com/mistifyio/go-zfs/v3 v3.0.1 // indirect
|
||||||
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
|
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
|
||||||
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
|
||||||
github.com/moby/ipvs v1.1.0 // indirect
|
github.com/moby/ipvs v1.1.0 // indirect
|
||||||
github.com/moby/locker v1.0.1 // indirect
|
github.com/moby/locker v1.0.1 // indirect
|
||||||
github.com/moby/spdystream v0.2.0 // indirect
|
github.com/moby/spdystream v0.2.0 // indirect
|
||||||
|
@ -337,17 +340,17 @@ require (
|
||||||
github.com/pierrec/lz4 v2.6.0+incompatible // indirect
|
github.com/pierrec/lz4 v2.6.0+incompatible // indirect
|
||||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||||
github.com/pquerna/cachecontrol v0.1.0 // indirect
|
github.com/pquerna/cachecontrol v0.1.0 // indirect
|
||||||
github.com/prometheus/client_golang v1.14.0 // indirect
|
github.com/prometheus/client_golang v1.16.0 // indirect
|
||||||
github.com/prometheus/client_model v0.3.0 // indirect
|
github.com/prometheus/client_model v0.4.0 // indirect
|
||||||
github.com/prometheus/common v0.39.0 // indirect
|
github.com/prometheus/common v0.44.0 // indirect
|
||||||
github.com/prometheus/procfs v0.9.0 // indirect
|
github.com/prometheus/procfs v0.10.1 // indirect
|
||||||
github.com/rs/xid v1.4.0 // indirect
|
github.com/rs/xid v1.4.0 // indirect
|
||||||
github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021 // indirect
|
github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021 // indirect
|
||||||
github.com/russross/blackfriday/v2 v2.1.0 // indirect
|
github.com/russross/blackfriday/v2 v2.1.0 // indirect
|
||||||
github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646 // indirect
|
github.com/seccomp/libseccomp-golang v0.10.0 // indirect
|
||||||
github.com/shengdoushi/base58 v1.0.0 // indirect
|
github.com/shengdoushi/base58 v1.0.0 // indirect
|
||||||
github.com/soheilhy/cmux v0.1.5 // indirect
|
github.com/soheilhy/cmux v0.1.5 // indirect
|
||||||
github.com/spf13/cobra v1.6.1 // indirect
|
github.com/spf13/cobra v1.7.0 // indirect
|
||||||
github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980 // indirect
|
github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980 // indirect
|
||||||
github.com/stoewer/go-strcase v1.2.0 // indirect
|
github.com/stoewer/go-strcase v1.2.0 // indirect
|
||||||
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
|
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
|
||||||
|
@ -358,7 +361,7 @@ require (
|
||||||
github.com/vishvananda/netns v0.0.4 // indirect
|
github.com/vishvananda/netns v0.0.4 // indirect
|
||||||
github.com/vmware/govmomi v0.30.0 // indirect
|
github.com/vmware/govmomi v0.30.0 // indirect
|
||||||
github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510 // indirect
|
github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510 // indirect
|
||||||
github.com/xlab/treeprint v1.1.0 // indirect
|
github.com/xlab/treeprint v1.2.0 // indirect
|
||||||
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
|
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
|
||||||
go.etcd.io/bbolt v1.3.7 // indirect
|
go.etcd.io/bbolt v1.3.7 // indirect
|
||||||
go.etcd.io/etcd/client/v2 v2.305.9 // indirect
|
go.etcd.io/etcd/client/v2 v2.305.9 // indirect
|
||||||
|
@ -377,50 +380,54 @@ require (
|
||||||
go.opentelemetry.io/otel/sdk v1.14.0 // indirect
|
go.opentelemetry.io/otel/sdk v1.14.0 // indirect
|
||||||
go.opentelemetry.io/otel/trace v1.14.0 // indirect
|
go.opentelemetry.io/otel/trace v1.14.0 // indirect
|
||||||
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
|
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
|
||||||
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
|
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
|
||||||
go.uber.org/atomic v1.10.0 // indirect
|
go.uber.org/atomic v1.10.0 // indirect
|
||||||
go.uber.org/multierr v1.9.0 // indirect
|
go.uber.org/multierr v1.11.0 // indirect
|
||||||
|
golang.org/x/exp v0.0.0-20230307190834-24139beb5833 // indirect
|
||||||
golang.org/x/mod v0.10.0 // indirect
|
golang.org/x/mod v0.10.0 // indirect
|
||||||
golang.org/x/oauth2 v0.4.0 // indirect
|
golang.org/x/oauth2 v0.11.0 // indirect
|
||||||
golang.org/x/term v0.7.0 // indirect
|
golang.org/x/term v0.10.0 // indirect
|
||||||
golang.org/x/text v0.10.0 // indirect
|
golang.org/x/text v0.12.0 // indirect
|
||||||
golang.org/x/time v0.3.0 // indirect
|
golang.org/x/time v0.3.0 // indirect
|
||||||
golang.org/x/tools v0.8.0 // indirect
|
golang.org/x/tools v0.8.0 // indirect
|
||||||
golang.zx2c4.com/wireguard v0.0.0-20230325221338-052af4a8072b // indirect
|
golang.zx2c4.com/wireguard v0.0.0-20230325221338-052af4a8072b // indirect
|
||||||
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20230429144221-925a1e7659e6 // indirect
|
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20230429144221-925a1e7659e6 // indirect
|
||||||
google.golang.org/api v0.60.0 // indirect
|
google.golang.org/api v0.138.0 // indirect
|
||||||
google.golang.org/appengine v1.6.7 // indirect
|
google.golang.org/appengine v1.6.7 // indirect
|
||||||
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect
|
google.golang.org/genproto v0.0.0-20230815205213-6bfd019c3878 // indirect
|
||||||
google.golang.org/protobuf v1.29.1 // indirect
|
google.golang.org/genproto/googleapis/api v0.0.0-20230803162519-f966b187b2e5 // indirect
|
||||||
gopkg.in/gcfg.v1 v1.2.0 // indirect
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20230807174057-1744710a1577 // indirect
|
||||||
|
google.golang.org/protobuf v1.31.0 // indirect
|
||||||
|
gopkg.in/gcfg.v1 v1.2.3 // indirect
|
||||||
gopkg.in/inf.v0 v0.9.1 // indirect
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
||||||
gopkg.in/ini.v1 v1.67.0 // indirect
|
gopkg.in/ini.v1 v1.67.0 // indirect
|
||||||
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
|
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
||||||
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
|
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
|
||||||
gopkg.in/warnings.v0 v0.1.1 // indirect
|
gopkg.in/warnings.v0 v0.1.2 // indirect
|
||||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||||
k8s.io/apiextensions-apiserver v0.25.4 // indirect
|
k8s.io/apiextensions-apiserver v0.28.0 // indirect
|
||||||
k8s.io/cli-runtime v0.22.2 // indirect
|
k8s.io/cli-runtime v0.22.2 // indirect
|
||||||
k8s.io/code-generator v0.25.4 // indirect
|
k8s.io/code-generator v0.28.0 // indirect
|
||||||
k8s.io/controller-manager v0.25.4 // indirect
|
k8s.io/controller-manager v0.25.4 // indirect
|
||||||
k8s.io/csi-translation-lib v0.0.0 // indirect
|
k8s.io/csi-translation-lib v0.0.0 // indirect
|
||||||
k8s.io/dynamic-resource-allocation v0.0.0 // indirect
|
k8s.io/dynamic-resource-allocation v0.0.0 // indirect
|
||||||
|
k8s.io/endpointslice v0.0.0 // indirect
|
||||||
k8s.io/gengo v0.0.0-20220902162205-c0856e24416d // indirect
|
k8s.io/gengo v0.0.0-20220902162205-c0856e24416d // indirect
|
||||||
k8s.io/kms v0.0.0 // indirect
|
k8s.io/kms v0.0.0 // indirect
|
||||||
k8s.io/kube-aggregator v0.25.4 // indirect
|
k8s.io/kube-aggregator v0.28.0 // indirect
|
||||||
k8s.io/kube-controller-manager v0.0.0 // indirect
|
k8s.io/kube-controller-manager v0.0.0 // indirect
|
||||||
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
|
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
|
||||||
k8s.io/kube-proxy v0.0.0 // indirect
|
k8s.io/kube-proxy v0.0.0 // indirect
|
||||||
k8s.io/kube-scheduler v0.0.0 // indirect
|
k8s.io/kube-scheduler v0.0.0 // indirect
|
||||||
k8s.io/kubelet v0.0.0 // indirect
|
k8s.io/kubelet v0.0.0 // indirect
|
||||||
k8s.io/legacy-cloud-providers v0.0.0 // indirect
|
k8s.io/legacy-cloud-providers v0.0.0 // indirect
|
||||||
k8s.io/metrics v0.0.0 // indirect
|
k8s.io/metrics v0.0.0 // indirect
|
||||||
k8s.io/mount-utils v0.27.4 // indirect
|
k8s.io/mount-utils v0.28.0 // indirect
|
||||||
k8s.io/pod-security-admission v0.0.0 // indirect
|
k8s.io/pod-security-admission v0.0.0 // indirect
|
||||||
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.2 // indirect
|
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.2 // indirect
|
||||||
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
|
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
|
||||||
sigs.k8s.io/kustomize/api v0.13.2 // indirect
|
sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 // indirect
|
||||||
sigs.k8s.io/kustomize/kustomize/v5 v5.0.1 // indirect
|
sigs.k8s.io/kustomize/kustomize/v5 v5.0.4-0.20230601165947-6ce0bf390ce3 // indirect
|
||||||
sigs.k8s.io/kustomize/kyaml v0.14.1 // indirect
|
sigs.k8s.io/kustomize/kyaml v0.14.3-0.20230601165947-6ce0bf390ce3 // indirect
|
||||||
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
|
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
|
||||||
)
|
)
|
||||||
|
|
|
@ -29,7 +29,7 @@ import (
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
utilnet "k8s.io/apimachinery/pkg/util/net"
|
utilnet "k8s.io/apimachinery/pkg/util/net"
|
||||||
kubeapiserverflag "k8s.io/component-base/cli/flag"
|
kubeapiserverflag "k8s.io/component-base/cli/flag"
|
||||||
"k8s.io/kubernetes/pkg/controlplane"
|
"k8s.io/kubernetes/pkg/controlplane/apiserver/options"
|
||||||
utilsnet "k8s.io/utils/net"
|
utilsnet "k8s.io/utils/net"
|
||||||
|
|
||||||
_ "github.com/go-sql-driver/mysql" // ensure we have mysql
|
_ "github.com/go-sql-driver/mysql" // ensure we have mysql
|
||||||
|
@ -348,7 +348,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
|
||||||
}
|
}
|
||||||
|
|
||||||
// the apiserver service does not yet support dual-stack operation
|
// the apiserver service does not yet support dual-stack operation
|
||||||
_, apiServerServiceIP, err := controlplane.ServiceIPRange(*serverConfig.ControlConfig.ServiceIPRanges[0])
|
_, apiServerServiceIP, err := options.ServiceIPRange(*serverConfig.ControlConfig.ServiceIPRanges[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,13 +12,14 @@ import (
|
||||||
"github.com/k3s-io/k3s/pkg/daemons/executor"
|
"github.com/k3s-io/k3s/pkg/daemons/executor"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"k8s.io/component-base/logs"
|
"k8s.io/component-base/logs"
|
||||||
|
logsapi "k8s.io/component-base/logs/api/v1"
|
||||||
_ "k8s.io/component-base/metrics/prometheus/restclient" // for client metric registration
|
_ "k8s.io/component-base/metrics/prometheus/restclient" // for client metric registration
|
||||||
_ "k8s.io/component-base/metrics/prometheus/version" // for version metric registration
|
_ "k8s.io/component-base/metrics/prometheus/version" // for version metric registration
|
||||||
)
|
)
|
||||||
|
|
||||||
func Agent(ctx context.Context, nodeConfig *daemonconfig.Node, proxy proxy.Proxy) error {
|
func Agent(ctx context.Context, nodeConfig *daemonconfig.Node, proxy proxy.Proxy) error {
|
||||||
rand.Seed(time.Now().UTC().UnixNano())
|
rand.Seed(time.Now().UTC().UnixNano())
|
||||||
|
logsapi.ReapplyHandling = logsapi.ReapplyHandlingIgnoreUnchanged
|
||||||
logs.InitLogs()
|
logs.InitLogs()
|
||||||
defer logs.FlushLogs()
|
defer logs.FlushLogs()
|
||||||
if err := startKubelet(ctx, &nodeConfig.AgentConfig); err != nil {
|
if err := startKubelet(ctx, &nodeConfig.AgentConfig); err != nil {
|
||||||
|
|
|
@ -21,8 +21,9 @@ import (
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
authorizationv1 "k8s.io/api/authorization/v1"
|
authorizationv1 "k8s.io/api/authorization/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
logsapi "k8s.io/component-base/logs/api/v1"
|
||||||
"k8s.io/kubernetes/pkg/kubeapiserver/authorizer/modes"
|
"k8s.io/kubernetes/pkg/kubeapiserver/authorizer/modes"
|
||||||
proxyutil "k8s.io/kubernetes/pkg/proxy/util"
|
"k8s.io/kubernetes/pkg/registry/core/node"
|
||||||
|
|
||||||
// for client metric registration
|
// for client metric registration
|
||||||
_ "k8s.io/component-base/metrics/prometheus/restclient"
|
_ "k8s.io/component-base/metrics/prometheus/restclient"
|
||||||
|
@ -31,6 +32,7 @@ import (
|
||||||
func Server(ctx context.Context, cfg *config.Control) error {
|
func Server(ctx context.Context, cfg *config.Control) error {
|
||||||
rand.Seed(time.Now().UTC().UnixNano())
|
rand.Seed(time.Now().UTC().UnixNano())
|
||||||
|
|
||||||
|
logsapi.ReapplyHandling = logsapi.ReapplyHandlingIgnoreUnchanged
|
||||||
if err := prepare(ctx, cfg); err != nil {
|
if err := prepare(ctx, cfg); err != nil {
|
||||||
return errors.Wrap(err, "preparing server")
|
return errors.Wrap(err, "preparing server")
|
||||||
}
|
}
|
||||||
|
@ -41,7 +43,7 @@ func Server(ctx context.Context, cfg *config.Control) error {
|
||||||
}
|
}
|
||||||
cfg.Runtime.Tunnel = tunnel
|
cfg.Runtime.Tunnel = tunnel
|
||||||
|
|
||||||
proxyutil.DisableProxyHostnameCheck = true
|
node.DisableProxyHostnameCheck = true
|
||||||
|
|
||||||
authArgs := []string{
|
authArgs := []string{
|
||||||
"--basic-auth-file=" + cfg.Runtime.PasswdFile,
|
"--basic-auth-file=" + cfg.Runtime.PasswdFile,
|
||||||
|
|
|
@ -31,10 +31,11 @@ import (
|
||||||
cloudproviderapi "k8s.io/cloud-provider/api"
|
cloudproviderapi "k8s.io/cloud-provider/api"
|
||||||
ccmapp "k8s.io/cloud-provider/app"
|
ccmapp "k8s.io/cloud-provider/app"
|
||||||
cloudcontrollerconfig "k8s.io/cloud-provider/app/config"
|
cloudcontrollerconfig "k8s.io/cloud-provider/app/config"
|
||||||
|
"k8s.io/cloud-provider/names"
|
||||||
ccmopt "k8s.io/cloud-provider/options"
|
ccmopt "k8s.io/cloud-provider/options"
|
||||||
cliflag "k8s.io/component-base/cli/flag"
|
cliflag "k8s.io/component-base/cli/flag"
|
||||||
"k8s.io/klog/v2"
|
"k8s.io/klog/v2"
|
||||||
"k8s.io/kubernetes/cmd/kube-apiserver/app"
|
apiapp "k8s.io/kubernetes/cmd/kube-apiserver/app"
|
||||||
cmapp "k8s.io/kubernetes/cmd/kube-controller-manager/app"
|
cmapp "k8s.io/kubernetes/cmd/kube-controller-manager/app"
|
||||||
proxy "k8s.io/kubernetes/cmd/kube-proxy/app"
|
proxy "k8s.io/kubernetes/cmd/kube-proxy/app"
|
||||||
sapp "k8s.io/kubernetes/cmd/kube-scheduler/app"
|
sapp "k8s.io/kubernetes/cmd/kube-scheduler/app"
|
||||||
|
@ -112,12 +113,12 @@ func (*Embedded) KubeProxy(ctx context.Context, args []string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*Embedded) APIServerHandlers(ctx context.Context) (authenticator.Request, http.Handler, error) {
|
func (*Embedded) APIServerHandlers(ctx context.Context) (authenticator.Request, http.Handler, error) {
|
||||||
startupConfig := <-app.StartupConfig
|
startupConfig := <-apiapp.StartupConfig
|
||||||
return startupConfig.Authenticator, startupConfig.Handler, nil
|
return startupConfig.Authenticator, startupConfig.Handler, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*Embedded) APIServer(ctx context.Context, etcdReady <-chan struct{}, args []string) error {
|
func (*Embedded) APIServer(ctx context.Context, etcdReady <-chan struct{}, args []string) error {
|
||||||
command := app.NewAPIServerCommand(ctx.Done())
|
command := apiapp.NewAPIServerCommand(ctx.Done())
|
||||||
command.SetArgs(args)
|
command.SetArgs(args)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
@ -196,7 +197,15 @@ func (*Embedded) CloudControllerManager(ctx context.Context, ccmRBACReady <-chan
|
||||||
return cloud
|
return cloud
|
||||||
}
|
}
|
||||||
|
|
||||||
command := ccmapp.NewCloudControllerManagerCommand(ccmOptions, cloudInitializer, ccmapp.DefaultInitFuncConstructors, cliflag.NamedFlagSets{}, ctx.Done())
|
controllerAliases := names.CCMControllerAliases()
|
||||||
|
|
||||||
|
command := ccmapp.NewCloudControllerManagerCommand(
|
||||||
|
ccmOptions,
|
||||||
|
cloudInitializer,
|
||||||
|
ccmapp.DefaultInitFuncConstructors,
|
||||||
|
controllerAliases,
|
||||||
|
cliflag.NamedFlagSets{},
|
||||||
|
ctx.Done())
|
||||||
command.SetArgs(args)
|
command.SetArgs(args)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
|
|
@ -19,114 +19,21 @@ limitations under the License.
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
"time"
|
|
||||||
|
|
||||||
v1 "github.com/k3s-io/k3s/pkg/apis/k3s.cattle.io/v1"
|
v1 "github.com/k3s-io/k3s/pkg/apis/k3s.cattle.io/v1"
|
||||||
"github.com/rancher/wrangler/pkg/generic"
|
"github.com/rancher/wrangler/pkg/generic"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
"k8s.io/apimachinery/pkg/labels"
|
|
||||||
"k8s.io/apimachinery/pkg/types"
|
|
||||||
"k8s.io/apimachinery/pkg/watch"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// AddonController interface for managing Addon resources.
|
// AddonController interface for managing Addon resources.
|
||||||
type AddonController interface {
|
type AddonController interface {
|
||||||
generic.ControllerMeta
|
generic.ControllerInterface[*v1.Addon, *v1.AddonList]
|
||||||
AddonClient
|
|
||||||
|
|
||||||
// OnChange runs the given handler when the controller detects a resource was changed.
|
|
||||||
OnChange(ctx context.Context, name string, sync AddonHandler)
|
|
||||||
|
|
||||||
// OnRemove runs the given handler when the controller detects a resource was changed.
|
|
||||||
OnRemove(ctx context.Context, name string, sync AddonHandler)
|
|
||||||
|
|
||||||
// Enqueue adds the resource with the given name to the worker queue of the controller.
|
|
||||||
Enqueue(namespace, name string)
|
|
||||||
|
|
||||||
// EnqueueAfter runs Enqueue after the provided duration.
|
|
||||||
EnqueueAfter(namespace, name string, duration time.Duration)
|
|
||||||
|
|
||||||
// Cache returns a cache for the resource type T.
|
|
||||||
Cache() AddonCache
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddonClient interface for managing Addon resources in Kubernetes.
|
// AddonClient interface for managing Addon resources in Kubernetes.
|
||||||
type AddonClient interface {
|
type AddonClient interface {
|
||||||
// Create creates a new object and return the newly created Object or an error.
|
generic.ClientInterface[*v1.Addon, *v1.AddonList]
|
||||||
Create(*v1.Addon) (*v1.Addon, error)
|
|
||||||
|
|
||||||
// Update updates the object and return the newly updated Object or an error.
|
|
||||||
Update(*v1.Addon) (*v1.Addon, error)
|
|
||||||
|
|
||||||
// Delete deletes the Object in the given name.
|
|
||||||
Delete(namespace, name string, options *metav1.DeleteOptions) error
|
|
||||||
|
|
||||||
// Get will attempt to retrieve the resource with the specified name.
|
|
||||||
Get(namespace, name string, options metav1.GetOptions) (*v1.Addon, error)
|
|
||||||
|
|
||||||
// List will attempt to find multiple resources.
|
|
||||||
List(namespace string, opts metav1.ListOptions) (*v1.AddonList, error)
|
|
||||||
|
|
||||||
// Watch will start watching resources.
|
|
||||||
Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
|
|
||||||
|
|
||||||
// Patch will patch the resource with the matching name.
|
|
||||||
Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Addon, err error)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddonCache interface for retrieving Addon resources in memory.
|
// AddonCache interface for retrieving Addon resources in memory.
|
||||||
type AddonCache interface {
|
type AddonCache interface {
|
||||||
// Get returns the resources with the specified name from the cache.
|
|
||||||
Get(namespace, name string) (*v1.Addon, error)
|
|
||||||
|
|
||||||
// List will attempt to find resources from the Cache.
|
|
||||||
List(namespace string, selector labels.Selector) ([]*v1.Addon, error)
|
|
||||||
|
|
||||||
// AddIndexer adds a new Indexer to the cache with the provided name.
|
|
||||||
// If you call this after you already have data in the store, the results are undefined.
|
|
||||||
AddIndexer(indexName string, indexer AddonIndexer)
|
|
||||||
|
|
||||||
// GetByIndex returns the stored objects whose set of indexed values
|
|
||||||
// for the named index includes the given indexed value.
|
|
||||||
GetByIndex(indexName, key string) ([]*v1.Addon, error)
|
|
||||||
}
|
|
||||||
|
|
||||||
// AddonHandler is function for performing any potential modifications to a Addon resource.
|
|
||||||
type AddonHandler func(string, *v1.Addon) (*v1.Addon, error)
|
|
||||||
|
|
||||||
// AddonIndexer computes a set of indexed values for the provided object.
|
|
||||||
type AddonIndexer func(obj *v1.Addon) ([]string, error)
|
|
||||||
|
|
||||||
// AddonGenericController wraps wrangler/pkg/generic.Controller so that the function definitions adhere to AddonController interface.
|
|
||||||
type AddonGenericController struct {
|
|
||||||
generic.ControllerInterface[*v1.Addon, *v1.AddonList]
|
|
||||||
}
|
|
||||||
|
|
||||||
// OnChange runs the given resource handler when the controller detects a resource was changed.
|
|
||||||
func (c *AddonGenericController) OnChange(ctx context.Context, name string, sync AddonHandler) {
|
|
||||||
c.ControllerInterface.OnChange(ctx, name, generic.ObjectHandler[*v1.Addon](sync))
|
|
||||||
}
|
|
||||||
|
|
||||||
// OnRemove runs the given object handler when the controller detects a resource was changed.
|
|
||||||
func (c *AddonGenericController) OnRemove(ctx context.Context, name string, sync AddonHandler) {
|
|
||||||
c.ControllerInterface.OnRemove(ctx, name, generic.ObjectHandler[*v1.Addon](sync))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Cache returns a cache of resources in memory.
|
|
||||||
func (c *AddonGenericController) Cache() AddonCache {
|
|
||||||
return &AddonGenericCache{
|
|
||||||
c.ControllerInterface.Cache(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// AddonGenericCache wraps wrangler/pkg/generic.Cache so the function definitions adhere to AddonCache interface.
|
|
||||||
type AddonGenericCache struct {
|
|
||||||
generic.CacheInterface[*v1.Addon]
|
generic.CacheInterface[*v1.Addon]
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddIndexer adds a new Indexer to the cache with the provided name.
|
|
||||||
// If you call this after you already have data in the store, the results are undefined.
|
|
||||||
func (c AddonGenericCache) AddIndexer(indexName string, indexer AddonIndexer) {
|
|
||||||
c.CacheInterface.AddIndexer(indexName, generic.Indexer[*v1.Addon](indexer))
|
|
||||||
}
|
|
||||||
|
|
|
@ -45,7 +45,5 @@ type version struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *version) Addon() AddonController {
|
func (v *version) Addon() AddonController {
|
||||||
return &AddonGenericController{
|
return generic.NewController[*v1.Addon, *v1.AddonList](schema.GroupVersionKind{Group: "k3s.cattle.io", Version: "v1", Kind: "Addon"}, "addons", true, v.controllerFactory)
|
||||||
generic.NewController[*v1.Addon, *v1.AddonList](schema.GroupVersionKind{Group: "k3s.cattle.io", Version: "v1", Kind: "Addon"}, "addons", true, v.controllerFactory),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,12 +8,14 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/rancher/wrangler/pkg/generic"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
apierrors "k8s.io/apimachinery/pkg/api/errors"
|
apierrors "k8s.io/apimachinery/pkg/api/errors"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
"k8s.io/apimachinery/pkg/types"
|
"k8s.io/apimachinery/pkg/types"
|
||||||
"k8s.io/apimachinery/pkg/watch"
|
"k8s.io/apimachinery/pkg/watch"
|
||||||
|
"k8s.io/client-go/rest"
|
||||||
)
|
)
|
||||||
|
|
||||||
const migrateNumNodes = 10
|
const migrateNumNodes = 10
|
||||||
|
@ -166,6 +168,14 @@ func (m *mockSecretClient) Patch(namespace, name string, pt types.PatchType, dat
|
||||||
return nil, errorNotImplemented()
|
return nil, errorNotImplemented()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *mockSecretClient) UpdateStatus(secret *v1.Secret) (*v1.Secret, error) {
|
||||||
|
return nil, errorNotImplemented()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *mockSecretClient) WithImpersonation(rest.ImpersonationConfig) (generic.ClientInterface[*v1.Secret, *v1.SecretList], error) {
|
||||||
|
return nil, errorNotImplemented()
|
||||||
|
}
|
||||||
|
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
|
||||||
// mock node client interface
|
// mock node client interface
|
||||||
|
@ -199,6 +209,10 @@ func (m *mockNodeClient) Patch(name string, pt types.PatchType, data []byte, sub
|
||||||
return nil, errorNotImplemented()
|
return nil, errorNotImplemented()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *mockNodeClient) WithImpersonation(rest.ImpersonationConfig) (generic.NonNamespacedClientInterface[*v1.Node, *v1.NodeList], error) {
|
||||||
|
return nil, errorNotImplemented()
|
||||||
|
}
|
||||||
|
|
||||||
// --------------------------
|
// --------------------------
|
||||||
|
|
||||||
// utility functions
|
// utility functions
|
||||||
|
|
|
@ -46,4 +46,5 @@ if ! command -v golangci-lint; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Running: golangci-lint
|
echo Running: golangci-lint
|
||||||
golangci-lint run -v
|
# https://github.com/golangci/golangci-lint/issues/2788
|
||||||
|
CGO_ENABLED=0 golangci-lint run -v
|
||||||
|
|
Loading…
Reference in New Issue