-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from cleverhu/add-ClusterSyncResourceTemplate…
…-crd add ClusterSyncResources
- Loading branch information
Showing
19 changed files
with
661 additions
and
17 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
charts/_crds/cluster.clusterpedia.io_clustersyncresources.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.9.0 | ||
creationTimestamp: null | ||
name: clustersyncresources.cluster.clusterpedia.io | ||
spec: | ||
group: cluster.clusterpedia.io | ||
names: | ||
kind: ClusterSyncResources | ||
listKind: ClusterSyncResourcesList | ||
plural: clustersyncresources | ||
singular: clustersyncresources | ||
scope: Cluster | ||
versions: | ||
- name: v1alpha2 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
properties: | ||
syncResources: | ||
items: | ||
properties: | ||
group: | ||
type: string | ||
resources: | ||
items: | ||
type: string | ||
minItems: 1 | ||
type: array | ||
versions: | ||
items: | ||
type: string | ||
type: array | ||
required: | ||
- group | ||
- resources | ||
type: object | ||
type: array | ||
required: | ||
- syncResources | ||
type: object | ||
type: object | ||
served: true | ||
storage: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: cluster.clusterpedia.io/v1alpha2 | ||
kind: ClusterSyncResources | ||
metadata: | ||
name: cluster-sync-resources-example | ||
spec: | ||
syncResources: | ||
- group: "" | ||
resources: | ||
- pods | ||
versions: | ||
- v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
pkg/generated/clientset/versioned/typed/cluster/v1alpha2/cluster_client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
152 changes: 152 additions & 0 deletions
152
pkg/generated/clientset/versioned/typed/cluster/v1alpha2/clustersyncresources.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
pkg/generated/clientset/versioned/typed/cluster/v1alpha2/fake/fake_cluster_client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.