Skip to content

Commit 3a84b92

Browse files
operator assisted-service-operator (0.7.74) (redhat-openshift-ecosystem#5384)
Signed-off-by: OpenShift Edge Robot <[email protected]>
1 parent 98ee5d0 commit 3a84b92

9 files changed

+4562
-0
lines changed
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: v0.14.0
6+
creationTimestamp: null
7+
name: agentclassifications.agent-install.openshift.io
8+
spec:
9+
conversion:
10+
strategy: Webhook
11+
webhook:
12+
clientConfig:
13+
service:
14+
name: webhook-service
15+
namespace: assisted-installer
16+
path: /convert
17+
conversionReviewVersions:
18+
- v1
19+
group: agent-install.openshift.io
20+
names:
21+
kind: AgentClassification
22+
listKind: AgentClassificationList
23+
plural: agentclassifications
24+
singular: agentclassification
25+
scope: Namespaced
26+
versions:
27+
- name: v1beta1
28+
schema:
29+
openAPIV3Schema:
30+
description: AgentClassification is the Schema for the AgentClassifications
31+
API
32+
properties:
33+
apiVersion:
34+
description: |-
35+
APIVersion defines the versioned schema of this representation of an object.
36+
Servers should convert recognized schemas to the latest internal value, and
37+
may reject unrecognized values.
38+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
39+
type: string
40+
kind:
41+
description: |-
42+
Kind is a string value representing the REST resource this object represents.
43+
Servers may infer this from the endpoint the client submits requests to.
44+
Cannot be updated.
45+
In CamelCase.
46+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
47+
type: string
48+
metadata:
49+
type: object
50+
spec:
51+
description: AgentClassificationSpec defines the desired state of AgentClassification
52+
properties:
53+
labelKey:
54+
description: LabelKey specifies the label key to apply to matched
55+
Agents
56+
type: string
57+
labelValue:
58+
description: LabelValue specifies the label value to apply to matched
59+
Agents
60+
type: string
61+
query:
62+
description: |-
63+
Query is in gojq format (https://github.com/itchyny/gojq#difference-to-jq)
64+
and will be invoked on each Agent's inventory. The query should return a
65+
boolean. The operator will apply the label to any Agent for which "true"
66+
is returned.
67+
type: string
68+
required:
69+
- labelKey
70+
- labelValue
71+
- query
72+
type: object
73+
status:
74+
description: AgentClassificationStatus defines the observed state of AgentClassification
75+
properties:
76+
conditions:
77+
items:
78+
description: |-
79+
Condition represents the state of the operator's
80+
reconciliation functionality.
81+
properties:
82+
lastHeartbeatTime:
83+
format: date-time
84+
type: string
85+
lastTransitionTime:
86+
format: date-time
87+
type: string
88+
message:
89+
type: string
90+
reason:
91+
type: string
92+
status:
93+
type: string
94+
type:
95+
description: ConditionType is the state of the operator's reconciliation
96+
functionality.
97+
type: string
98+
required:
99+
- status
100+
- type
101+
type: object
102+
type: array
103+
errorCount:
104+
description: ErrorCount shows how many Agents encountered errors when
105+
matching the classification
106+
type: integer
107+
matchedCount:
108+
description: MatchedCount shows how many Agents currently match the
109+
classification
110+
type: integer
111+
type: object
112+
type: object
113+
served: true
114+
storage: true
115+
subresources:
116+
status: {}
117+
status:
118+
acceptedNames:
119+
kind: ""
120+
plural: ""
121+
conditions: null
122+
storedVersions: null

0 commit comments

Comments
 (0)