Update deps and enable action

Signed-off-by: Jian Qiu <jqiu@redhat.com>
This commit is contained in:
Jian Qiu
2021-06-21 11:39:10 +08:00
parent c723e190c4
commit ef338a1b0b
148 changed files with 440 additions and 276 deletions

22
.github/workflows/dco.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: DCO
on:
workflow_dispatch: {}
pull_request:
branches:
- main
- release-*
jobs:
dco_check:
runs-on: ubuntu-latest
name: DCO Check
steps:
- name: Get PR Commits
id: 'get-pr-commits'
uses: tim-actions/get-pr-commits@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: DCO Check
uses: tim-actions/dco@master
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}

36
.github/workflows/go-postsubmit.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: GoPostSubmit
on:
push:
branches:
- main
- release-*
workflow_dispatch: {}
env:
# Common versions
GO_VERSION: '1.16'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/registration-operator/registration-operator/go'
defaults:
run:
working-directory: go/src/open-cluster-management.io/registration-operator
jobs:
verify:
name: images
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/registration-operator
- name: install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: install imagebuilder
run: go install github.com/openshift/imagebuilder/cmd/imagebuilder@v1.2.1
- name: images
run: make images

129
.github/workflows/go-presubmit.yml vendored Normal file
View File

@@ -0,0 +1,129 @@
name: Go
on:
workflow_dispatch: {}
pull_request:
branches:
- main
- release-*
env:
# Common versions
GO_VERSION: '1.16'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/registration-operator/registration-operator/go'
defaults:
run:
working-directory: go/src/open-cluster-management.io/registration-operator
jobs:
verify:
name: verify
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/registration-operator
- name: install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: verify
run: make verify
verify-deps:
name: verify-deps
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/registration-operator
- name: install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: verify-deps
run: make verify-deps
build:
name: build
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/registration-operator
- name: install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: build
run: make build
unit:
name: unit
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/registration-operator
- name: install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: unit
run: make test
integration:
name: integration
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/registration-operator
- name: install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: integration
run: make test-integration
e2e:
name: e2e
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/registration-operator
- name: install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: install imagebuilder
run: go install github.com/openshift/imagebuilder/cmd/imagebuilder@v1.2.1
- name: images
run: make images
- name: setup kind
uses: engineerd/setup-kind@v0.5.0
with:
version: v0.10.0
name: cluster1
- name: Load image on the nodes of the cluster
run: |
kind load docker-image --name=cluster1 quay.io/open-cluster-management/registration-operator:latest
- name: Run e2e test
run: |
make test-e2e
env:
KUBECONFIG: /home/runner/.kube/config

View File

@@ -1,9 +0,0 @@
FROM docker.io/openshift/origin-release:golang-1.13 AS builder
WORKDIR /go/src/github.com/open-cluster-management/registration-operator
COPY ../. .
ENV GO_PACKAGE github.com/open-cluster-management/registration-operator
RUN make build --warn-undefined-variables
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1-398
COPY --from=builder /go/src/github.com/open-cluster-management/registration-operator/registration-operator /

View File

