mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-22 00:54:00 +00:00
22
.github/workflows/dco.yml
vendored
Normal file
22
.github/workflows/dco.yml
vendored
Normal 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
36
.github/workflows/go-postsubmit.yml
vendored
Normal 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/placement/placement/go'
|
||||
defaults:
|
||||
run:
|
||||
working-directory: go/src/open-cluster-management.io/placement
|
||||
|
||||
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/placement
|
||||
- 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
129
.github/workflows/go-presubmit.yml
vendored
Normal 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
|
||||
@@ -1 +1 @@
|
||||
Refer to our [Open Cluster Management Community Code of Conduct](https://github.com/open-cluster-management/community/blob/main/CODE_OF_CONDUCT.md)
|
||||
Refer to our [Open Cluster Management Community Code of Conduct](https://github.com/open-cluster-management-io/community/blob/main/CODE_OF_CONDUCT.md)
|
||||
|
||||
@@ -17,11 +17,11 @@ All contributions to the repository must be submitted under the terms of the [Ap
|
||||
|
||||
## Certificate of Origin
|
||||
|
||||
By contributing to this project, you agree to the Developer Certificate of Origin (DCO). This document was created by the Linux Kernel community and is a simple statement that you, as a contributor, have the legal right to make the contribution. See the [DCO](https://github.com/open-cluster-management/community/blob/main/DCO) file for details.
|
||||
By contributing to this project, you agree to the Developer Certificate of Origin (DCO). This document was created by the Linux Kernel community and is a simple statement that you, as a contributor, have the legal right to make the contribution. See the [DCO](https://github.com/open-cluster-management-io/community/blob/main/DCO) file for details.
|
||||
|
||||
## DCO Sign Off
|
||||
|
||||
You must sign off your commit to state that you certify the [DCO](https://github.com/open-cluster-management/community/blob/main/DCO). To certify your commit for DCO, add a line like the following at the end of your commit message:
|
||||
You must sign off your commit to state that you certify the [DCO](https://github.com/open-cluster-management-io/community/blob/main/DCO). To certify your commit for DCO, add a line like the following at the end of your commit message:
|
||||
|
||||
```
|
||||
Signed-off-by: John Smith <john@example.com>
|
||||
@@ -31,7 +31,7 @@ This can be done with the `--signoff` option to `git commit`. See the [Git docum
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
The Open Cluster Management project has adopted the CNCF Code of Conduct. Refer to our [Community Code of Conduct](https://github.com/open-cluster-management/community/blob/main/CODE_OF_CONDUCT.md) for details.
|
||||
The Open Cluster Management project has adopted the CNCF Code of Conduct. Refer to our [Community Code of Conduct](https://github.com/open-cluster-management-io/community/blob/main/CODE_OF_CONDUCT.md) for details.
|
||||
|
||||
## Contributing a patch
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM docker.io/openshift/origin-release:golang-1.15 AS builder
|
||||
WORKDIR /go/src/github.com/open-cluster-management/placement
|
||||
WORKDIR /go/src/open-cluster-management.io/placement
|
||||
COPY . .
|
||||
ENV GO_PACKAGE github.com/open-cluster-management/placement
|
||||
ENV GO_PACKAGE open-cluster-management.io/placement
|
||||
|
||||
RUN make build --warn-undefined-variables
|
||||
RUN make build-e2e --warn-undefined-variables
|
||||
@@ -9,8 +9,8 @@ RUN make build-e2e --warn-undefined-variables
|
||||
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
|
||||
ENV USER_UID=10001
|
||||
|
||||
COPY --from=builder /go/src/github.com/open-cluster-management/placement/placement /
|
||||
COPY --from=builder /go/src/github.com/open-cluster-management/placement/e2e.test /
|
||||
COPY --from=builder /go/src/open-cluster-management.io/placement/placement /
|
||||
COPY --from=builder /go/src/open-cluster-management.io/placement/e2e.test /
|
||||
RUN microdnf update && microdnf clean all
|
||||
|
||||
USER ${USER_UID}
|
||||
|
||||
4
Makefile
4
Makefile
@@ -1,3 +1,5 @@
|
||||
SHELL :=/bin/bash
|
||||
|
||||
all: build
|
||||
.PHONY: all
|
||||
|
||||
@@ -20,7 +22,7 @@ KUSTOMIZE_VERSION?=v3.5.4
|
||||
KUSTOMIZE_ARCHIVE_NAME?=kustomize_$(KUSTOMIZE_VERSION)_$(GOHOSTOS)_$(GOHOSTARCH).tar.gz
|
||||
kustomize_dir:=$(dir $(KUSTOMIZE))
|
||||
|
||||
GIT_HOST ?= github.com/open-cluster-management
|
||||
GIT_HOST ?= open-cluster-management.io
|
||||
BASE_DIR := $(shell basename $(PWD))
|
||||
DEST := $(GOPATH)/src/$(GIT_HOST)/$(BASE_DIR)
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
Refer to our [Community Security Response](https://github.com/open-cluster-management/community/blob/main/SECURITY.md).
|
||||
Refer to our [Community Security Response](https://github.com/open-cluster-management-io/community/blob/main/SECURITY.md).
|
||||
|
||||
@@ -13,8 +13,8 @@ import (
|
||||
utilflag "k8s.io/component-base/cli/flag"
|
||||
"k8s.io/component-base/logs"
|
||||
|
||||
"github.com/open-cluster-management/placement/pkg/cmd/hub"
|
||||
"github.com/open-cluster-management/placement/pkg/version"
|
||||
"open-cluster-management.io/placement/pkg/cmd/hub"
|
||||
"open-cluster-management.io/placement/pkg/version"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
10
go.mod
10
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/open-cluster-management/placement
|
||||
module open-cluster-management.io/placement
|
||||
|
||||
go 1.15
|
||||
|
||||
@@ -7,15 +7,15 @@ replace github.com/googleapis/gnostic => github.com/googleapis/gnostic v0.4.1 //
|
||||
require (
|
||||
github.com/onsi/ginkgo v1.14.1
|
||||
github.com/onsi/gomega v1.10.2
|
||||
github.com/open-cluster-management/api v0.0.0-20210506014040-cc5aa104d1e1
|
||||
github.com/openshift/build-machinery-go v0.0.0-20210209125900-0da259a2c359
|
||||
github.com/openshift/library-go v0.0.0-20210420183610-0e395da73318
|
||||
github.com/spf13/cobra v1.1.3
|
||||
github.com/spf13/pflag v1.0.5
|
||||
k8s.io/api v0.21.0
|
||||
k8s.io/apimachinery v0.21.0
|
||||
k8s.io/client-go v0.21.0
|
||||
k8s.io/api v0.21.1
|
||||
k8s.io/apimachinery v0.21.1
|
||||
k8s.io/client-go v0.21.1
|
||||
k8s.io/component-base v0.21.0
|
||||
k8s.io/klog/v2 v2.8.0
|
||||
open-cluster-management.io/api v0.0.0-20210610125115-f57c747b84aa
|
||||
sigs.k8s.io/controller-runtime v0.8.3
|
||||
)
|
||||
|
||||
16
go.sum
16
go.sum
@@ -412,8 +412,6 @@ github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7J
|
||||
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
||||
github.com/onsi/gomega v1.10.2 h1:aY/nuoWlKJud2J6U0E3NWsjlg+0GtwXxgEqthRdzlcs=
|
||||
github.com/onsi/gomega v1.10.2/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
|
||||
github.com/open-cluster-management/api v0.0.0-20210506014040-cc5aa104d1e1 h1:9va9IHfKqoNtciaDNNP/bLTddT8Kxq8yzBbsCih+yaA=
|
||||
github.com/open-cluster-management/api v0.0.0-20210506014040-cc5aa104d1e1/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=
|
||||
@@ -886,12 +884,12 @@ honnef.co/go/tools v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3
|
||||
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
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.20.0/go.mod h1:HyLC5l5eoS/ygQYl1BXBgFzWNlkHiAuyNAbevIn+FKg=
|
||||
k8s.io/api v0.20.1/go.mod h1:KqwcCVogGxQY3nBlRpwt+wpAMF/KjaCc7RpywacvqUo=
|
||||
k8s.io/api v0.20.2/go.mod h1:d7n6Ehyzx+S+cE3VhTGfVNNqtGc/oL9DCdYYahlurV8=
|
||||
k8s.io/api v0.21.0-rc.0/go.mod h1:Dkc/ZauWJrgZhjOjeBgW89xZQiTBJA2RaBKYHXPsi2Y=
|
||||
k8s.io/api v0.21.0 h1:gu5iGF4V6tfVCQ/R+8Hc0h7H1JuEhzyEi9S4R5LM8+Y=
|
||||
k8s.io/api v0.21.0/go.mod h1:+YbrhBBGgsxbF6o6Kj4KJPJnBmAKuXDeS3E18bgHNVU=
|
||||
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.20.1/go.mod h1:ntnrZV+6a3dB504qwC5PN/Yg9PBiDNt1EVqbW2kORVk=
|
||||
@@ -899,12 +897,12 @@ k8s.io/apiextensions-apiserver v0.21.0-rc.0 h1:gxeak4PvTBhuiZagZRFv9WyNnAdG39/VC
|
||||
k8s.io/apiextensions-apiserver v0.21.0-rc.0/go.mod h1:ItIoMBJU1gy93Qwr/B2699r4b0VmZqAOU+15BvozxMY=
|
||||
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.20.0/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
|
||||
k8s.io/apimachinery v0.20.1/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
|
||||
k8s.io/apimachinery v0.20.2/go.mod h1:WlLqWAHZGg07AeltaI0MV5uk1Omp8xaN0JGLY6gkRpU=
|
||||
k8s.io/apimachinery v0.21.0-rc.0/go.mod h1:jbreFvJo3ov9rj7eWT7+sYiRx+qZuCYXwWT1bcDswPY=
|
||||
k8s.io/apimachinery v0.21.0 h1:3Fx+41if+IRavNcKOz09FwEXDBG6ORh6iMsTSelhkMA=
|
||||
k8s.io/apimachinery v0.21.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.20.1/go.mod h1:ro5QHeQkgMS7ZGpvf4tSMx6bBOgPfE+f52KwvXfScaU=
|
||||
@@ -912,12 +910,12 @@ k8s.io/apiserver v0.21.0-rc.0 h1:Ecvg4oAoQn5dK8V7W0TQIQqA4r+B/DH83HKSY4SuMSs=
|
||||
k8s.io/apiserver v0.21.0-rc.0/go.mod h1:QlW7+1CZTZtAcKvJ34/n4DIb8sC93FeQpkd1KSU+Sok=
|
||||
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.20.0/go.mod h1:4KWh/g+Ocd8KkCwKF8vUNnmqgv+EVnQDK4MBF4oB5tY=
|
||||
k8s.io/client-go v0.20.1/go.mod h1:/zcHdt1TeWSd5HoUe6elJmHSQ6uLLgp4bIJHVEuy+/Y=
|
||||
k8s.io/client-go v0.20.2/go.mod h1:kH5brqWqp7HDxUFKoEgiI4v8G1xzbe9giaCenUWJzgE=
|
||||
k8s.io/client-go v0.21.0-rc.0/go.mod h1:zU5HY/bSOKH3YOqoge9nFvICgrpeSdJu8DQ4fkjKIZk=
|
||||
k8s.io/client-go v0.21.0 h1:n0zzzJsAQmJngpC0IhgFcApZyoGXPrDIAD601HD09ag=
|
||||
k8s.io/client-go v0.21.0/go.mod h1:nNBytTF9qPFDEhoqgEPaarobC8QPae13bElIVHzIglA=
|
||||
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.20.0/go.mod h1:UsqdF+VX4PU2g46NC2JRs4gc+IfrctnwHb76RNbWHJg=
|
||||
@@ -962,6 +960,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=
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
|
||||
"github.com/openshift/library-go/pkg/controller/controllercmd"
|
||||
|
||||
controllers "github.com/open-cluster-management/placement/pkg/controllers"
|
||||
"github.com/open-cluster-management/placement/pkg/version"
|
||||
controllers "open-cluster-management.io/placement/pkg/controllers"
|
||||
"open-cluster-management.io/placement/pkg/version"
|
||||
)
|
||||
|
||||
func NewController() *cobra.Command {
|
||||
|
||||
@@ -6,9 +6,9 @@ import (
|
||||
|
||||
"github.com/openshift/library-go/pkg/controller/controllercmd"
|
||||
|
||||
clusterclient "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
clusterinformers "github.com/open-cluster-management/api/client/cluster/informers/externalversions"
|
||||
scheduling "github.com/open-cluster-management/placement/pkg/controllers/scheduling"
|
||||
clusterclient "open-cluster-management.io/api/client/cluster/clientset/versioned"
|
||||
clusterinformers "open-cluster-management.io/api/client/cluster/informers/externalversions"
|
||||
scheduling "open-cluster-management.io/placement/pkg/controllers/scheduling"
|
||||
)
|
||||
|
||||
// RunControllerManager starts the controllers on hub to make placement decisions.
|
||||
|
||||
@@ -3,13 +3,13 @@ package scheduling
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
clusterlisterv1alpha1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1 "github.com/open-cluster-management/api/cluster/v1"
|
||||
"k8s.io/apimachinery/pkg/api/errors"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
||||
cache "k8s.io/client-go/tools/cache"
|
||||
"k8s.io/klog/v2"
|
||||
clusterlisterv1alpha1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1 "open-cluster-management.io/api/cluster/v1"
|
||||
)
|
||||
|
||||
type clusterEventHandler struct {
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"k8s.io/apimachinery/pkg/util/sets"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
|
||||
clusterfake "github.com/open-cluster-management/api/client/cluster/clientset/versioned/fake"
|
||||
testinghelpers "github.com/open-cluster-management/placement/pkg/helpers/testing"
|
||||
clusterfake "open-cluster-management.io/api/client/cluster/clientset/versioned/fake"
|
||||
testinghelpers "open-cluster-management.io/placement/pkg/helpers/testing"
|
||||
)
|
||||
|
||||
func TestOnClusterChange(t *testing.T) {
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
cache "k8s.io/client-go/tools/cache"
|
||||
"k8s.io/klog/v2"
|
||||
|
||||
clusterlisterv1alpha1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
errorhelpers "github.com/openshift/library-go/pkg/operator/v1helpers"
|
||||
clusterlisterv1alpha1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
type clusterSetEventHandler struct {
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"k8s.io/apimachinery/pkg/util/sets"
|
||||
cache "k8s.io/client-go/tools/cache"
|
||||
|
||||
clusterfake "github.com/open-cluster-management/api/client/cluster/clientset/versioned/fake"
|
||||
testinghelpers "github.com/open-cluster-management/placement/pkg/helpers/testing"
|
||||
clusterfake "open-cluster-management.io/api/client/cluster/clientset/versioned/fake"
|
||||
testinghelpers "open-cluster-management.io/placement/pkg/helpers/testing"
|
||||
)
|
||||
|
||||
func TestEnqueuePlacementsByClusterSet(t *testing.T) {
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
cache "k8s.io/client-go/tools/cache"
|
||||
"k8s.io/klog/v2"
|
||||
|
||||
clusterlisterv1alpha1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
clusterlisterv1alpha1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
type clusterSetBindingEventHandler struct {
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"k8s.io/apimachinery/pkg/util/sets"
|
||||
cache "k8s.io/client-go/tools/cache"
|
||||
|
||||
clusterfake "github.com/open-cluster-management/api/client/cluster/clientset/versioned/fake"
|
||||
testinghelpers "github.com/open-cluster-management/placement/pkg/helpers/testing"
|
||||
clusterfake "open-cluster-management.io/api/client/cluster/clientset/versioned/fake"
|
||||
testinghelpers "open-cluster-management.io/placement/pkg/helpers/testing"
|
||||
)
|
||||
|
||||
func TestOnClusterSetBindingChange(t *testing.T) {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
type predicateSelector struct {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/util/sets"
|
||||
|
||||
clusterapiv1 "github.com/open-cluster-management/api/cluster/v1"
|
||||
clusterapiv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
testinghelpers "github.com/open-cluster-management/placement/pkg/helpers/testing"
|
||||
clusterapiv1 "open-cluster-management.io/api/cluster/v1"
|
||||
clusterapiv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
testinghelpers "open-cluster-management.io/placement/pkg/helpers/testing"
|
||||
)
|
||||
|
||||
func TestMatchWithClusterPredicates(t *testing.T) {
|
||||
|
||||
@@ -13,10 +13,10 @@ import (
|
||||
"k8s.io/apimachinery/pkg/selection"
|
||||
"k8s.io/apimachinery/pkg/util/sets"
|
||||
|
||||
clusterclient "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
clusterlisterv1alpha1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1 "github.com/open-cluster-management/api/cluster/v1"
|
||||
clusterapiv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
clusterclient "open-cluster-management.io/api/client/cluster/clientset/versioned"
|
||||
clusterlisterv1alpha1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1 "open-cluster-management.io/api/cluster/v1"
|
||||
clusterapiv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -12,10 +12,10 @@ import (
|
||||
"k8s.io/apimachinery/pkg/util/sets"
|
||||
clienttesting "k8s.io/client-go/testing"
|
||||
|
||||
clusterfake "github.com/open-cluster-management/api/client/cluster/clientset/versioned/fake"
|
||||
clusterapiv1 "github.com/open-cluster-management/api/cluster/v1"
|
||||
clusterapiv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
testinghelpers "github.com/open-cluster-management/placement/pkg/helpers/testing"
|
||||
clusterfake "open-cluster-management.io/api/client/cluster/clientset/versioned/fake"
|
||||
clusterapiv1 "open-cluster-management.io/api/cluster/v1"
|
||||
clusterapiv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
testinghelpers "open-cluster-management.io/placement/pkg/helpers/testing"
|
||||
)
|
||||
|
||||
func TestSchedule(t *testing.T) {
|
||||
|
||||
@@ -19,13 +19,13 @@ import (
|
||||
cache "k8s.io/client-go/tools/cache"
|
||||
"k8s.io/klog/v2"
|
||||
|
||||
clusterclient "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
clusterinformerv1 "github.com/open-cluster-management/api/client/cluster/informers/externalversions/cluster/v1"
|
||||
clusterinformerv1alpha1 "github.com/open-cluster-management/api/client/cluster/informers/externalversions/cluster/v1alpha1"
|
||||
clusterlisterv1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1"
|
||||
clusterlisterv1alpha1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1 "github.com/open-cluster-management/api/cluster/v1"
|
||||
clusterapiv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
clusterclient "open-cluster-management.io/api/client/cluster/clientset/versioned"
|
||||
clusterinformerv1 "open-cluster-management.io/api/client/cluster/informers/externalversions/cluster/v1"
|
||||
clusterinformerv1alpha1 "open-cluster-management.io/api/client/cluster/informers/externalversions/cluster/v1alpha1"
|
||||
clusterlisterv1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1"
|
||||
clusterlisterv1alpha1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1 "open-cluster-management.io/api/cluster/v1"
|
||||
clusterapiv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -10,12 +10,12 @@ import (
|
||||
"k8s.io/apimachinery/pkg/util/sets"
|
||||
clienttesting "k8s.io/client-go/testing"
|
||||
|
||||
clusterclient "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
clusterfake "github.com/open-cluster-management/api/client/cluster/clientset/versioned/fake"
|
||||
clusterlisterv1alpha1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1 "github.com/open-cluster-management/api/cluster/v1"
|
||||
clusterapiv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
testinghelpers "github.com/open-cluster-management/placement/pkg/helpers/testing"
|
||||
clusterclient "open-cluster-management.io/api/client/cluster/clientset/versioned"
|
||||
clusterfake "open-cluster-management.io/api/client/cluster/clientset/versioned/fake"
|
||||
clusterlisterv1alpha1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterapiv1 "open-cluster-management.io/api/cluster/v1"
|
||||
clusterapiv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
testinghelpers "open-cluster-management.io/placement/pkg/helpers/testing"
|
||||
)
|
||||
|
||||
func TestSchedulingController_sync(t *testing.T) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
type placementBuilder struct {
|
||||
|
||||
@@ -3,11 +3,11 @@ package testing
|
||||
import (
|
||||
"time"
|
||||
|
||||
clusterclient "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
clusterinformers "github.com/open-cluster-management/api/client/cluster/informers/externalversions"
|
||||
clusterapiv1 "github.com/open-cluster-management/api/cluster/v1"
|
||||
clusterapiv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
clusterclient "open-cluster-management.io/api/client/cluster/clientset/versioned"
|
||||
clusterinformers "open-cluster-management.io/api/client/cluster/informers/externalversions"
|
||||
clusterapiv1 "open-cluster-management.io/api/cluster/v1"
|
||||
clusterapiv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
func NewClusterInformerFactory(clusterClient clusterclient.Interface, objects ...runtime.Object) clusterinformers.SharedInformerFactory {
|
||||
|
||||
@@ -10,9 +10,9 @@ 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"
|
||||
"github.com/open-cluster-management/placement/test/integration/util"
|
||||
clusterapiv1 "open-cluster-management.io/api/cluster/v1"
|
||||
clusterapiv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
"open-cluster-management.io/placement/test/integration/util"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
logf "sigs.k8s.io/controller-runtime/pkg/log"
|
||||
"sigs.k8s.io/controller-runtime/pkg/log/zap"
|
||||
|
||||
clusterclient "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
clusterclient "open-cluster-management.io/api/client/cluster/clientset/versioned"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -12,10 +12,10 @@ 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"
|
||||
controllers "github.com/open-cluster-management/placement/pkg/controllers"
|
||||
"github.com/open-cluster-management/placement/test/integration/util"
|
||||
clusterapiv1 "open-cluster-management.io/api/cluster/v1"
|
||||
clusterapiv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
controllers "open-cluster-management.io/placement/pkg/controllers"
|
||||
"open-cluster-management.io/placement/test/integration/util"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"k8s.io/client-go/rest"
|
||||
"sigs.k8s.io/controller-runtime/pkg/envtest"
|
||||
|
||||
clusterv1client "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
clusterv1client "open-cluster-management.io/api/client/cluster/clientset/versioned"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -36,8 +36,8 @@ var _ = ginkgo.BeforeSuite(func(done ginkgo.Done) {
|
||||
testEnv = &envtest.Environment{
|
||||
ErrorIfCRDPathMissing: true,
|
||||
CRDDirectoryPaths: []string{
|
||||
filepath.Join(".", "vendor", "github.com", "open-cluster-management", "api", "cluster", "v1"),
|
||||
filepath.Join(".", "vendor", "github.com", "open-cluster-management", "api", "cluster", "v1alpha1"),
|
||||
filepath.Join(".", "vendor", "open-cluster-management.io", "api", "cluster", "v1"),
|
||||
filepath.Join(".", "vendor", "open-cluster-management.io", "api", "cluster", "v1alpha1"),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
4
vendor/k8s.io/api/core/v1/annotation_key_constants.go
generated
vendored
4
vendor/k8s.io/api/core/v1/annotation_key_constants.go
generated
vendored
@@ -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"
|
||||
)
|
||||
|
||||
2
vendor/k8s.io/apimachinery/pkg/api/resource/quantity_proto.go
generated
vendored
2
vendor/k8s.io/apimachinery/pkg/api/resource/quantity_proto.go
generated
vendored
@@ -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 {
|
||||
|
||||
42
vendor/modules.txt
vendored
42
vendor/modules.txt
vendored
@@ -133,24 +133,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-20210506014040-cc5aa104d1e1
|
||||
## explicit
|
||||
github.com/open-cluster-management/api/client/cluster/clientset/versioned
|
||||
github.com/open-cluster-management/api/client/cluster/clientset/versioned/fake
|
||||
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/v1/fake
|
||||
github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1
|
||||
github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1/fake
|
||||
github.com/open-cluster-management/api/client/cluster/informers/externalversions
|
||||
github.com/open-cluster-management/api/client/cluster/informers/externalversions/cluster
|
||||
github.com/open-cluster-management/api/client/cluster/informers/externalversions/cluster/v1
|
||||
github.com/open-cluster-management/api/client/cluster/informers/externalversions/cluster/v1alpha1
|
||||
github.com/open-cluster-management/api/client/cluster/informers/externalversions/internalinterfaces
|
||||
github.com/open-cluster-management/api/client/cluster/listers/cluster/v1
|
||||
github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1
|
||||
github.com/open-cluster-management/api/cluster/v1
|
||||
github.com/open-cluster-management/api/cluster/v1alpha1
|
||||
# github.com/openshift/api v0.0.0-20210331193751-3acddb19d360
|
||||
github.com/openshift/api/config/v1
|
||||
github.com/openshift/api/operator/v1
|
||||
@@ -393,7 +375,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
|
||||
# k8s.io/api v0.21.1
|
||||
## explicit
|
||||
k8s.io/api/admission/v1
|
||||
k8s.io/api/admission/v1beta1
|
||||
@@ -448,7 +430,7 @@ k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset
|
||||
k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/scheme
|
||||
k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1
|
||||
k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1
|
||||
# k8s.io/apimachinery v0.21.0
|
||||
# k8s.io/apimachinery v0.21.1
|
||||
## explicit
|
||||
k8s.io/apimachinery/pkg/api/equality
|
||||
k8s.io/apimachinery/pkg/api/errors
|
||||
@@ -627,7 +609,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
|
||||
# k8s.io/client-go v0.21.1
|
||||
## explicit
|
||||
k8s.io/client-go/applyconfigurations/admissionregistration/v1
|
||||
k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1
|
||||
@@ -877,6 +859,24 @@ 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/client/cluster/clientset/versioned
|
||||
open-cluster-management.io/api/client/cluster/clientset/versioned/fake
|
||||
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/v1/fake
|
||||
open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1
|
||||
open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1/fake
|
||||
open-cluster-management.io/api/client/cluster/informers/externalversions
|
||||
open-cluster-management.io/api/client/cluster/informers/externalversions/cluster
|
||||
open-cluster-management.io/api/client/cluster/informers/externalversions/cluster/v1
|
||||
open-cluster-management.io/api/client/cluster/informers/externalversions/cluster/v1alpha1
|
||||
open-cluster-management.io/api/client/cluster/informers/externalversions/internalinterfaces
|
||||
open-cluster-management.io/api/client/cluster/listers/cluster/v1
|
||||
open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1
|
||||
open-cluster-management.io/api/cluster/v1
|
||||
open-cluster-management.io/api/cluster/v1alpha1
|
||||
# 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
|
||||
|
||||
@@ -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 {
|
||||
@@ -3,16 +3,16 @@
|
||||
package fake
|
||||
|
||||
import (
|
||||
clientset "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
clusterv1 "github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1"
|
||||
fakeclusterv1 "github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1/fake"
|
||||
clusterv1alpha1 "github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1"
|
||||
fakeclusterv1alpha1 "github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1/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/cluster/clientset/versioned"
|
||||
clusterv1 "open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1"
|
||||
fakeclusterv1 "open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1/fake"
|
||||
clusterv1alpha1 "open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1"
|
||||
fakeclusterv1alpha1 "open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1/fake"
|
||||
)
|
||||
|
||||
// NewSimpleClientset returns a clientset that will respond with the provided objects.
|
||||
@@ -3,13 +3,13 @@
|
||||
package fake
|
||||
|
||||
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()
|
||||
@@ -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()
|
||||
@@ -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 {
|
||||
@@ -3,9 +3,9 @@
|
||||
package fake
|
||||
|
||||
import (
|
||||
v1 "github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1"
|
||||
rest "k8s.io/client-go/rest"
|
||||
testing "k8s.io/client-go/testing"
|
||||
v1 "open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1"
|
||||
)
|
||||
|
||||
type FakeClusterV1 struct {
|
||||
@@ -5,13 +5,13 @@ package fake
|
||||
import (
|
||||
"context"
|
||||
|
||||
clusterv1 "github.com/open-cluster-management/api/cluster/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"
|
||||
clusterv1 "open-cluster-management.io/api/cluster/v1"
|
||||
)
|
||||
|
||||
// FakeManagedClusters implements ManagedClusterInterface
|
||||
@@ -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.
|
||||
@@ -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 {
|
||||
@@ -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.
|
||||
@@ -3,9 +3,9 @@
|
||||
package fake
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/open-cluster-management/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1"
|
||||
rest "k8s.io/client-go/rest"
|
||||
testing "k8s.io/client-go/testing"
|
||||
v1alpha1 "open-cluster-management.io/api/client/cluster/clientset/versioned/typed/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
type FakeClusterV1alpha1 struct {
|
||||
@@ -5,13 +5,13 @@ package fake
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
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"
|
||||
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// FakeClusterClaims implements ClusterClaimInterface
|
||||
@@ -5,13 +5,13 @@ package fake
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
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"
|
||||
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// FakeManagedClusterSets implements ManagedClusterSetInterface
|
||||
@@ -5,13 +5,13 @@ package fake
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
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"
|
||||
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// FakeManagedClusterSetBindings implements ManagedClusterSetBindingInterface
|
||||
@@ -5,13 +5,13 @@ package fake
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
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"
|
||||
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// FakePlacements implements PlacementInterface
|
||||
@@ -5,13 +5,13 @@ package fake
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
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"
|
||||
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// FakePlacementDecisions implements PlacementDecisionInterface
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -3,9 +3,9 @@
|
||||
package cluster
|
||||
|
||||
import (
|
||||
v1 "github.com/open-cluster-management/api/client/cluster/informers/externalversions/cluster/v1"
|
||||
v1alpha1 "github.com/open-cluster-management/api/client/cluster/informers/externalversions/cluster/v1alpha1"
|
||||
internalinterfaces "github.com/open-cluster-management/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1 "open-cluster-management.io/api/client/cluster/informers/externalversions/cluster/v1"
|
||||
v1alpha1 "open-cluster-management.io/api/client/cluster/informers/externalversions/cluster/v1alpha1"
|
||||
internalinterfaces "open-cluster-management.io/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
)
|
||||
|
||||
// Interface provides access to each of this group's versions.
|
||||
@@ -3,7 +3,7 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
internalinterfaces "github.com/open-cluster-management/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
internalinterfaces "open-cluster-management.io/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
)
|
||||
|
||||
// Interface provides access to all the informers in this group version.
|
||||
@@ -6,14 +6,14 @@ import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
internalinterfaces "github.com/open-cluster-management/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1"
|
||||
clusterv1 "github.com/open-cluster-management/api/cluster/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/cluster/clientset/versioned"
|
||||
internalinterfaces "open-cluster-management.io/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1"
|
||||
clusterv1 "open-cluster-management.io/api/cluster/v1"
|
||||
)
|
||||
|
||||
// ManagedClusterInformer provides access to a shared informer and lister for
|
||||
@@ -6,14 +6,14 @@ import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
internalinterfaces "github.com/open-cluster-management/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
v1 "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/cluster/clientset/versioned"
|
||||
internalinterfaces "open-cluster-management.io/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// ClusterClaimInformer provides access to a shared informer and lister for
|
||||
@@ -3,7 +3,7 @@
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
internalinterfaces "github.com/open-cluster-management/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
internalinterfaces "open-cluster-management.io/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
)
|
||||
|
||||
// Interface provides access to all the informers in this group version.
|
||||
@@ -6,14 +6,14 @@ import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
internalinterfaces "github.com/open-cluster-management/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
v1 "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/cluster/clientset/versioned"
|
||||
internalinterfaces "open-cluster-management.io/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// ManagedClusterSetInformer provides access to a shared informer and lister for
|
||||
@@ -6,14 +6,14 @@ import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
internalinterfaces "github.com/open-cluster-management/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
v1 "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/cluster/clientset/versioned"
|
||||
internalinterfaces "open-cluster-management.io/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// ManagedClusterSetBindingInformer provides access to a shared informer and lister for
|
||||
@@ -6,14 +6,14 @@ import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
internalinterfaces "github.com/open-cluster-management/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
v1 "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/cluster/clientset/versioned"
|
||||
internalinterfaces "open-cluster-management.io/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// PlacementInformer provides access to a shared informer and lister for
|
||||
@@ -6,14 +6,14 @@ import (
|
||||
"context"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
internalinterfaces "github.com/open-cluster-management/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "github.com/open-cluster-management/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterv1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
v1 "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/cluster/clientset/versioned"
|
||||
internalinterfaces "open-cluster-management.io/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
v1alpha1 "open-cluster-management.io/api/client/cluster/listers/cluster/v1alpha1"
|
||||
clusterv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// PlacementDecisionInformer provides access to a shared informer and lister for
|
||||
@@ -7,13 +7,13 @@ import (
|
||||
sync "sync"
|
||||
time "time"
|
||||
|
||||
versioned "github.com/open-cluster-management/api/client/cluster/clientset/versioned"
|
||||
cluster "github.com/open-cluster-management/api/client/cluster/informers/externalversions/cluster"
|
||||
internalinterfaces "github.com/open-cluster-management/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
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/cluster/clientset/versioned"
|
||||
cluster "open-cluster-management.io/api/client/cluster/informers/externalversions/cluster"
|
||||
internalinterfaces "open-cluster-management.io/api/client/cluster/informers/externalversions/internalinterfaces"
|
||||
)
|
||||
|
||||
// SharedInformerOption defines the functional option type for SharedInformerFactory.
|
||||
@@ -5,10 +5,10 @@ package externalversions
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
v1 "github.com/open-cluster-management/api/cluster/v1"
|
||||
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
cache "k8s.io/client-go/tools/cache"
|
||||
v1 "open-cluster-management.io/api/cluster/v1"
|
||||
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// GenericInformer is type of SharedIndexInformer which will locate and delegate to other
|
||||
@@ -5,10 +5,10 @@ package internalinterfaces
|
||||
import (
|
||||
time "time"
|
||||
|
||||
versioned "github.com/open-cluster-management/api/client/cluster/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/cluster/clientset/versioned"
|
||||
)
|
||||
|
||||
// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
|
||||
@@ -3,10 +3,10 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
v1 "github.com/open-cluster-management/api/cluster/v1"
|
||||
"k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
v1 "open-cluster-management.io/api/cluster/v1"
|
||||
)
|
||||
|
||||
// ManagedClusterLister helps list ManagedClusters.
|
||||
@@ -3,10 +3,10 @@
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
"k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// ClusterClaimLister helps list ClusterClaims.
|
||||
@@ -3,10 +3,10 @@
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
"k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// ManagedClusterSetLister helps list ManagedClusterSets.
|
||||
@@ -3,10 +3,10 @@
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
"k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// ManagedClusterSetBindingLister helps list ManagedClusterSetBindings.
|
||||
@@ -3,10 +3,10 @@
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
"k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// PlacementLister helps list Placements.
|
||||
@@ -3,10 +3,10 @@
|
||||
package v1alpha1
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/open-cluster-management/api/cluster/v1alpha1"
|
||||
"k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
v1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
|
||||
)
|
||||
|
||||
// PlacementDecisionLister helps list PlacementDecisions.
|
||||
@@ -8,6 +8,9 @@ spec:
|
||||
kind: ManagedCluster
|
||||
listKind: ManagedClusterList
|
||||
plural: managedclusters
|
||||
shortNames:
|
||||
- mcl
|
||||
- mcls
|
||||
singular: managedcluster
|
||||
scope: Cluster
|
||||
preserveUnknownFields: false
|
||||
@@ -1,6 +1,6 @@
|
||||
// Package v1 contains API Schema definitions for the cluster v1 API group
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
// +k8s:conversion-gen=github.com/open-cluster-management/api/cluster
|
||||
// +k8s:conversion-gen=open-cluster-management.io/api/cluster
|
||||
// +k8s:defaulter-gen=TypeMeta
|
||||
// +k8s:openapi-gen=true
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
// +genclient:nonNamespaced
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:resource:scope="Cluster"
|
||||
// +kubebuilder:resource:scope="Cluster",shortName={"mcl","mcls"}
|
||||
// +kubebuilder:printcolumn:JSONPath=`.spec.hubAcceptsClient`,name="Hub Accepted",type=boolean
|
||||
// +kubebuilder:printcolumn:JSONPath=`.spec.managedClusterClientConfigs[*].url`,name="Managed Cluster URLs",type=string
|
||||
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="ManagedClusterJoined")].status`,name="Joined",type=string
|
||||
@@ -8,6 +8,9 @@ spec:
|
||||
kind: ManagedClusterSet
|
||||
listKind: ManagedClusterSetList
|
||||
plural: managedclustersets
|
||||
shortNames:
|
||||
- mclset
|
||||
- mclsets
|
||||
singular: managedclusterset
|
||||
scope: Cluster
|
||||
preserveUnknownFields: false
|
||||
@@ -8,6 +8,9 @@ spec:
|
||||
kind: ManagedClusterSetBinding
|
||||
listKind: ManagedClusterSetBindingList
|
||||
plural: managedclustersetbindings
|
||||
shortNames:
|
||||
- mclsetbinding
|
||||
- mclsetbindings
|
||||
singular: managedclustersetbinding
|
||||
scope: Namespaced
|
||||
preserveUnknownFields: false
|
||||
@@ -1,6 +1,6 @@
|
||||
// Package v1alpha1 contains API Schema definitions for the cluster v1alpha1 API group
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
// +k8s:conversion-gen=github.com/open-cluster-management/api/cluster
|
||||
// +k8s:conversion-gen=open-cluster-management.io/api/cluster
|
||||
// +k8s:defaulter-gen=TypeMeta
|
||||
// +k8s:openapi-gen=true
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
// +genclient:nonNamespaced
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:resource:scope="Cluster"
|
||||
// +kubebuilder:resource:scope="Cluster",shortName={"mclset","mclsets"}
|
||||
|
||||
// ManagedClusterSet defines a group of ManagedClusters that user's workload can run on.
|
||||
// A workload can be defined to deployed on a ManagedClusterSet, which mean:
|
||||
@@ -65,7 +65,7 @@ type ManagedClusterSetList struct {
|
||||
|
||||
// +genclient
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
// +kubebuilder:resource:scope="Namespaced"
|
||||
// +kubebuilder:resource:scope="Namespaced",shortName={"mclsetbinding","mclsetbindings"}
|
||||
|
||||
// ManagedClusterSetBinding projects a ManagedClusterSet into a certain namespace.
|
||||
// User is able to create a ManagedClusterSetBinding in a namespace and bind it to a
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user