Skip to content

Commit 9e6e44a

Browse files
committed
Update resource metadata
Signed-off-by: Tamal Saha <[email protected]>
1 parent e030ebe commit 9e6e44a

File tree

479 files changed

+132203
-6627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

479 files changed

+132203
-6627
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ require (
4646
kmodules.xyz/custom-resources v0.25.2
4747
kmodules.xyz/go-containerregistry v0.0.11
4848
kmodules.xyz/monitoring-agent-api v0.25.4
49-
kmodules.xyz/resource-metadata v0.17.40
49+
kmodules.xyz/resource-metadata v0.17.42
5050
kmodules.xyz/resource-metrics v0.25.7
5151
kmodules.xyz/sets v0.25.0
5252
kubeops.dev/scanner v0.0.16

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -2152,8 +2152,8 @@ kmodules.xyz/monitoring-agent-api v0.25.4 h1:OwkvtV23QhUy3f7o9lxPWaAW3jiJMGAMPPR
21522152
kmodules.xyz/monitoring-agent-api v0.25.4/go.mod h1:3LhrLDGQKQXhxYcjA/WNaO4HPpopYQzOutsEp2i3008=
21532153
kmodules.xyz/offshoot-api v0.25.4 h1:IjJNvkphcdYUG8XO/pBwXpuP8W+jxAWJZ3yH8vgI/as=
21542154
kmodules.xyz/offshoot-api v0.25.4/go.mod h1:PUk4EuJFhhyQykCflHj7EgXcljGIqs9vi0IN0RpxtY4=
2155-
kmodules.xyz/resource-metadata v0.17.40 h1:CuLOH2veWVR5g9+hrrd030Is6JnnpKPbz6Sp0RD3P1A=
2156-
kmodules.xyz/resource-metadata v0.17.40/go.mod h1:a8MUmKJVYBjlwaEM0wP5z/6KQRGoktSQQ52utvDhpJg=
2155+
kmodules.xyz/resource-metadata v0.17.42 h1:JEJIR/gBFpO6lLc3oMYv4nkOe7odoJWLpM8+Tar1CXA=
2156+
kmodules.xyz/resource-metadata v0.17.42/go.mod h1:a8MUmKJVYBjlwaEM0wP5z/6KQRGoktSQQ52utvDhpJg=
21572157
kmodules.xyz/resource-metrics v0.25.7 h1:ne2cK/dlnfYcuu0+pHX15Y53rcKBQq9DuCtQVcx6rY8=
21582158
kmodules.xyz/resource-metrics v0.25.7/go.mod h1:y7pDmTWuVLNGSjwckKCwJFhCgi5fhbwS7PAcH2rmGcY=
21592159
kmodules.xyz/sets v0.25.0 h1:belY/3trp/M/CKc1TEteA40jb2uCIdwKHhjpvrIxG+8=
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
2+
---
3+
apiVersion: apiextensions.k8s.io/v1
4+
kind: CustomResourceDefinition
5+
metadata:
6+
creationTimestamp: null
7+
name: nodetopologies.node.k8s.appscode.com
8+
spec:
9+
group: node.k8s.appscode.com
10+
names:
11+
kind: NodeTopology
12+
listKind: NodeTopologyList
13+
plural: nodetopologies
14+
singular: nodetopology
15+
scope: Cluster
16+
versions:
17+
- additionalPrinterColumns:
18+
- jsonPath: .status.phase
19+
name: Status
20+
type: string
21+
- jsonPath: .metadata.creationTimestamp
22+
name: Age
23+
type: date
24+
name: v1alpha1
25+
schema:
26+
openAPIV3Schema:
27+
properties:
28+
apiVersion:
29+
description: 'APIVersion defines the versioned schema of this representation
30+
of an object. Servers should convert recognized schemas to the latest
31+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
32+
type: string
33+
kind:
34+
description: 'Kind is a string value representing the REST resource this
35+
object represents. Servers may infer this from the endpoint the client
36+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
37+
type: string
38+
metadata:
39+
type: object
40+
spec:
41+
properties:
42+
nodeGroups:
43+
items:
44+
properties:
45+
capacity:
46+
additionalProperties:
47+
anyOf:
48+
- type: integer
49+
- type: string
50+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
51+
x-kubernetes-int-or-string: true
52+
description: 'Capacity represents the total resources of a node.
53+
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity'
54+
type: object
55+
topologyValue:
56+
type: string
57+
required:
58+
- capacity
59+
- topologyValue
60+
type: object
61+
type: array
62+
nodeSelectionPolicy:
63+
enum:
64+
- LabelSelector
65+
- Taint
66+
type: string
67+
topologyKey:
68+
type: string
69+
required:
70+
- nodeSelectionPolicy
71+
- topologyKey
72+
type: object
73+
type: object
74+
served: true
75+
storage: true
76+
subresources:
77+
status: {}

vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/addon.open-cluster-management.io/v1alpha1/addondeploymentconfigs.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ spec:
4747
spec:
4848
description: spec represents a desired configuration for an add-on.
4949
properties:
50+
agentInstallNamespace:
51+
default: open-cluster-management-agent-addon
52+
description: AgentInstallNamespace is the namespace where the add-on agent should be installed on the managed cluster.
53+
maxLength: 63
54+
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
55+
type: string
5056
customizedVariables:
5157
description: CustomizedVariables is a list of name-value variables for the current add-on deployment. The add-on implementation can use these variables to render its add-on deployment. The default is an empty list.
5258
items:

vendor/kmodules.xyz/resource-metadata/hub/resourcedescriptors/addon.open-cluster-management.io/v1alpha1/addontemplates.yaml

+25-15
Original file line numberDiff line numberDiff line change
@@ -271,31 +271,42 @@ spec:
271271
items:
272272
description: HubPermissionConfig configures the permission of the addon agent to access the hub cluster. Will create a RoleBinding in the same namespace as the managedClusterAddon to bind the user provided ClusterRole/Role to the "system:open-cluster-management:cluster:<cluster-name>:addon:<addon-name>" Group.
273273
properties:
274-
roleRef:
275-
description: RoleRef is an reference to the permission resource. it could be a role or a cluster role, the user must make sure it exist on the hub cluster.
274+
currentCluster:
275+
description: CurrentCluster contains the configuration of CurrentCluster type binding. It is required when the type is CurrentCluster.
276276
properties:
277-
apiGroup:
278-
description: APIGroup is the group for the resource being referenced
279-
type: string
280-
kind:
281-
description: Kind is the type of resource being referenced
282-
type: string
283-
name:
284-
description: Name is the name of resource being referenced
277+
clusterRoleName:
278+
description: ClusterRoleName is the name of the clusterrole the addon agent is bound. A rolebinding will be created referring to this cluster role in each cluster namespace. The user must make sure the clusterrole exists on the hub cluster.
285279
type: string
286280
required:
287-
- apiGroup
288-
- kind
289-
- name
281+
- clusterRoleName
290282
type: object
291-
x-kubernetes-map-type: atomic
292283
singleNamespace:
293284
description: SingleNamespace contains the configuration of SingleNamespace type binding. It is required when the type is SingleNamespace
294285
properties:
295286
namespace:
287+
description: Namespace is the namespace the addon agent has permissions to bind to. A rolebinding will be created in this namespace referring to the RoleRef.
296288
type: string
289+
roleRef:
290+
description: RoleRef is an reference to the permission resource. it could be a role or a cluster role, the user must make sure it exist on the hub cluster.
291+
properties:
292+
apiGroup:
293+
description: APIGroup is the group for the resource being referenced
294+
type: string
295+
kind:
296+
description: Kind is the type of resource being referenced
297+
type: string
298+
name:
299+
description: Name is the name of resource being referenced
300+
type: string
301+
required:
302+
- apiGroup
303+
- kind
304+
- name
305+
type: object
306+
x-kubernetes-map-type: atomic
297307
required:
298308
- namespace
309+
- roleRef
299310
type: object
300311
type:
301312
description: 'Type of the permissions setting. It defines how to bind the roleRef on the hub cluster. It can be: - CurrentCluster: Bind the roleRef to the namespace with the same name as the managedCluster. - SingleNamespace: Bind the roleRef to the namespace specified by SingleNamespaceBindingConfig.'
@@ -304,7 +315,6 @@ spec:
304315
- SingleNamespace
305316
type: string
306317
required:
307-
- roleRef
308318
- type
309319
type: object
310320
type: array

0 commit comments

Comments
 (0)