Skip to content

Commit ee52ee1

Browse files
author
Pushparaj Shetty K S
committed
update terraform crds
Signed-off-by: Pushparaj Shetty K S <pshettyks@guidewire.com>
1 parent 708116d commit ee52ee1

File tree

2 files changed

+100
-95
lines changed

2 files changed

+100
-95
lines changed

chart/crds/terraform.core.oam.dev_configurations.yaml

Lines changed: 85 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.6.2
8-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.16.5
97
name: configurations.terraform.core.oam.dev
108
spec:
119
group: terraform.core.oam.dev
@@ -32,30 +30,34 @@ spec:
3230
description: Configuration is the Schema for the configurations API
3331
properties:
3432
apiVersion:
35-
description: 'APIVersion defines the versioned schema of this representation
36-
of an object. Servers should convert recognized schemas to the latest
37-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
33+
description: |-
34+
APIVersion defines the versioned schema of this representation of an object.
35+
Servers should convert recognized schemas to the latest internal value, and
36+
may reject unrecognized values.
37+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
3838
type: string
3939
kind:
40-
description: 'Kind is a string value representing the REST resource this
41-
object represents. Servers may infer this from the endpoint the client
42-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
40+
description: |-
41+
Kind is a string value representing the REST resource this object represents.
42+
Servers may infer this from the endpoint the client submits requests to.
43+
Cannot be updated.
44+
In CamelCase.
45+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
4346
type: string
4447
metadata:
4548
type: object
4649
spec:
4750
description: ConfigurationSpec defines the desired state of Configuration
4851
properties:
4952
JSON:
50-
description: 'JSON is the Terraform JSON syntax configuration. Deprecated:
51-
after v0.3.1, use HCL instead.'
53+
description: |-
54+
JSON is the Terraform JSON syntax configuration.
55+
Deprecated: after v0.3.1, use HCL instead.
5256
type: string
5357
backend:
54-
description: Backend stores the state in a Kubernetes secret with
55-
locking done using a Lease resource. TODO(zzxwill) If a backend
56-
exists in HCL/JSON, this can be optional. Currently, if Backend
57-
is not set by users, it still will set by the controller, ignoring
58-
the settings in HCL/JSON backend
58+
description: |-
59+
Backend stores the state in a Kubernetes secret with locking done using a Lease resource.
60+
still will set by the controller, ignoring the settings in HCL/JSON backend
5961
properties:
6062
inClusterConfig:
6163
description: InClusterConfig Used to authenticate to the cluster
@@ -76,14 +78,15 @@ spec:
7678
to the secret containing the git credentials
7779
properties:
7880
name:
79-
description: Name is unique within a namespace to reference a
81+
description: name is unique within a namespace to reference a
8082
secret resource.
8183
type: string
8284
namespace:
83-
description: Namespace defines the space within which the secret
85+
description: namespace defines the space within which the secret
8486
name must be unique.
8587
type: string
8688
type: object
89+
x-kubernetes-map-type: atomic
8790
hcl:
8891
description: HCL is the Terraform HCL type configuration
8992
type: string
@@ -117,49 +120,52 @@ spec:
117120
helper
118121
properties:
119122
name:
120-
description: Name is unique within a namespace to reference a
123+
description: name is unique within a namespace to reference a
121124
secret resource.
122125
type: string
123126
namespace:
124-
description: Namespace defines the space within which the secret
127+
description: namespace defines the space within which the secret
125128
name must be unique.
126129
type: string
127130
type: object
131+
x-kubernetes-map-type: atomic
128132
terraformCredentialsSecretReference:
129133
description: TerraformCredentialsSecretReference specifies the reference
130134
to the secret containing the terraform credentials
131135
properties:
132136
name:
133-
description: Name is unique within a namespace to reference a
137+
description: name is unique within a namespace to reference a
134138
secret resource.
135139
type: string
136140
namespace:
137-
description: Namespace defines the space within which the secret
141+
description: namespace defines the space within which the secret
138142
name must be unique.
139143
type: string
140144
type: object
145+
x-kubernetes-map-type: atomic
141146
terraformRCConfigMapReference:
142147
description: TerraformRCConfigMapReference specifies the reference
143148
to a config map containing the terraform registry configuration
144149
properties:
145150
name:
146-
description: Name is unique within a namespace to reference a
151+
description: name is unique within a namespace to reference a
147152
secret resource.
148153
type: string
149154
namespace:
150-
description: Namespace defines the space within which the secret
155+
description: namespace defines the space within which the secret
151156
name must be unique.
152157
type: string
153158
type: object
159+
x-kubernetes-map-type: atomic
154160
variable:
155161
type: object
156162
x-kubernetes-preserve-unknown-fields: true
157163
writeConnectionSecretToRef:
158-
description: WriteConnectionSecretToReference specifies the namespace
159-
and name of a Secret to which any connection details for this managed
160-
resource should be written. Connection details frequently include
161-
the endpoint, username, and password required to connect to the
162-
managed resource.
164+
description: |-
165+
WriteConnectionSecretToReference specifies the namespace and name of a
166+
Secret to which any connection details for this managed resource should
167+
be written. Connection details frequently include the endpoint, username,
168+
and password required to connect to the managed resource.
163169
properties:
164170
name:
165171
description: Name of the secret.
@@ -205,9 +211,9 @@ spec:
205211
type: string
206212
type: object
207213
observedGeneration:
208-
description: observedGeneration is the most recent generation observed
209-
for this Configuration. It corresponds to the Configuration's generation,
210-
which is updated on mutation by the API Server.
214+
description: |-
215+
observedGeneration is the most recent generation observed for this Configuration. It corresponds to the
216+
Configuration's generation, which is updated on mutation by the API Server.
211217
format: int64
212218
type: integer
213219
type: object
@@ -232,14 +238,19 @@ spec:
232238
description: Configuration is the Schema for the configurations API
233239
properties:
234240
apiVersion:
235-
description: 'APIVersion defines the versioned schema of this representation
236-
of an object. Servers should convert recognized schemas to the latest
237-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
241+
description: |-
242+
APIVersion defines the versioned schema of this representation of an object.
243+
Servers should convert recognized schemas to the latest internal value, and
244+
may reject unrecognized values.
245+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
238246
type: string
239247
kind:
240-
description: 'Kind is a string value representing the REST resource this
241-
object represents. Servers may infer this from the endpoint the client
242-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
248+
description: |-
249+
Kind is a string value representing the REST resource this object represents.
250+
Servers may infer this from the endpoint the client submits requests to.
251+
Cannot be updated.
252+
In CamelCase.
253+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
243254
type: string
244255
metadata:
245256
type: object
@@ -250,13 +261,12 @@ spec:
250261
type: object
251262
x-kubernetes-preserve-unknown-fields: true
252263
backend:
253-
description: 'Backend describes the Terraform backend configuration.
254-
This field is needed if the users use a git repo to provide the
255-
hcl files or want to use their custom Terraform backend (instead
256-
of the default kubernetes backend type). Notice: This field may
257-
cause two backend blocks in the final Terraform module and make
258-
the executor job failed. So, please make sure that there are no
259-
backend configurations in your inline hcl code or the git repo.'
264+
description: |-
265+
Backend describes the Terraform backend configuration.
266+
This field is needed if the users use a git repo to provide the hcl files or
267+
want to use their custom Terraform backend (instead of the default kubernetes backend type).
268+
Notice: This field may cause two backend blocks in the final Terraform module and make the executor job failed.
269+
So, please make sure that there are no backend configurations in your inline hcl code or the git repo.
260270
properties:
261271
backendType:
262272
description: BackendType indicates which backend type to use.
@@ -314,23 +324,24 @@ spec:
314324
resources will be deleted when CR is deleted
315325
type: boolean
316326
forceDelete:
317-
description: ForceDelete will force delete Configuration no matter
318-
which state it is or whether it has provisioned some resources It
319-
will help delete Configuration in unexpected cases.
327+
description: |-
328+
ForceDelete will force delete Configuration no matter which state it is or whether it has provisioned some resources
329+
It will help delete Configuration in unexpected cases.
320330
type: boolean
321331
gitCredentialsSecretReference:
322332
description: GitCredentialsSecretReference specifies the reference
323333
to the secret containing the git credentials
324334
properties:
325335
name:
326-
description: Name is unique within a namespace to reference a
336+
description: name is unique within a namespace to reference a
327337
secret resource.
328338
type: string
329339
namespace:
330-
description: Namespace defines the space within which the secret
340+
description: namespace defines the space within which the secret
331341
name must be unique.
332342
type: string
333343
type: object
344+
x-kubernetes-map-type: atomic
334345
gitRef:
335346
description: GitRef is the git branch or tag or commit hash to checkout.
336347
Only used when Remote is specified.
@@ -347,10 +358,10 @@ spec:
347358
type: string
348359
inlineCredentials:
349360
description: "InlineCredentials specifies the credentials in spec.HCl
350-
field as below. \tprovider \"aws\" { \t\tregion = \"us-west-2\"
351-
\t\taccess_key = \"my-access-key\" \t\tsecret_key = \"my-secret-key\"
352-
\t} Or indicates a Terraform module or configuration don't need
353-
credentials at all, like provider `random`"
361+
field as below.\n\tprovider \"aws\" {\n\t\tregion = \"us-west-2\"\n\t\taccess_key
362+
= \"my-access-key\"\n\t\tsecret_key = \"my-secret-key\"\n\t}\nOr
363+
indicates a Terraform module or configuration don't need credentials
364+
at all, like provider `random`"
354365
type: boolean
355366
path:
356367
description: Path is the sub-directory of remote git repository.
@@ -378,50 +389,53 @@ spec:
378389
helper
379390
properties:
380391
name:
381-
description: Name is unique within a namespace to reference a
392+
description: name is unique within a namespace to reference a
382393
secret resource.
383394
type: string
384395
namespace:
385-
description: Namespace defines the space within which the secret
396+
description: namespace defines the space within which the secret
386397
name must be unique.
387398
type: string
388399
type: object
400+
x-kubernetes-map-type: atomic
389401
terraformCredentialsSecretReference:
390402
description: TerraformCredentialsSecretReference specifies the reference
391403
to the secret containing the terraform credentials and terraform
392404
registry details
393405
properties:
394406
name:
395-
description: Name is unique within a namespace to reference a
407+
description: name is unique within a namespace to reference a
396408
secret resource.
397409
type: string
398410
namespace:
399-
description: Namespace defines the space within which the secret
411+
description: namespace defines the space within which the secret
400412
name must be unique.
401413
type: string
402414
type: object
415+
x-kubernetes-map-type: atomic
403416
terraformRCConfigMapReference:
404417
description: TerraformRCConfigMapReference specifies the reference
405418
to a config map containing the terraform registry configuration
406419
properties:
407420
name:
408-
description: Name is unique within a namespace to reference a
421+
description: name is unique within a namespace to reference a
409422
secret resource.
410423
type: string
411424
namespace:
412-
description: Namespace defines the space within which the secret
425+
description: namespace defines the space within which the secret
413426
name must be unique.
414427
type: string
415428
type: object
429+
x-kubernetes-map-type: atomic
416430
variable:
417431
type: object
418432
x-kubernetes-preserve-unknown-fields: true
419433
writeConnectionSecretToRef:
420-
description: WriteConnectionSecretToReference specifies the namespace
421-
and name of a Secret to which any connection details for this managed
422-
resource should be written. Connection details frequently include
423-
the endpoint, username, and password required to connect to the
424-
managed resource.
434+
description: |-
435+
WriteConnectionSecretToReference specifies the namespace and name of a
436+
Secret to which any connection details for this managed resource should
437+
be written. Connection details frequently include the endpoint, username,
438+
and password required to connect to the managed resource.
425439
properties:
426440
name:
427441
description: Name of the secret.
@@ -451,8 +465,8 @@ spec:
451465
type: object
452466
type: object
453467
region:
454-
description: Region is the region for the cloud resources created
455-
by this Configuration. If spec.region is not empty, it's the
468+
description: |-
469+
Region is the region for the cloud resources created by this Configuration. If spec.region is not empty, it's the
456470
value of it. Otherwise, it's the value of spec.providerReference.region.
457471
type: string
458472
state:
@@ -470,11 +484,10 @@ spec:
470484
type: string
471485
type: object
472486
observedGeneration:
473-
description: observedGeneration is the most recent generation observed
474-
for this Configuration. It corresponds to the Configuration's generation,
475-
which is updated on mutation by the API Server. If ObservedGeneration
476-
equals Generation, and State is Available, the value of Outputs
477-
is latest
487+
description: |-
488+
observedGeneration is the most recent generation observed for this Configuration. It corresponds to the
489+
Configuration's generation, which is updated on mutation by the API Server.
490+
If ObservedGeneration equals Generation, and State is Available, the value of Outputs is latest
478491
format: int64
479492
type: integer
480493
type: object
@@ -483,9 +496,3 @@ spec:
483496
storage: true
484497
subresources:
485498
status: {}
486-
status:
487-
acceptedNames:
488-
kind: ""
489-
plural: ""
490-
conditions: []
491-
storedVersions: []

0 commit comments

Comments
 (0)