Skip to content

Commit b4eafc2

Browse files
Adding operator YAMLs
1 parent 4eb4294 commit b4eafc2

4 files changed

Lines changed: 1115 additions & 0 deletions

File tree

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: v0.13.0
6+
creationTimestamp: null
7+
name: netscalercloudcontrollers.netscaler.com
8+
spec:
9+
group: netscaler.com
10+
names:
11+
kind: NetscalerCloudController
12+
listKind: NetscalerCloudControllerList
13+
plural: netscalercloudcontrollers
14+
singular: netscalercloudcontroller
15+
scope: Namespaced
16+
versions:
17+
- name: v1
18+
schema:
19+
openAPIV3Schema:
20+
description: NetscalerCloudController is the Schema for the netscalercloudcontrollers
21+
API
22+
properties:
23+
apiVersion:
24+
description: 'APIVersion defines the versioned schema of this representation
25+
of an object. Servers should convert recognized schemas to the latest
26+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
27+
type: string
28+
kind:
29+
description: 'Kind is a string value representing the REST resource this
30+
object represents. Servers may infer this from the endpoint the client
31+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
32+
type: string
33+
metadata:
34+
type: object
35+
spec:
36+
description: NetscalerCloudControllerSpec defines the desired state of
37+
NetscalerCloudController
38+
properties:
39+
azure:
40+
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
41+
Important: Run "make" to regenerate code after modifying this file'
42+
properties:
43+
clientsecret:
44+
type: string
45+
image:
46+
default: quay.io/netscaler/netscaler-cloud-controller@sha256:6897df79411bd1b4ddb5195d570f10e01bd3c084772b918112797a346980f4cb
47+
type: string
48+
location:
49+
type: string
50+
pullpolicy:
51+
default: IfNotPresent
52+
description: PullPolicy describes a policy for if/when to pull
53+
a container image
54+
enum:
55+
- Always
56+
- Never
57+
- IfNotPresent
58+
type: string
59+
resourcegroupname:
60+
type: string
61+
resources:
62+
description: ResourceRequirements describes the compute resource
63+
requirements.
64+
properties:
65+
claims:
66+
description: "Claims lists the names of resources, defined
67+
in spec.resourceClaims, that are used by this container.
68+
\n This is an alpha field and requires enabling the DynamicResourceAllocation
69+
feature gate. \n This field is immutable. It can only be
70+
set for containers."
71+
items:
72+
description: ResourceClaim references one entry in PodSpec.ResourceClaims.
73+
properties:
74+
name:
75+
description: Name must match the name of one entry in
76+
pod.spec.resourceClaims of the Pod where this field
77+
is used. It makes that resource available inside a
78+
container.
79+
type: string
80+
required:
81+
- name
82+
type: object
83+
type: array
84+
x-kubernetes-list-map-keys:
85+
- name
86+
x-kubernetes-list-type: map
87+
limits:
88+
additionalProperties:
89+
anyOf:
90+
- type: integer
91+
- type: string
92+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
93+
x-kubernetes-int-or-string: true
94+
description: 'Limits describes the maximum amount of compute
95+
resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
96+
type: object
97+
requests:
98+
additionalProperties:
99+
anyOf:
100+
- type: integer
101+
- type: string
102+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
103+
x-kubernetes-int-or-string: true
104+
description: 'Requests describes the minimum amount of compute
105+
resources required. If Requests is omitted for a container,
106+
it defaults to Limits if that is explicitly specified, otherwise
107+
to an implementation-defined value. Requests cannot exceed
108+
Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
109+
type: object
110+
type: object
111+
subnetname:
112+
type: string
113+
subscriptionid:
114+
type: string
115+
tenantid:
116+
type: string
117+
vnetname:
118+
type: string
119+
required:
120+
- clientsecret
121+
- image
122+
- location
123+
- resourcegroupname
124+
- subnetname
125+
- subscriptionid
126+
- tenantid
127+
- vnetname
128+
type: object
129+
required:
130+
- azure
131+
type: object
132+
status:
133+
description: NetscalerCloudControllerStatus defines the observed state
134+
of NetscalerCloudController
135+
properties:
136+
conditions:
137+
description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
138+
of cluster Important: Run "make" to regenerate code after modifying
139+
this file'
140+
items:
141+
description: "Condition contains details for one aspect of the current
142+
state of this API Resource. --- This struct is intended for direct
143+
use as an array at the field path .status.conditions. For example,
144+
\n type FooStatus struct{ // Represents the observations of a
145+
foo's current state. // Known .status.conditions.type are: \"Available\",
146+
\"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge
147+
// +listType=map // +listMapKey=type Conditions []metav1.Condition
148+
`json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\"
149+
protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }"
150+
properties:
151+
lastTransitionTime:
152+
description: lastTransitionTime is the last time the condition
153+
transitioned from one status to another. This should be when
154+
the underlying condition changed. If that is not known, then
155+
using the time when the API field changed is acceptable.
156+
format: date-time
157+
type: string
158+
message:
159+
description: message is a human readable message indicating
160+
details about the transition. This may be an empty string.
161+
maxLength: 32768
162+
type: string
163+
observedGeneration:
164+
description: observedGeneration represents the .metadata.generation
165+
that the condition was set based upon. For instance, if .metadata.generation
166+
is currently 12, but the .status.conditions[x].observedGeneration
167+
is 9, the condition is out of date with respect to the current
168+
state of the instance.
169+
format: int64
170+
minimum: 0
171+
type: integer
172+
reason:
173+
description: reason contains a programmatic identifier indicating
174+
the reason for the condition's last transition. Producers
175+
of specific condition types may define expected values and
176+
meanings for this field, and whether the values are considered
177+
a guaranteed API. The value should be a CamelCase string.
178+
This field may not be empty.
179+
maxLength: 1024
180+
minLength: 1
181+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
182+
type: string
183+
status:
184+
description: status of the condition, one of True, False, Unknown.
185+
enum:
186+
- "True"
187+
- "False"
188+
- Unknown
189+
type: string
190+
type:
191+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
192+
--- Many .condition.type values are consistent across resources
193+
like Available, but because arbitrary conditions can be useful
194+
(see .node.status.conditions), the ability to deconflict is
195+
important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
196+
maxLength: 316
197+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
198+
type: string
199+
required:
200+
- lastTransitionTime
201+
- message
202+
- reason
203+
- status
204+
- type
205+
type: object
206+
type: array
207+
type: object
208+
type: object
209+
served: true
210+
storage: true
211+
subresources:
212+
status: {}
213+
status:
214+
acceptedNames:
215+
kind: ""
216+
plural: ""
217+
conditions: null
218+
storedVersions: null

0 commit comments

Comments
 (0)