@@ -13,8 +13,8 @@ import (
utilflag "k8s.io/component-base/cli/flag"
"k8s.io/component-base/logs"
"github.com/open-cluster-management/registration-operator/pkg/cmd/operator"
"github.com/open-cluster-management/registration-operator/pkg/version"
"open-cluster-management.io/registration-operator/pkg/cmd/operator"
"open-cluster-management.io/registration-operator/pkg/version"
)
func main() {

10
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/open-cluster-management/registration-operator
module open-cluster-management.io/registration-operator
go 1.16
@@ -9,18 +9,18 @@ require (
github.com/go-bindata/go-bindata v3.1.2+incompatible
github.com/onsi/ginkgo v1.14.0
github.com/onsi/gomega v1.10.1
github.com/open-cluster-management/api v0.0.0-20210527013639-a6845f2ebcb1
github.com/openshift/api v0.0.0-20210331193751-3acddb19d360
github.com/openshift/build-machinery-go v0.0.0-20210209125900-0da259a2c359
github.com/openshift/library-go v0.0.0-20210406144447-d9cdfbd844ea
github.com/spf13/cobra v1.1.1
github.com/spf13/pflag v1.0.5
k8s.io/api v0.21.0-rc.0
k8s.io/api v0.21.1
k8s.io/apiextensions-apiserver v0.21.0-rc.0
k8s.io/apimachinery v0.21.0-rc.0
k8s.io/client-go v0.21.0-rc.0
k8s.io/apimachinery v0.21.1
k8s.io/client-go v0.21.1
k8s.io/component-base v0.21.0-rc.0
k8s.io/klog/v2 v2.8.0
k8s.io/kube-aggregator v0.21.0-rc.0
open-cluster-management.io/api v0.0.0-20210610125115-f57c747b84aa
sigs.k8s.io/controller-runtime v0.6.1-0.20200829232221-efc74d056b24
)

20
go.sum
View File

@@ -27,11 +27,9 @@ github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=
github.com/Azure/go-autorest/autorest v0.9.6/go.mod h1:/FALq9T/kS7b5J5qsQ+RSTUdAmGFqi0vUdVNNx8q630=
github.com/Azure/go-autorest/autorest v0.11.1/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw=
github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw=
github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0=
github.com/Azure/go-autorest/autorest/adal v0.8.2/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q=
github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg=
github.com/Azure/go-autorest/autorest/adal v0.9.5/go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A=
github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA=
github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g=
@@ -39,7 +37,6 @@ github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSY
github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM=
github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k=
github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k=
github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc=
github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8=
@@ -418,8 +415,6 @@ github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
github.com/onsi/gomega v1.10.1 h1:o0+MgICZLuZ7xjH7Vx6zS/zcu93/BEp1VwkIW1mEXCE=
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
github.com/open-cluster-management/api v0.0.0-20210527013639-a6845f2ebcb1 h1:AaFycHD9YOfFXe9C5VsYxKf4LKCXKSLZgK2DnFdHY4M=
github.com/open-cluster-management/api v0.0.0-20210527013639-a6845f2ebcb1/go.mod h1:ot+A1DWq+v1IV+e1S7nhIteYAmNByFgtazvzpoeAfRQ=
github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
github.com/openshift/api v0.0.0-20210331162552-3e31249e6a55/go.mod h1:dZ4kytOo3svxJHNYd0J55hwe/6IQG5gAUHUE0F3Jkio=
@@ -712,7 +707,6 @@ golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200831180312-196b9ba8737a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201112073958-5cba982894dd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073 h1:8qxJSnu+7dRq6upnbntrmriWByIakBuct5OM/MdQC1M=
@@ -900,9 +894,9 @@ honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9
k8s.io/api v0.17.0/go.mod h1:npsyOePkeP0CPwyGfXDHxvypiYMJxBWAMpQxCaJ4ZxI=
k8s.io/api v0.18.0-beta.2/go.mod h1:2oeNnWEqcSmaM/ibSh3t7xcIqbkGXhzZdn4ezV9T4m0=
k8s.io/api v0.19.0/go.mod h1:I1K45XlvTrDjmj5LoM5LuP/KYrhWbjUKT/SoPG0qTjw=
k8s.io/api v0.20.0/go.mod h1:HyLC5l5eoS/ygQYl1BXBgFzWNlkHiAuyNAbevIn+FKg=
k8s.io/api v0.21.0-rc.0 h1:t/kW96KdNJNamYNqxaxRirahK+FaWJQ6BJPbXm5Jb+o=
k8s.io/api v0.21.0-rc.0/go.mod h1:Dkc/ZauWJrgZhjOjeBgW89xZQiTBJA2RaBKYHXPsi2Y=
k8s.io/api v0.21.1 h1:94bbZ5NTjdINJEdzOkpS4vdPhkb1VFpTYC9zh43f75c=
k8s.io/api v0.21.1/go.mod h1:FstGROTmsSHBarKc8bylzXih8BLNYTiS3TZcsoEDg2s=
k8s.io/apiextensions-apiserver v0.17.0/go.mod h1:XiIFUakZywkUl54fVXa7QTEHcqQz9HG55nHd1DCoHj8=
k8s.io/apiextensions-apiserver v0.18.0-beta.2/go.mod h1:Hnrg5jx8/PbxRbUoqDGxtQkULjwx8FDW4WYJaKNK+fk=
k8s.io/apiextensions-apiserver v0.19.0/go.mod h1:znfQxNpjqz/ZehvbfMg5N6fvBJW5Lqu5HVLTJQdP4Fs=
@@ -911,9 +905,9 @@ k8s.io/apiextensions-apiserver v0.21.0-rc.0/go.mod h1:ItIoMBJU1gy93Qwr/B2699r4b0
k8s.io/apimachinery v0.17.0/go.mod h1:b9qmWdKlLuU9EBh+06BtLcSf/Mu89rWL33naRxs1uZg=
k8s.io/apimachinery v0.18.0-beta.2/go.mod h1:9SnR/e11v5IbyPCGbvJViimtJ0SwHG4nfZFjU77ftcA=
k8s.io/apimachinery v0.19.0/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA=
k8s.io/apimachinery v0.20.0/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
k8s.io/apimachinery v0.21.0-rc.0 h1:m9dyzHb8QZAHOZKIz2SiabSif1oLsfgrnwiago/9xJA=
k8s.io/apimachinery v0.21.0-rc.0/go.mod h1:jbreFvJo3ov9rj7eWT7+sYiRx+qZuCYXwWT1bcDswPY=
k8s.io/apimachinery v0.21.1 h1:Q6XuHGlj2xc+hlMCvqyYfbv3H7SRGn2c8NycxJquDVs=
k8s.io/apimachinery v0.21.1/go.mod h1:jbreFvJo3ov9rj7eWT7+sYiRx+qZuCYXwWT1bcDswPY=
k8s.io/apiserver v0.17.0/go.mod h1:ABM+9x/prjINN6iiffRVNCBR2Wk7uY4z+EtEGZD48cg=
k8s.io/apiserver v0.18.0-beta.2/go.mod h1:bnblMkMoCFnIfVnVftd0SXJPzyvrk3RtaqSbblphF/A=
k8s.io/apiserver v0.19.0/go.mod h1:XvzqavYj73931x7FLtyagh8WibHpePJ1QwWrSJs2CLk=
@@ -922,9 +916,9 @@ k8s.io/apiserver v0.21.0-rc.0/go.mod h1:QlW7+1CZTZtAcKvJ34/n4DIb8sC93FeQpkd1KSU+
k8s.io/client-go v0.17.0/go.mod h1:TYgR6EUHs6k45hb6KWjVD6jFZvJV4gHDikv/It0xz+k=
k8s.io/client-go v0.18.0-beta.2/go.mod h1:UvuVxHjKWIcgy0iMvF+bwNDW7l0mskTNOaOW1Qv5BMA=
k8s.io/client-go v0.19.0/go.mod h1:H9E/VT95blcFQnlyShFgnFT9ZnJOAceiUHM3MlRC+mU=
k8s.io/client-go v0.20.0/go.mod h1:4KWh/g+Ocd8KkCwKF8vUNnmqgv+EVnQDK4MBF4oB5tY=
k8s.io/client-go v0.21.0-rc.0 h1:lsPZHT1ZniXJcwg2udlaTOhAT8wf7BE0rn9Vj0+LWMA=
k8s.io/client-go v0.21.0-rc.0/go.mod h1:zU5HY/bSOKH3YOqoge9nFvICgrpeSdJu8DQ4fkjKIZk=
k8s.io/client-go v0.21.1 h1:bhblWYLZKUu+pm50plvQF8WpY6TXdRRtcS/K9WauOj4=
k8s.io/client-go v0.21.1/go.mod h1:/kEw4RgW+3xnBGzvp9IWxKSNA+lXn3A7AuH3gdOAzLs=
k8s.io/code-generator v0.17.0/go.mod h1:DVmfPQgxQENqDIzVR2ddLXMH34qeszkKSdH/N+s+38s=
k8s.io/code-generator v0.18.0-beta.2/go.mod h1:+UHX5rSbxmR8kzS+FAv7um6dtYrZokQvjHpDSYRVkTc=
k8s.io/code-generator v0.19.0/go.mod h1:moqLn7w0t9cMs4+5CQyxnfA/HV8MF6aAVENF+WZZhgk=
@@ -970,6 +964,8 @@ modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k=
modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs=
modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I=
open-cluster-management.io/api v0.0.0-20210610125115-f57c747b84aa h1:Jw/Jo3Om1xXgdcn6xDfyREkc48nUcW/DqhMHffLCCww=
open-cluster-management.io/api v0.0.0-20210610125115-f57c747b84aa/go.mod h1:9qiA5h/8kvPQnJEOlAPHVjRO9a1jCmDhGzvgMBvXEaE=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=

View File

@@ -4,18 +4,18 @@ set -o errexit
set -o nounset
set -o pipefail
HUB_CRD_FILES="./vendor/github.com/open-cluster-management/api/cluster/v1/*.crd.yaml
./vendor/github.com/open-cluster-management/api/addon/v1alpha1/*.crd.yaml
./vendor/github.com/open-cluster-management/api/cluster/v1alpha1/0000_00_clusters.open-cluster-management.io_managedclustersets.crd.yaml
./vendor/github.com/open-cluster-management/api/cluster/v1alpha1/0000_01_clusters.open-cluster-management.io_managedclustersetbindings.crd.yaml
./vendor/github.com/open-cluster-management/api/work/v1/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml
HUB_CRD_FILES="./vendor/open-cluster-management.io/api/cluster/v1/*.crd.yaml
./vendor/open-cluster-management.io/api/addon/v1alpha1/*.crd.yaml
./vendor/open-cluster-management.io/api/cluster/v1alpha1/0000_00_clusters.open-cluster-management.io_managedclustersets.crd.yaml
./vendor/open-cluster-management.io/api/cluster/v1alpha1/0000_01_clusters.open-cluster-management.io_managedclustersetbindings.crd.yaml
./vendor/open-cluster-management.io/api/work/v1/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml
"
SPOKE_CRD_FILES="./vendor/github.com/open-cluster-management/api/work/v1/0000_01_work.open-cluster-management.io_appliedmanifestworks.crd.yaml
./vendor/github.com/open-cluster-management/api/cluster/v1alpha1/0000_02_clusters.open-cluster-management.io_clusterclaims.crd.yaml
./vendor/github.com/open-cluster-management/api/work/v1/0001_01_work.open-cluster-management.io_appliedmanifestworks.crd.yaml
./vendor/github.com/open-cluster-management/api/cluster/v1alpha1/0001_02_clusters.open-cluster-management.io_clusterclaims.crd.yaml
SPOKE_CRD_FILES="./vendor/open-cluster-management.io/api/work/v1/0000_01_work.open-cluster-management.io_appliedmanifestworks.crd.yaml
./vendor/open-cluster-management.io/api/cluster/v1alpha1/0000_02_clusters.open-cluster-management.io_clusterclaims.crd.yaml
./vendor/open-cluster-management.io/api/work/v1/0001_01_work.open-cluster-management.io_appliedmanifestworks.crd.yaml
./vendor/open-cluster-management.io/api/cluster/v1alpha1/0001_02_clusters.open-cluster-management.io_clusterclaims.crd.yaml
"
CLUSTER_MANAGER_CRD_FILE="./vendor/github.com/open-cluster-management/api/operator/v1/0000_01_operator.open-cluster-management.io_clustermanagers.crd.yaml"
KLUSTERLET_CRD_FILE="./vendor/github.com/open-cluster-management/api/operator/v1/0000_00_operator.open-cluster-management.io_klusterlets.crd.yaml"
CLUSTER_MANAGER_CRD_FILE="./vendor/open-cluster-management.io/api/operator/v1/0000_01_operator.open-cluster-management.io_clustermanagers.crd.yaml"
KLUSTERLET_CRD_FILE="./vendor/open-cluster-management.io/api/operator/v1/0000_00_operator.open-cluster-management.io_klusterlets.crd.yaml"

View File

@@ -5,8 +5,8 @@ import (
"github.com/openshift/library-go/pkg/controller/controllercmd"
"github.com/open-cluster-management/registration-operator/pkg/operators"
"github.com/open-cluster-management/registration-operator/pkg/version"
"open-cluster-management.io/registration-operator/pkg/operators"
"open-cluster-management.io/registration-operator/pkg/version"
)
// NewHubOperatorCmd generatee a command to start hub operator

View File

@@ -5,8 +5,8 @@ import (
"github.com/openshift/library-go/pkg/controller/controllercmd"
"github.com/open-cluster-management/registration-operator/pkg/operators"
"github.com/open-cluster-management/registration-operator/pkg/version"
"open-cluster-management.io/registration-operator/pkg/operators"
"open-cluster-management.io/registration-operator/pkg/version"
)
// NewKlusterletOperatorCmd generatee a command to start klusterlet operator

View File

@@ -6,9 +6,9 @@ package dependencymagnet
import (
_ "github.com/go-bindata/go-bindata/go-bindata"
_ "github.com/open-cluster-management/api/addon/v1alpha1"
_ "github.com/open-cluster-management/api/cluster/v1"
_ "github.com/open-cluster-management/api/cluster/v1alpha1"
_ "github.com/open-cluster-management/api/work/v1"
_ "github.com/openshift/build-machinery-go"
_ "open-cluster-management.io/api/addon/v1alpha1"
_ "open-cluster-management.io/api/cluster/v1"
_ "open-cluster-management.io/api/cluster/v1alpha1"
_ "open-cluster-management.io/api/work/v1"
)

View File

@@ -4,8 +4,8 @@ import (
"context"
"fmt"
operatorv1client "github.com/open-cluster-management/api/client/operator/clientset/versioned/typed/operator/v1"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
operatorv1client "open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
admissionv1 "k8s.io/api/admissionregistration/v1"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"

View File

@@ -8,13 +8,13 @@ import (
"testing"
"time"
opereatorfake "github.com/open-cluster-management/api/client/operator/clientset/versioned/fake"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
"github.com/openshift/library-go/pkg/operator/events/eventstesting"
operatorhelpers "github.com/openshift/library-go/pkg/operator/v1helpers"
admissionv1 "k8s.io/api/admissionregistration/v1"
corev1 "k8s.io/api/core/v1"
fakeapiextensions "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/fake"
opereatorfake "open-cluster-management.io/api/client/operator/clientset/versioned/fake"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
appsv1 "k8s.io/api/apps/v1"
"k8s.io/apimachinery/pkg/api/equality"

View File

@@ -9,8 +9,8 @@ import (
"github.com/openshift/library-go/pkg/controller/factory"
operatorlister "github.com/open-cluster-management/api/client/operator/listers/operator/v1"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
operatorlister "open-cluster-management.io/api/client/operator/listers/operator/v1"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
)
const (

View File

@@ -8,9 +8,9 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
fakeoperatorclient "github.com/open-cluster-management/api/client/operator/clientset/versioned/fake"
operatorinformers "github.com/open-cluster-management/api/client/operator/informers/externalversions"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
fakeoperatorclient "open-cluster-management.io/api/client/operator/clientset/versioned/fake"
operatorinformers "open-cluster-management.io/api/client/operator/informers/externalversions"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
)
func newSecret(name, namespace string) *corev1.Secret {

View File

@@ -11,8 +11,8 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
clienttesting "k8s.io/client-go/testing"
opratorapiv1 "github.com/open-cluster-management/api/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
opratorapiv1 "open-cluster-management.io/api/operator/v1"
"open-cluster-management.io/registration-operator/pkg/helpers"
)
func AssertAction(t *testing.T, actual clienttesting.Action, expected string) {

View File

@@ -15,10 +15,10 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/klog/v2"
operatorinformer "github.com/open-cluster-management/api/client/operator/informers/externalversions/operator/v1"
operatorlister "github.com/open-cluster-management/api/client/operator/listers/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/certrotation"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
operatorinformer "open-cluster-management.io/api/client/operator/informers/externalversions/operator/v1"
operatorlister "open-cluster-management.io/api/client/operator/listers/operator/v1"
"open-cluster-management.io/registration-operator/pkg/certrotation"
"open-cluster-management.io/registration-operator/pkg/helpers"
)
const (

View File

@@ -15,12 +15,12 @@ import (
fakekube "k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/util/cert"
fakeoperatorclient "github.com/open-cluster-management/api/client/operator/clientset/versioned/fake"
operatorinformers "github.com/open-cluster-management/api/client/operator/informers/externalversions"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/certrotation"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
testinghelper "github.com/open-cluster-management/registration-operator/pkg/helpers/testing"
fakeoperatorclient "open-cluster-management.io/api/client/operator/clientset/versioned/fake"
operatorinformers "open-cluster-management.io/api/client/operator/informers/externalversions"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
"open-cluster-management.io/registration-operator/pkg/certrotation"
"open-cluster-management.io/registration-operator/pkg/helpers"
testinghelper "open-cluster-management.io/registration-operator/pkg/helpers/testing"
)
const testClusterManagerName = "testclustermanager"

View File

@@ -24,12 +24,12 @@ import (
corev1informers "k8s.io/client-go/informers/core/v1"
corev1listers "k8s.io/client-go/listers/core/v1"
operatorv1client "github.com/open-cluster-management/api/client/operator/clientset/versioned/typed/operator/v1"
operatorinformer "github.com/open-cluster-management/api/client/operator/informers/externalversions/operator/v1"
operatorlister "github.com/open-cluster-management/api/client/operator/listers/operator/v1"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
"github.com/open-cluster-management/registration-operator/pkg/operators/clustermanager/bindata"
operatorv1client "open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1"
operatorinformer "open-cluster-management.io/api/client/operator/informers/externalversions/operator/v1"
operatorlister "open-cluster-management.io/api/client/operator/listers/operator/v1"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
"open-cluster-management.io/registration-operator/pkg/helpers"
"open-cluster-management.io/registration-operator/pkg/operators/clustermanager/bindata"
)
var (

View File

@@ -5,9 +5,6 @@ import (
"testing"
"time"
fakeoperatorlient "github.com/open-cluster-management/api/client/operator/clientset/versioned/fake"
operatorinformers "github.com/open-cluster-management/api/client/operator/informers/externalversions"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
@@ -20,9 +17,12 @@ import (
fakekube "k8s.io/client-go/kubernetes/fake"
clienttesting "k8s.io/client-go/testing"
fakeapiregistration "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/fake"
fakeoperatorlient "open-cluster-management.io/api/client/operator/clientset/versioned/fake"
operatorinformers "open-cluster-management.io/api/client/operator/informers/externalversions"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
testinghelper "github.com/open-cluster-management/registration-operator/pkg/helpers/testing"
"open-cluster-management.io/registration-operator/pkg/helpers"
testinghelper "open-cluster-management.io/registration-operator/pkg/helpers/testing"
)
type testController struct {

View File

@@ -12,10 +12,10 @@ import (
appslister "k8s.io/client-go/listers/apps/v1"
"k8s.io/klog/v2"
operatorv1client "github.com/open-cluster-management/api/client/operator/clientset/versioned/typed/operator/v1"
operatorinformer "github.com/open-cluster-management/api/client/operator/informers/externalversions/operator/v1"
operatorlister "github.com/open-cluster-management/api/client/operator/listers/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
operatorv1client "open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1"
operatorinformer "open-cluster-management.io/api/client/operator/informers/externalversions/operator/v1"
operatorlister "open-cluster-management.io/api/client/operator/listers/operator/v1"
"open-cluster-management.io/registration-operator/pkg/helpers"
"github.com/openshift/library-go/pkg/controller/factory"
"github.com/openshift/library-go/pkg/operator/events"

View File

@@ -13,10 +13,10 @@ import (
fakekube "k8s.io/client-go/kubernetes/fake"
clienttesting "k8s.io/client-go/testing"
fakeoperatorclient "github.com/open-cluster-management/api/client/operator/clientset/versioned/fake"
operatorinformers "github.com/open-cluster-management/api/client/operator/informers/externalversions"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
testinghelper "github.com/open-cluster-management/registration-operator/pkg/helpers/testing"
fakeoperatorclient "open-cluster-management.io/api/client/operator/clientset/versioned/fake"
operatorinformers "open-cluster-management.io/api/client/operator/informers/externalversions"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
testinghelper "open-cluster-management.io/registration-operator/pkg/helpers/testing"
)
const testClusterManagerName = "testclustermanager"

View File

@@ -6,9 +6,9 @@ import (
"fmt"
"time"
operatorinformer "github.com/open-cluster-management/api/client/operator/informers/externalversions/operator/v1"
operatorlister "github.com/open-cluster-management/api/client/operator/listers/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
operatorinformer "open-cluster-management.io/api/client/operator/informers/externalversions/operator/v1"
operatorlister "open-cluster-management.io/api/client/operator/listers/operator/v1"
"open-cluster-management.io/registration-operator/pkg/helpers"
"github.com/openshift/library-go/pkg/controller/factory"
"github.com/openshift/library-go/pkg/operator/events"

View File

@@ -11,10 +11,10 @@ import (
"testing"
"time"
fakeoperatorclient "github.com/open-cluster-management/api/client/operator/clientset/versioned/fake"
operatorinformers "github.com/open-cluster-management/api/client/operator/informers/externalversions"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
testinghelper "github.com/open-cluster-management/registration-operator/pkg/helpers/testing"
fakeoperatorclient "open-cluster-management.io/api/client/operator/clientset/versioned/fake"
operatorinformers "open-cluster-management.io/api/client/operator/informers/externalversions"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
testinghelper "open-cluster-management.io/registration-operator/pkg/helpers/testing"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"

View File

@@ -27,14 +27,14 @@ import (
"github.com/openshift/library-go/pkg/operator/resource/resourceapply"
operatorhelpers "github.com/openshift/library-go/pkg/operator/v1helpers"
operatorv1client "github.com/open-cluster-management/api/client/operator/clientset/versioned/typed/operator/v1"
operatorinformer "github.com/open-cluster-management/api/client/operator/informers/externalversions/operator/v1"
operatorlister "github.com/open-cluster-management/api/client/operator/listers/operator/v1"
workv1client "github.com/open-cluster-management/api/client/work/clientset/versioned/typed/work/v1"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
"github.com/open-cluster-management/registration-operator/pkg/operators/klusterlet/bindata"
"github.com/open-cluster-management/registration-operator/pkg/operators/klusterlet/kube111bindata"
operatorv1client "open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1"
operatorinformer "open-cluster-management.io/api/client/operator/informers/externalversions/operator/v1"
operatorlister "open-cluster-management.io/api/client/operator/listers/operator/v1"
workv1client "open-cluster-management.io/api/client/work/clientset/versioned/typed/work/v1"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
"open-cluster-management.io/registration-operator/pkg/helpers"
"open-cluster-management.io/registration-operator/pkg/operators/klusterlet/bindata"
"open-cluster-management.io/registration-operator/pkg/operators/klusterlet/kube111bindata"
)
const (

View File

@@ -7,13 +7,6 @@ import (
"testing"
"time"
fakeoperatorclient "github.com/open-cluster-management/api/client/operator/clientset/versioned/fake"
operatorinformers "github.com/open-cluster-management/api/client/operator/informers/externalversions"
fakeworkclient "github.com/open-cluster-management/api/client/work/clientset/versioned/fake"
opratorapiv1 "github.com/open-cluster-management/api/operator/v1"
workapiv1 "github.com/open-cluster-management/api/work/v1"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
testinghelper "github.com/open-cluster-management/registration-operator/pkg/helpers/testing"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
fakeapiextensions "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/fake"
@@ -28,6 +21,13 @@ import (
"k8s.io/client-go/tools/cache"
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
clientcmdlatest "k8s.io/client-go/tools/clientcmd/api/latest"
fakeoperatorclient "open-cluster-management.io/api/client/operator/clientset/versioned/fake"
operatorinformers "open-cluster-management.io/api/client/operator/informers/externalversions"
fakeworkclient "open-cluster-management.io/api/client/work/clientset/versioned/fake"
opratorapiv1 "open-cluster-management.io/api/operator/v1"
workapiv1 "open-cluster-management.io/api/work/v1"
"open-cluster-management.io/registration-operator/pkg/helpers"
testinghelper "open-cluster-management.io/registration-operator/pkg/helpers/testing"
)
type testController struct {

View File

@@ -21,10 +21,10 @@ import (
"github.com/openshift/library-go/pkg/controller/factory"
"github.com/openshift/library-go/pkg/operator/events"
operatorv1client "github.com/open-cluster-management/api/client/operator/clientset/versioned/typed/operator/v1"
operatorinformer "github.com/open-cluster-management/api/client/operator/informers/externalversions/operator/v1"
operatorlister "github.com/open-cluster-management/api/client/operator/listers/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
operatorv1client "open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1"
operatorinformer "open-cluster-management.io/api/client/operator/informers/externalversions/operator/v1"
operatorlister "open-cluster-management.io/api/client/operator/listers/operator/v1"
"open-cluster-management.io/registration-operator/pkg/helpers"
)
type klusterletStatusController struct {

View File

@@ -20,11 +20,11 @@ import (
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
clientcmdlatest "k8s.io/client-go/tools/clientcmd/api/latest"
fakeoperatorclient "github.com/open-cluster-management/api/client/operator/clientset/versioned/fake"
operatorinformers "github.com/open-cluster-management/api/client/operator/informers/externalversions"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
testinghelper "github.com/open-cluster-management/registration-operator/pkg/helpers/testing"
fakeoperatorclient "open-cluster-management.io/api/client/operator/clientset/versioned/fake"
operatorinformers "open-cluster-management.io/api/client/operator/informers/externalversions"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
"open-cluster-management.io/registration-operator/pkg/helpers"
testinghelper "open-cluster-management.io/registration-operator/pkg/helpers/testing"
)
type testController struct {

View File

@@ -13,16 +13,16 @@ import (
"github.com/openshift/library-go/pkg/controller/controllercmd"
operatorclient "github.com/open-cluster-management/api/client/operator/clientset/versioned"
operatorinformer "github.com/open-cluster-management/api/client/operator/informers/externalversions"
workclientset "github.com/open-cluster-management/api/client/work/clientset/versioned"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
certrotationcontroller "github.com/open-cluster-management/registration-operator/pkg/operators/clustermanager/controllers/certrotationcontroller"
"github.com/open-cluster-management/registration-operator/pkg/operators/clustermanager/controllers/clustermanagercontroller"
clustermanagerstatuscontroller "github.com/open-cluster-management/registration-operator/pkg/operators/clustermanager/controllers/statuscontroller"
"github.com/open-cluster-management/registration-operator/pkg/operators/klusterlet/controllers/bootstrapcontroller"
"github.com/open-cluster-management/registration-operator/pkg/operators/klusterlet/controllers/klusterletcontroller"
"github.com/open-cluster-management/registration-operator/pkg/operators/klusterlet/controllers/statuscontroller"
operatorclient "open-cluster-management.io/api/client/operator/clientset/versioned"
operatorinformer "open-cluster-management.io/api/client/operator/informers/externalversions"
workclientset "open-cluster-management.io/api/client/work/clientset/versioned"
"open-cluster-management.io/registration-operator/pkg/helpers"
certrotationcontroller "open-cluster-management.io/registration-operator/pkg/operators/clustermanager/controllers/certrotationcontroller"
"open-cluster-management.io/registration-operator/pkg/operators/clustermanager/controllers/clustermanagercontroller"
clustermanagerstatuscontroller "open-cluster-management.io/registration-operator/pkg/operators/clustermanager/controllers/statuscontroller"
"open-cluster-management.io/registration-operator/pkg/operators/klusterlet/controllers/bootstrapcontroller"
"open-cluster-management.io/registration-operator/pkg/operators/klusterlet/controllers/klusterletcontroller"
"open-cluster-management.io/registration-operator/pkg/operators/klusterlet/controllers/statuscontroller"
)
// defaultSpokeComponentNamespace is the default namespace in which the operator is deployed

View File

@@ -1,10 +0,0 @@
sonar.projectKey=open-cluster-management_registration-operator
sonar.projectName=registration-operator
sonar.sources=.
sonar.exclusions=**/*_test.go,**/*_generated*.go,**/*_generated/**,**/vendor/**,**/test/**,**/cmd/**,**/pkg/cmd/**
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.test.exclusions=**/*_generated*.go,**/*_generated/**,**/vendor/**
sonar.go.tests.reportPaths=report.json
sonar.go.coverage.reportPaths=coverage.out
sonar.externalIssuesReportPaths=gosec.json

View File

@@ -13,15 +13,6 @@ import (
"github.com/onsi/gomega"
addonv1alpha1 "github.com/open-cluster-management/api/addon/v1alpha1"
addonclient "github.com/open-cluster-management/api/client/addon/clientset/versioned"
clusterclient "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
operatorclient "github.com/open-cluster-management/api/client/operator/clientset/versioned"
workv1client "github.com/open-cluster-management/api/client/work/clientset/versioned"
clusterv1 "github.com/open-cluster-management/api/cluster/v1"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
workapiv1 "github.com/open-cluster-management/api/work/v1"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
coordv1 "k8s.io/api/coordination/v1"
corev1 "k8s.io/api/core/v1"
@@ -33,6 +24,15 @@ import (
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/tools/clientcmd"
addonv1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
addonclient "open-cluster-management.io/api/client/addon/clientset/versioned"
clusterclient "open-cluster-management.io/api/client/cluster/clientset/versioned"
operatorclient "open-cluster-management.io/api/client/operator/clientset/versioned"
workv1client "open-cluster-management.io/api/client/work/clientset/versioned"
clusterv1 "open-cluster-management.io/api/cluster/v1"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
workapiv1 "open-cluster-management.io/api/work/v1"
"open-cluster-management.io/registration-operator/pkg/helpers"
)
type Tester struct {

View File

@@ -11,8 +11,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/rand"
clusterapiv1 "github.com/open-cluster-management/api/cluster/v1"
clusterapiv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
clusterapiv1 "open-cluster-management.io/api/cluster/v1"
clusterapiv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
)
const (

View File

@@ -14,10 +14,10 @@ import (
"github.com/openshift/library-go/pkg/controller/controllercmd"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
"github.com/open-cluster-management/registration-operator/pkg/operators"
certrotation "github.com/open-cluster-management/registration-operator/pkg/operators/clustermanager/controllers/certrotationcontroller"
"github.com/open-cluster-management/registration-operator/test/integration/util"
"open-cluster-management.io/registration-operator/pkg/helpers"
"open-cluster-management.io/registration-operator/pkg/operators"
certrotation "open-cluster-management.io/registration-operator/pkg/operators/clustermanager/controllers/certrotationcontroller"
"open-cluster-management.io/registration-operator/test/integration/util"
)
func startHubOperator(ctx context.Context) {

View File

@@ -18,9 +18,9 @@ import (
logf "sigs.k8s.io/controller-runtime/pkg/log"
operatorclient "github.com/open-cluster-management/api/client/operator/clientset/versioned"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/operators/klusterlet/controllers/bootstrapcontroller"
operatorclient "open-cluster-management.io/api/client/operator/clientset/versioned"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
"open-cluster-management.io/registration-operator/pkg/operators/klusterlet/controllers/bootstrapcontroller"
)
func TestIntegration(t *testing.T) {

View File

@@ -16,10 +16,10 @@ import (
"github.com/openshift/library-go/pkg/controller/controllercmd"
operatorapiv1 "github.com/open-cluster-management/api/operator/v1"
"github.com/open-cluster-management/registration-operator/pkg/helpers"
"github.com/open-cluster-management/registration-operator/pkg/operators"
"github.com/open-cluster-management/registration-operator/test/integration/util"
operatorapiv1 "open-cluster-management.io/api/operator/v1"
"open-cluster-management.io/registration-operator/pkg/helpers"
"open-cluster-management.io/registration-operator/pkg/operators"
"open-cluster-management.io/registration-operator/test/integration/util"
)
func startKlusterletOperator(ctx context.Context) {

View File

@@ -7,7 +7,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
operatorclientset "github.com/open-cluster-management/api/client/operator/clientset/versioned"
operatorclientset "open-cluster-management.io/api/client/operator/clientset/versioned"
)
const (

View File

@@ -148,7 +148,7 @@ const (
PodDeletionCost = "controller.kubernetes.io/pod-deletion-cost"
// AnnotationTopologyAwareHints can be used to enable or disable Topology
// Aware Hints for a Service. This may be set to "auto" or "disabled". Any
// other value is treated as "disabled".
// Aware Hints for a Service. This may be set to "Auto" or "Disabled". Any
// other value is treated as "Disabled".
AnnotationTopologyAwareHints = "service.kubernetes.io/topology-aware-hints"
)

View File

@@ -166,7 +166,7 @@ func (m *Quantity) Unmarshal(data []byte) error {
if err != nil {
return err
}
if skippy < 0 {
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {

64
vendor/modules.txt vendored
View File

@@ -138,35 +138,6 @@ github.com/onsi/gomega/matchers/support/goraph/edge
github.com/onsi/gomega/matchers/support/goraph/node
github.com/onsi/gomega/matchers/support/goraph/util
github.com/onsi/gomega/types
# github.com/open-cluster-management/api v0.0.0-20210527013639-a6845f2ebcb1
## explicit
github.com/open-cluster-management/api/addon/v1alpha1
github.com/open-cluster-management/api/client/addon/clientset/versioned
github.com/open-cluster-management/api/client/addon/clientset/versioned/scheme
github.com/open-cluster-management/api/client/addon/clientset/versioned/typed/addon/v1alpha1
github.com/open-cluster-management/api/client/cluster/clientset/versioned
github.com/open-cluster-management/api/client/cluster/clientset/versioned/scheme
github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1
github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1
github.com/open-cluster-management/api/client/operator/clientset/versioned
github.com/open-cluster-management/api/client/operator/clientset/versioned/fake
github.com/open-cluster-management/api/client/operator/clientset/versioned/scheme
github.com/open-cluster-management/api/client/operator/clientset/versioned/typed/operator/v1
github.com/open-cluster-management/api/client/operator/clientset/versioned/typed/operator/v1/fake
github.com/open-cluster-management/api/client/operator/informers/externalversions
github.com/open-cluster-management/api/client/operator/informers/externalversions/internalinterfaces
github.com/open-cluster-management/api/client/operator/informers/externalversions/operator
github.com/open-cluster-management/api/client/operator/informers/externalversions/operator/v1
github.com/open-cluster-management/api/client/operator/listers/operator/v1
github.com/open-cluster-management/api/client/work/clientset/versioned
github.com/open-cluster-management/api/client/work/clientset/versioned/fake
github.com/open-cluster-management/api/client/work/clientset/versioned/scheme
github.com/open-cluster-management/api/client/work/clientset/versioned/typed/work/v1
github.com/open-cluster-management/api/client/work/clientset/versioned/typed/work/v1/fake
github.com/open-cluster-management/api/cluster/v1
github.com/open-cluster-management/api/cluster/v1alpha1
github.com/open-cluster-management/api/operator/v1
github.com/open-cluster-management/api/work/v1
# github.com/openshift/api v0.0.0-20210331193751-3acddb19d360
## explicit
github.com/openshift/api
@@ -464,7 +435,7 @@ gopkg.in/natefinch/lumberjack.v2
gopkg.in/tomb.v1
# gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v2
# k8s.io/api v0.21.0-rc.0
# k8s.io/api v0.21.1
## explicit
k8s.io/api/admission/v1
k8s.io/api/admission/v1beta1
@@ -524,7 +495,7 @@ k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextension
k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake
k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1
k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/fake
# k8s.io/apimachinery v0.21.0-rc.0
# k8s.io/apimachinery v0.21.1
## explicit
k8s.io/apimachinery/pkg/api/equality
k8s.io/apimachinery/pkg/api/errors
@@ -704,7 +675,7 @@ k8s.io/apiserver/plugin/pkg/audit/truncate
k8s.io/apiserver/plugin/pkg/audit/webhook
k8s.io/apiserver/plugin/pkg/authenticator/token/webhook
k8s.io/apiserver/plugin/pkg/authorizer/webhook
# k8s.io/client-go v0.21.0-rc.0
# k8s.io/client-go v0.21.1
## explicit
k8s.io/client-go/applyconfigurations/admissionregistration/v1
k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1
@@ -1011,6 +982,35 @@ k8s.io/utils/net
k8s.io/utils/path
k8s.io/utils/pointer
k8s.io/utils/trace
# open-cluster-management.io/api v0.0.0-20210610125115-f57c747b84aa
## explicit
open-cluster-management.io/api/addon/v1alpha1
open-cluster-management.io/api/client/addon/clientset/versioned
open-cluster-management.io/api/client/addon/clientset/versioned/scheme
open-cluster-management.io/api/client/addon/clientset/versioned/typed/addon/v1alpha1
open-cluster-management.io/api/client/cluster/clientset/versioned
open-cluster-management.io/api/client/cluster/clientset/versioned/scheme
open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1
open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1
open-cluster-management.io/api/client/operator/clientset/versioned
open-cluster-management.io/api/client/operator/clientset/versioned/fake
open-cluster-management.io/api/client/operator/clientset/versioned/scheme
open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1
open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1/fake
open-cluster-management.io/api/client/operator/informers/externalversions
open-cluster-management.io/api/client/operator/informers/externalversions/internalinterfaces
open-cluster-management.io/api/client/operator/informers/externalversions/operator
open-cluster-management.io/api/client/operator/informers/externalversions/operator/v1
open-cluster-management.io/api/client/operator/listers/operator/v1
open-cluster-management.io/api/client/work/clientset/versioned
open-cluster-management.io/api/client/work/clientset/versioned/fake
open-cluster-management.io/api/client/work/clientset/versioned/scheme
open-cluster-management.io/api/client/work/clientset/versioned/typed/work/v1
open-cluster-management.io/api/client/work/clientset/versioned/typed/work/v1/fake
open-cluster-management.io/api/cluster/v1
open-cluster-management.io/api/cluster/v1alpha1
open-cluster-management.io/api/operator/v1
open-cluster-management.io/api/work/v1
# sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.15
sigs.k8s.io/apiserver-network-proxy/konnectivity-client/pkg/client
sigs.k8s.io/apiserver-network-proxy/konnectivity-client/proto/client

View File

@@ -5,10 +5,10 @@ package versioned
import (
"fmt"
addonv1alpha1 "github.com/open-cluster-management/api/client/addon/clientset/versioned/typed/addon/v1alpha1"
discovery "k8s.io/client-go/discovery"
rest "k8s.io/client-go/rest"
flowcontrol "k8s.io/client-go/util/flowcontrol"
addonv1alpha1 "open-cluster-management.io/api/client/addon/clientset/versioned/typed/addon/v1alpha1"
)
type Interface interface {

View File

@@ -3,12 +3,12 @@
package scheme
import (
addonv1alpha1 "github.com/open-cluster-management/api/addon/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
addonv1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
)
var Scheme = runtime.NewScheme()

View File

@@ -3,9 +3,9 @@
package v1alpha1
import (
v1alpha1 "github.com/open-cluster-management/api/addon/v1alpha1"
"github.com/open-cluster-management/api/client/addon/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
v1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
"open-cluster-management.io/api/client/addon/clientset/versioned/scheme"
)
type AddonV1alpha1Interface interface {

View File

@@ -6,12 +6,12 @@ import (
"context"
"time"
v1alpha1 "github.com/open-cluster-management/api/addon/v1alpha1"
scheme "github.com/open-cluster-management/api/client/addon/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
v1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
scheme "open-cluster-management.io/api/client/addon/clientset/versioned/scheme"
)
// ClusterManagementAddOnsGetter has a method to return a ClusterManagementAddOnInterface.

View File

@@ -6,12 +6,12 @@ import (
"context"
"time"
v1alpha1 "github.com/open-cluster-management/api/addon/v1alpha1"
scheme "github.com/open-cluster-management/api/client/addon/clientset/versioned/scheme"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
v1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
scheme "open-cluster-management.io/api/client/addon/clientset/versioned/scheme"
)
// ManagedClusterAddOnsGetter has a method to return a ManagedClusterAddOnInterface.

View File

@@ -5,11 +5,11 @@ package versioned
import (
"fmt"
clusterv1 "github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1"
clusterv1alpha1 "github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1"
discovery "k8s.io/client-go/discovery"
rest "k8s.io/client-go/rest"
flowcontrol "k8s.io/client-go/util/flowcontrol"
clusterv1 "open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1"
clusterv1alpha1 "open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1"
)
type Interface interface {

View File

@@ -3,13 +3,13 @@
package scheme
import (
clusterv1 "github.com/open-cluster-management/api/cluster/v1"
clusterv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
clusterv1 "open-cluster-management.io/api/cluster/v1"
clusterv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
)
var Scheme = runtime.NewScheme()

View File

@@ -3,9 +3,9 @@
package v1
import (
"github.com/open-cluster-management/api/client/cluster/clientset/versioned/scheme"
v1 "github.com/open-cluster-management/api/cluster/v1"
rest "k8s.io/client-go/rest"
"open-cluster-management.io/api/client/cluster/clientset/versioned/scheme"
v1 "open-cluster-management.io/api/cluster/v1"
)
type ClusterV1Interface interface {

View File

@@ -6,12 +6,12 @@ import (
"context"
"time"
scheme "github.com/open-cluster-management/api/client/cluster/clientset/versioned/scheme"
v1 "github.com/open-cluster-management/api/cluster/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
scheme "open-cluster-management.io/api/client/cluster/clientset/versioned/scheme"
v1 "open-cluster-management.io/api/cluster/v1"
)
// ManagedClustersGetter has a method to return a ManagedClusterInterface.

View File

@@ -3,9 +3,9 @@
package v1alpha1
import (
"github.com/open-cluster-management/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
rest "k8s.io/client-go/rest"
"open-cluster-management.io/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
)
type ClusterV1alpha1Interface interface {

View File

@@ -6,12 +6,12 @@ import (
"context"
"time"
scheme "github.com/open-cluster-management/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
scheme "open-cluster-management.io/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
)
// ClusterClaimsGetter has a method to return a ClusterClaimInterface.

View File

@@ -6,12 +6,12 @@ import (
"context"
"time"
scheme "github.com/open-cluster-management/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
scheme "open-cluster-management.io/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
)
// ManagedClusterSetsGetter has a method to return a ManagedClusterSetInterface.

View File

@@ -6,12 +6,12 @@ import (
"context"
"time"
scheme "github.com/open-cluster-management/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
scheme "open-cluster-management.io/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
)
// ManagedClusterSetBindingsGetter has a method to return a ManagedClusterSetBindingInterface.

View File

@@ -6,12 +6,12 @@ import (
"context"
"time"
scheme "github.com/open-cluster-management/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
scheme "open-cluster-management.io/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
)
// PlacementsGetter has a method to return a PlacementInterface.

View File

@@ -6,12 +6,12 @@ import (
"context"
"time"
scheme "github.com/open-cluster-management/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
scheme "open-cluster-management.io/api/client/cluster/clientset/versioned/scheme"
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
)
// PlacementDecisionsGetter has a method to return a PlacementDecisionInterface.

View File

@@ -5,10 +5,10 @@ package versioned
import (
"fmt"
operatorv1 "github.com/open-cluster-management/api/client/operator/clientset/versioned/typed/operator/v1"
discovery "k8s.io/client-go/discovery"
rest "k8s.io/client-go/rest"
flowcontrol "k8s.io/client-go/util/flowcontrol"
operatorv1 "open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1"
)
type Interface interface {

View File

@@ -3,14 +3,14 @@
package fake
import (
clientset "github.com/open-cluster-management/api/client/operator/clientset/versioned"
operatorv1 "github.com/open-cluster-management/api/client/operator/clientset/versioned/typed/operator/v1"
fakeoperatorv1 "github.com/open-cluster-management/api/client/operator/clientset/versioned/typed/operator/v1/fake"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/discovery"
fakediscovery "k8s.io/client-go/discovery/fake"
"k8s.io/client-go/testing"
clientset "open-cluster-management.io/api/client/operator/clientset/versioned"
operatorv1 "open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1"
fakeoperatorv1 "open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1/fake"
)
// NewSimpleClientset returns a clientset that will respond with the provided objects.

View File

@@ -3,12 +3,12 @@
package fake
import (
operatorv1 "github.com/open-cluster-management/api/operator/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
operatorv1 "open-cluster-management.io/api/operator/v1"
)
var scheme = runtime.NewScheme()

View File

@@ -3,12 +3,12 @@
package scheme
import (
operatorv1 "github.com/open-cluster-management/api/operator/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
operatorv1 "open-cluster-management.io/api/operator/v1"
)
var Scheme = runtime.NewScheme()

View File

@@ -6,12 +6,12 @@ import (
"context"
"time"
scheme "github.com/open-cluster-management/api/client/operator/clientset/versioned/scheme"
v1 "github.com/open-cluster-management/api/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
scheme "open-cluster-management.io/api/client/operator/clientset/versioned/scheme"
v1 "open-cluster-management.io/api/operator/v1"
)
// ClusterManagersGetter has a method to return a ClusterManagerInterface.

View File

@@ -5,13 +5,13 @@ package fake
import (
"context"
operatorv1 "github.com/open-cluster-management/api/operator/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
operatorv1 "open-cluster-management.io/api/operator/v1"
)
// FakeClusterManagers implements ClusterManagerInterface

View File

@@ -5,13 +5,13 @@ package fake
import (
"context"
operatorv1 "github.com/open-cluster-management/api/operator/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
operatorv1 "open-cluster-management.io/api/operator/v1"
)
// FakeKlusterlets implements KlusterletInterface

View File

@@ -3,9 +3,9 @@
package fake
import (
v1 "github.com/open-cluster-management/api/client/operator/clientset/versioned/typed/operator/v1"
rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing"
v1 "open-cluster-management.io/api/client/operator/clientset/versioned/typed/operator/v1"
)
type FakeOperatorV1 struct {

View File

@@ -6,12 +6,12 @@ import (
"context"
"time"
scheme "github.com/open-cluster-management/api/client/operator/clientset/versioned/scheme"
v1 "github.com/open-cluster-management/api/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
rest "k8s.io/client-go/rest"
scheme "open-cluster-management.io/api/client/operator/clientset/versioned/scheme"
v1 "open-cluster-management.io/api/operator/v1"
)
// KlusterletsGetter has a method to return a KlusterletInterface.

View File

@@ -3,9 +3,9 @@
package v1
import (
"github.com/open-cluster-management/api/client/operator/clientset/versioned/scheme"
v1 "github.com/open-cluster-management/api/operator/v1"
rest "k8s.io/client-go/rest"
"open-cluster-management.io/api/client/operator/clientset/versioned/scheme"
v1 "open-cluster-management.io/api/operator/v1"
)
type OperatorV1Interface interface {

View File

@@ -7,13 +7,13 @@ import (
sync "sync"
time "time"
versioned "github.com/open-cluster-management/api/client/operator/clientset/versioned"
internalinterfaces "github.com/open-cluster-management/api/client/operator/informers/externalversions/internalinterfaces"
operator "github.com/open-cluster-management/api/client/operator/informers/externalversions/operator"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
cache "k8s.io/client-go/tools/cache"
versioned "open-cluster-management.io/api/client/operator/clientset/versioned"
internalinterfaces "open-cluster-management.io/api/client/operator/informers/externalversions/internalinterfaces"
operator "open-cluster-management.io/api/client/operator/informers/externalversions/operator"
)
// SharedInformerOption defines the functional option type for SharedInformerFactory.

View File

@@ -5,9 +5,9 @@ package externalversions
import (
"fmt"
v1 "github.com/open-cluster-management/api/operator/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
cache "k8s.io/client-go/tools/cache"
v1 "open-cluster-management.io/api/operator/v1"
)
// GenericInformer is type of SharedIndexInformer which will locate and delegate to other

View File

@@ -5,10 +5,10 @@ package internalinterfaces
import (
time "time"
versioned "github.com/open-cluster-management/api/client/operator/clientset/versioned"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
cache "k8s.io/client-go/tools/cache"
versioned "open-cluster-management.io/api/client/operator/clientset/versioned"
)
// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.

View File

@@ -3,8 +3,8 @@
package operator
import (
internalinterfaces "github.com/open-cluster-management/api/client/operator/informers/externalversions/internalinterfaces"
v1 "github.com/open-cluster-management/api/client/operator/informers/externalversions/operator/v1"
internalinterfaces "open-cluster-management.io/api/client/operator/informers/externalversions/internalinterfaces"
v1 "open-cluster-management.io/api/client/operator/informers/externalversions/operator/v1"
)
// Interface provides access to each of this group's versions.

View File

@@ -6,14 +6,14 @@ import (
"context"
time "time"
versioned "github.com/open-cluster-management/api/client/operator/clientset/versioned"
internalinterfaces "github.com/open-cluster-management/api/client/operator/informers/externalversions/internalinterfaces"
v1 "github.com/open-cluster-management/api/client/operator/listers/operator/v1"
operatorv1 "github.com/open-cluster-management/api/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
cache "k8s.io/client-go/tools/cache"
versioned "open-cluster-management.io/api/client/operator/clientset/versioned"
internalinterfaces "open-cluster-management.io/api/client/operator/informers/externalversions/internalinterfaces"
v1 "open-cluster-management.io/api/client/operator/listers/operator/v1"
operatorv1 "open-cluster-management.io/api/operator/v1"
)
// ClusterManagerInformer provides access to a shared informer and lister for

View File

@@ -3,7 +3,7 @@
package v1
import (
internalinterfaces "github.com/open-cluster-management/api/client/operator/informers/externalversions/internalinterfaces"
internalinterfaces "open-cluster-management.io/api/client/operator/informers/externalversions/internalinterfaces"
)
// Interface provides access to all the informers in this group version.

View File

@@ -6,14 +6,14 @@ import (
"context"
time "time"
versioned "github.com/open-cluster-management/api/client/operator/clientset/versioned"
internalinterfaces "github.com/open-cluster-management/api/client/operator/informers/externalversions/internalinterfaces"
v1 "github.com/open-cluster-management/api/client/operator/listers/operator/v1"
operatorv1 "github.com/open-cluster-management/api/operator/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
cache "k8s.io/client-go/tools/cache"
versioned "open-cluster-management.io/api/client/operator/clientset/versioned"
internalinterfaces "open-cluster-management.io/api/client/operator/informers/externalversions/internalinterfaces"
v1 "open-cluster-management.io/api/client/operator/listers/operator/v1"
operatorv1 "open-cluster-management.io/api/operator/v1"
)
// KlusterletInformer provides access to a shared informer and lister for

View File

@@ -3,10 +3,10 @@
package v1
import (
v1 "github.com/open-cluster-management/api/operator/v1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
v1 "open-cluster-management.io/api/operator/v1"
)
// ClusterManagerLister helps list ClusterManagers.

View File

@@ -3,10 +3,10 @@
package v1
import (
v1 "github.com/open-cluster-management/api/operator/v1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
v1 "open-cluster-management.io/api/operator/v1"
)
// KlusterletLister helps list Klusterlets.

View File

@@ -5,10 +5,10 @@ package versioned
import (
"fmt"
workv1 "github.com/open-cluster-management/api/client/work/clientset/versioned/typed/work/v1"
discovery "k8s.io/client-go/discovery"
rest "k8s.io/client-go/rest"
flowcontrol "k8s.io/client-go/util/flowcontrol"
workv1 "open-cluster-management.io/api/client/work/clientset/versioned/typed/work/v1"
)
type Interface interface {

Some files were not shown because too many files have changed in this diff Show More