-
Notifications
You must be signed in to change notification settings - Fork 60
/
zz_service_types.go
executable file
·1977 lines (1543 loc) · 83.5 KB
/
zz_service_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta2
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type ConfigMapRefInitParameters struct {
// The Secret to select from.
// Structure is documented below.
LocalObjectReference *LocalObjectReferenceInitParameters `json:"localObjectReference,omitempty" tf:"local_object_reference,omitempty"`
// Specify whether the Secret must be defined
Optional *bool `json:"optional,omitempty" tf:"optional,omitempty"`
}
type ConfigMapRefObservation struct {
// The Secret to select from.
// Structure is documented below.
LocalObjectReference *LocalObjectReferenceObservation `json:"localObjectReference,omitempty" tf:"local_object_reference,omitempty"`
// Specify whether the Secret must be defined
Optional *bool `json:"optional,omitempty" tf:"optional,omitempty"`
}
type ConfigMapRefParameters struct {
// The Secret to select from.
// Structure is documented below.
// +kubebuilder:validation:Optional
LocalObjectReference *LocalObjectReferenceParameters `json:"localObjectReference,omitempty" tf:"local_object_reference,omitempty"`
// Specify whether the Secret must be defined
// +kubebuilder:validation:Optional
Optional *bool `json:"optional,omitempty" tf:"optional,omitempty"`
}
type ContainersInitParameters struct {
// Arguments to the entrypoint.
// The docker image's CMD is used if this is not provided.
Args []*string `json:"args,omitempty" tf:"args,omitempty"`
// Entrypoint array. Not executed within a shell.
// The docker image's ENTRYPOINT is used if this is not provided.
Command []*string `json:"command,omitempty" tf:"command,omitempty"`
// List of environment variables to set in the container.
// Structure is documented below.
Env []EnvInitParameters `json:"env,omitempty" tf:"env,omitempty"`
// List of sources to populate environment variables in the container.
// All invalid keys will be reported as an event when the container is starting.
// When a key exists in multiple sources, the value associated with the last source will
// take precedence. Values defined by an Env with a duplicate key will take
// precedence.
// Structure is documented below.
EnvFrom []EnvFromInitParameters `json:"envFrom,omitempty" tf:"env_from,omitempty"`
// Docker image name. This is most often a reference to a container located
// in the container registry, such as gcr.io/cloudrun/hello
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// Periodic probe of container liveness. Container will be restarted if the probe fails.
// Structure is documented below.
LivenessProbe *LivenessProbeInitParameters `json:"livenessProbe,omitempty" tf:"liveness_probe,omitempty"`
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// List of open ports in the container.
// Structure is documented below.
Ports []PortsInitParameters `json:"ports,omitempty" tf:"ports,omitempty"`
// Compute Resources required by this container. Used to set values such as max memory
// Structure is documented below.
Resources *ResourcesInitParameters `json:"resources,omitempty" tf:"resources,omitempty"`
// Startup probe of application within the container.
// All other probes are disabled if a startup probe is provided, until it
// succeeds. Container will not be added to service endpoints if the probe fails.
// Structure is documented below.
StartupProbe *StartupProbeInitParameters `json:"startupProbe,omitempty" tf:"startup_probe,omitempty"`
// Volume to mount into the container's filesystem.
// Only supports SecretVolumeSources.
// Structure is documented below.
VolumeMounts []VolumeMountsInitParameters `json:"volumeMounts,omitempty" tf:"volume_mounts,omitempty"`
// Container's working directory.
// If not specified, the container runtime's default will be used, which
// might be configured in the container image.
WorkingDir *string `json:"workingDir,omitempty" tf:"working_dir,omitempty"`
}
type ContainersObservation struct {
// Arguments to the entrypoint.
// The docker image's CMD is used if this is not provided.
Args []*string `json:"args,omitempty" tf:"args,omitempty"`
// Entrypoint array. Not executed within a shell.
// The docker image's ENTRYPOINT is used if this is not provided.
Command []*string `json:"command,omitempty" tf:"command,omitempty"`
// List of environment variables to set in the container.
// Structure is documented below.
Env []EnvObservation `json:"env,omitempty" tf:"env,omitempty"`
// List of sources to populate environment variables in the container.
// All invalid keys will be reported as an event when the container is starting.
// When a key exists in multiple sources, the value associated with the last source will
// take precedence. Values defined by an Env with a duplicate key will take
// precedence.
// Structure is documented below.
EnvFrom []EnvFromObservation `json:"envFrom,omitempty" tf:"env_from,omitempty"`
// Docker image name. This is most often a reference to a container located
// in the container registry, such as gcr.io/cloudrun/hello
Image *string `json:"image,omitempty" tf:"image,omitempty"`
// Periodic probe of container liveness. Container will be restarted if the probe fails.
// Structure is documented below.
LivenessProbe *LivenessProbeObservation `json:"livenessProbe,omitempty" tf:"liveness_probe,omitempty"`
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// List of open ports in the container.
// Structure is documented below.
Ports []PortsObservation `json:"ports,omitempty" tf:"ports,omitempty"`
// Compute Resources required by this container. Used to set values such as max memory
// Structure is documented below.
Resources *ResourcesObservation `json:"resources,omitempty" tf:"resources,omitempty"`
// Startup probe of application within the container.
// All other probes are disabled if a startup probe is provided, until it
// succeeds. Container will not be added to service endpoints if the probe fails.
// Structure is documented below.
StartupProbe *StartupProbeObservation `json:"startupProbe,omitempty" tf:"startup_probe,omitempty"`
// Volume to mount into the container's filesystem.
// Only supports SecretVolumeSources.
// Structure is documented below.
VolumeMounts []VolumeMountsObservation `json:"volumeMounts,omitempty" tf:"volume_mounts,omitempty"`
// Container's working directory.
// If not specified, the container runtime's default will be used, which
// might be configured in the container image.
WorkingDir *string `json:"workingDir,omitempty" tf:"working_dir,omitempty"`
}
type ContainersParameters struct {
// Arguments to the entrypoint.
// The docker image's CMD is used if this is not provided.
// +kubebuilder:validation:Optional
Args []*string `json:"args,omitempty" tf:"args,omitempty"`
// Entrypoint array. Not executed within a shell.
// The docker image's ENTRYPOINT is used if this is not provided.
// +kubebuilder:validation:Optional
Command []*string `json:"command,omitempty" tf:"command,omitempty"`
// List of environment variables to set in the container.
// Structure is documented below.
// +kubebuilder:validation:Optional
Env []EnvParameters `json:"env,omitempty" tf:"env,omitempty"`
// List of sources to populate environment variables in the container.
// All invalid keys will be reported as an event when the container is starting.
// When a key exists in multiple sources, the value associated with the last source will
// take precedence. Values defined by an Env with a duplicate key will take
// precedence.
// Structure is documented below.
// +kubebuilder:validation:Optional
EnvFrom []EnvFromParameters `json:"envFrom,omitempty" tf:"env_from,omitempty"`
// Docker image name. This is most often a reference to a container located
// in the container registry, such as gcr.io/cloudrun/hello
// +kubebuilder:validation:Optional
Image *string `json:"image" tf:"image,omitempty"`
// Periodic probe of container liveness. Container will be restarted if the probe fails.
// Structure is documented below.
// +kubebuilder:validation:Optional
LivenessProbe *LivenessProbeParameters `json:"livenessProbe,omitempty" tf:"liveness_probe,omitempty"`
// Volume's name.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// List of open ports in the container.
// Structure is documented below.
// +kubebuilder:validation:Optional
Ports []PortsParameters `json:"ports,omitempty" tf:"ports,omitempty"`
// Compute Resources required by this container. Used to set values such as max memory
// Structure is documented below.
// +kubebuilder:validation:Optional
Resources *ResourcesParameters `json:"resources,omitempty" tf:"resources,omitempty"`
// Startup probe of application within the container.
// All other probes are disabled if a startup probe is provided, until it
// succeeds. Container will not be added to service endpoints if the probe fails.
// Structure is documented below.
// +kubebuilder:validation:Optional
StartupProbe *StartupProbeParameters `json:"startupProbe,omitempty" tf:"startup_probe,omitempty"`
// Volume to mount into the container's filesystem.
// Only supports SecretVolumeSources.
// Structure is documented below.
// +kubebuilder:validation:Optional
VolumeMounts []VolumeMountsParameters `json:"volumeMounts,omitempty" tf:"volume_mounts,omitempty"`
// Container's working directory.
// If not specified, the container runtime's default will be used, which
// might be configured in the container image.
// +kubebuilder:validation:Optional
WorkingDir *string `json:"workingDir,omitempty" tf:"working_dir,omitempty"`
}
type EnvFromInitParameters struct {
// The ConfigMap to select from.
// Structure is documented below.
ConfigMapRef *ConfigMapRefInitParameters `json:"configMapRef,omitempty" tf:"config_map_ref,omitempty"`
// An optional identifier to prepend to each key in the ConfigMap.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// The Secret to select from.
// Structure is documented below.
SecretRef *SecretRefInitParameters `json:"secretRef,omitempty" tf:"secret_ref,omitempty"`
}
type EnvFromObservation struct {
// The ConfigMap to select from.
// Structure is documented below.
ConfigMapRef *ConfigMapRefObservation `json:"configMapRef,omitempty" tf:"config_map_ref,omitempty"`
// An optional identifier to prepend to each key in the ConfigMap.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// The Secret to select from.
// Structure is documented below.
SecretRef *SecretRefObservation `json:"secretRef,omitempty" tf:"secret_ref,omitempty"`
}
type EnvFromParameters struct {
// The ConfigMap to select from.
// Structure is documented below.
// +kubebuilder:validation:Optional
ConfigMapRef *ConfigMapRefParameters `json:"configMapRef,omitempty" tf:"config_map_ref,omitempty"`
// An optional identifier to prepend to each key in the ConfigMap.
// +kubebuilder:validation:Optional
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// The Secret to select from.
// Structure is documented below.
// +kubebuilder:validation:Optional
SecretRef *SecretRefParameters `json:"secretRef,omitempty" tf:"secret_ref,omitempty"`
}
type EnvInitParameters struct {
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The header field value.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
// Source for the environment variable's value. Only supports secret_key_ref.
// Structure is documented below.
ValueFrom *ValueFromInitParameters `json:"valueFrom,omitempty" tf:"value_from,omitempty"`
}
type EnvObservation struct {
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The header field value.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
// Source for the environment variable's value. Only supports secret_key_ref.
// Structure is documented below.
ValueFrom *ValueFromObservation `json:"valueFrom,omitempty" tf:"value_from,omitempty"`
}
type EnvParameters struct {
// Volume's name.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The header field value.
// +kubebuilder:validation:Optional
Value *string `json:"value,omitempty" tf:"value,omitempty"`
// Source for the environment variable's value. Only supports secret_key_ref.
// Structure is documented below.
// +kubebuilder:validation:Optional
ValueFrom *ValueFromParameters `json:"valueFrom,omitempty" tf:"value_from,omitempty"`
}
type GRPCInitParameters struct {
// Port number to access on the container. Number must be in the range 1 to 65535.
// If not specified, defaults to the same value as container.ports[0].containerPort.
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
// The name of the service to place in the gRPC HealthCheckRequest
// (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
// If this is not specified, the default behavior is defined by gRPC.
Service *string `json:"service,omitempty" tf:"service,omitempty"`
}
type GRPCObservation struct {
// Port number to access on the container. Number must be in the range 1 to 65535.
// If not specified, defaults to the same value as container.ports[0].containerPort.
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
// The name of the service to place in the gRPC HealthCheckRequest
// (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
// If this is not specified, the default behavior is defined by gRPC.
Service *string `json:"service,omitempty" tf:"service,omitempty"`
}
type GRPCParameters struct {
// Port number to access on the container. Number must be in the range 1 to 65535.
// If not specified, defaults to the same value as container.ports[0].containerPort.
// +kubebuilder:validation:Optional
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
// The name of the service to place in the gRPC HealthCheckRequest
// (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
// If this is not specified, the default behavior is defined by gRPC.
// +kubebuilder:validation:Optional
Service *string `json:"service,omitempty" tf:"service,omitempty"`
}
type HTTPGetHTTPHeadersInitParameters struct {
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The header field value.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type HTTPGetHTTPHeadersObservation struct {
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The header field value.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type HTTPGetHTTPHeadersParameters struct {
// Volume's name.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// The header field value.
// +kubebuilder:validation:Optional
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type HTTPGetInitParameters struct {
// Custom headers to set in the request. HTTP allows repeated headers.
// Structure is documented below.
HTTPHeaders []HTTPHeadersInitParameters `json:"httpHeaders,omitempty" tf:"http_headers,omitempty"`
// The relative path of the file to map the key to.
// May not be an absolute path.
// May not contain the path element '..'.
// May not start with the string '..'.
Path *string `json:"path,omitempty" tf:"path,omitempty"`
// Port number to access on the container. Number must be in the range 1 to 65535.
// If not specified, defaults to the same value as container.ports[0].containerPort.
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
}
type HTTPGetObservation struct {
// Custom headers to set in the request. HTTP allows repeated headers.
// Structure is documented below.
HTTPHeaders []HTTPHeadersObservation `json:"httpHeaders,omitempty" tf:"http_headers,omitempty"`
// The relative path of the file to map the key to.
// May not be an absolute path.
// May not contain the path element '..'.
// May not start with the string '..'.
Path *string `json:"path,omitempty" tf:"path,omitempty"`
// Port number to access on the container. Number must be in the range 1 to 65535.
// If not specified, defaults to the same value as container.ports[0].containerPort.
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
}
type HTTPGetParameters struct {
// Custom headers to set in the request. HTTP allows repeated headers.
// Structure is documented below.
// +kubebuilder:validation:Optional
HTTPHeaders []HTTPHeadersParameters `json:"httpHeaders,omitempty" tf:"http_headers,omitempty"`
// The relative path of the file to map the key to.
// May not be an absolute path.
// May not contain the path element '..'.
// May not start with the string '..'.
// +kubebuilder:validation:Optional
Path *string `json:"path,omitempty" tf:"path,omitempty"`
// Port number to access on the container. Number must be in the range 1 to 65535.
// If not specified, defaults to the same value as container.ports[0].containerPort.
// +kubebuilder:validation:Optional
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
}
type HTTPHeadersInitParameters struct {
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The header field value.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type HTTPHeadersObservation struct {
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The header field value.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type HTTPHeadersParameters struct {
// Volume's name.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// The header field value.
// +kubebuilder:validation:Optional
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type ItemsInitParameters struct {
// A Cloud Secret Manager secret version. Must be 'latest' for the latest
// version or an integer for a specific version.
Key *string `json:"key,omitempty" tf:"key,omitempty"`
// Mode bits to use on this file, must be a value between 0000 and 0777. If
// not specified, the volume defaultMode will be used. This might be in
// conflict with other options that affect the file mode, like fsGroup, and
// the result can be other mode bits set.
Mode *float64 `json:"mode,omitempty" tf:"mode,omitempty"`
// The relative path of the file to map the key to.
// May not be an absolute path.
// May not contain the path element '..'.
// May not start with the string '..'.
Path *string `json:"path,omitempty" tf:"path,omitempty"`
}
type ItemsObservation struct {
// A Cloud Secret Manager secret version. Must be 'latest' for the latest
// version or an integer for a specific version.
Key *string `json:"key,omitempty" tf:"key,omitempty"`
// Mode bits to use on this file, must be a value between 0000 and 0777. If
// not specified, the volume defaultMode will be used. This might be in
// conflict with other options that affect the file mode, like fsGroup, and
// the result can be other mode bits set.
Mode *float64 `json:"mode,omitempty" tf:"mode,omitempty"`
// The relative path of the file to map the key to.
// May not be an absolute path.
// May not contain the path element '..'.
// May not start with the string '..'.
Path *string `json:"path,omitempty" tf:"path,omitempty"`
}
type ItemsParameters struct {
// A Cloud Secret Manager secret version. Must be 'latest' for the latest
// version or an integer for a specific version.
// +kubebuilder:validation:Optional
Key *string `json:"key" tf:"key,omitempty"`
// Mode bits to use on this file, must be a value between 0000 and 0777. If
// not specified, the volume defaultMode will be used. This might be in
// conflict with other options that affect the file mode, like fsGroup, and
// the result can be other mode bits set.
// +kubebuilder:validation:Optional
Mode *float64 `json:"mode,omitempty" tf:"mode,omitempty"`
// The relative path of the file to map the key to.
// May not be an absolute path.
// May not contain the path element '..'.
// May not start with the string '..'.
// +kubebuilder:validation:Optional
Path *string `json:"path" tf:"path,omitempty"`
}
type LivenessProbeInitParameters struct {
// Minimum consecutive failures for the probe to be considered failed after
// having succeeded. Defaults to 3. Minimum value is 1.
FailureThreshold *float64 `json:"failureThreshold,omitempty" tf:"failure_threshold,omitempty"`
// GRPC specifies an action involving a GRPC port.
// Structure is documented below.
GRPC *GRPCInitParameters `json:"grpc,omitempty" tf:"grpc,omitempty"`
// HttpGet specifies the http request to perform.
// Structure is documented below.
HTTPGet *HTTPGetInitParameters `json:"httpGet,omitempty" tf:"http_get,omitempty"`
// Number of seconds after the container has started before the probe is
// initiated.
// Defaults to 0 seconds. Minimum value is 0. Maximum value is 240.
InitialDelaySeconds *float64 `json:"initialDelaySeconds,omitempty" tf:"initial_delay_seconds,omitempty"`
// How often (in seconds) to perform the probe.
// Default to 10 seconds. Minimum value is 1. Maximum value is 240.
PeriodSeconds *float64 `json:"periodSeconds,omitempty" tf:"period_seconds,omitempty"`
// Number of seconds after which the probe times out.
// Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
// Must be smaller than periodSeconds.
TimeoutSeconds *float64 `json:"timeoutSeconds,omitempty" tf:"timeout_seconds,omitempty"`
}
type LivenessProbeObservation struct {
// Minimum consecutive failures for the probe to be considered failed after
// having succeeded. Defaults to 3. Minimum value is 1.
FailureThreshold *float64 `json:"failureThreshold,omitempty" tf:"failure_threshold,omitempty"`
// GRPC specifies an action involving a GRPC port.
// Structure is documented below.
GRPC *GRPCObservation `json:"grpc,omitempty" tf:"grpc,omitempty"`
// HttpGet specifies the http request to perform.
// Structure is documented below.
HTTPGet *HTTPGetObservation `json:"httpGet,omitempty" tf:"http_get,omitempty"`
// Number of seconds after the container has started before the probe is
// initiated.
// Defaults to 0 seconds. Minimum value is 0. Maximum value is 240.
InitialDelaySeconds *float64 `json:"initialDelaySeconds,omitempty" tf:"initial_delay_seconds,omitempty"`
// How often (in seconds) to perform the probe.
// Default to 10 seconds. Minimum value is 1. Maximum value is 240.
PeriodSeconds *float64 `json:"periodSeconds,omitempty" tf:"period_seconds,omitempty"`
// Number of seconds after which the probe times out.
// Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
// Must be smaller than periodSeconds.
TimeoutSeconds *float64 `json:"timeoutSeconds,omitempty" tf:"timeout_seconds,omitempty"`
}
type LivenessProbeParameters struct {
// Minimum consecutive failures for the probe to be considered failed after
// having succeeded. Defaults to 3. Minimum value is 1.
// +kubebuilder:validation:Optional
FailureThreshold *float64 `json:"failureThreshold,omitempty" tf:"failure_threshold,omitempty"`
// GRPC specifies an action involving a GRPC port.
// Structure is documented below.
// +kubebuilder:validation:Optional
GRPC *GRPCParameters `json:"grpc,omitempty" tf:"grpc,omitempty"`
// HttpGet specifies the http request to perform.
// Structure is documented below.
// +kubebuilder:validation:Optional
HTTPGet *HTTPGetParameters `json:"httpGet,omitempty" tf:"http_get,omitempty"`
// Number of seconds after the container has started before the probe is
// initiated.
// Defaults to 0 seconds. Minimum value is 0. Maximum value is 240.
// +kubebuilder:validation:Optional
InitialDelaySeconds *float64 `json:"initialDelaySeconds,omitempty" tf:"initial_delay_seconds,omitempty"`
// How often (in seconds) to perform the probe.
// Default to 10 seconds. Minimum value is 1. Maximum value is 240.
// +kubebuilder:validation:Optional
PeriodSeconds *float64 `json:"periodSeconds,omitempty" tf:"period_seconds,omitempty"`
// Number of seconds after which the probe times out.
// Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
// Must be smaller than periodSeconds.
// +kubebuilder:validation:Optional
TimeoutSeconds *float64 `json:"timeoutSeconds,omitempty" tf:"timeout_seconds,omitempty"`
}
type LocalObjectReferenceInitParameters struct {
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type LocalObjectReferenceObservation struct {
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type LocalObjectReferenceParameters struct {
// Volume's name.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
}
type PortsInitParameters struct {
// Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to "8080".
ContainerPort *float64 `json:"containerPort,omitempty" tf:"container_port,omitempty"`
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Protocol for port. Must be "TCP". Defaults to "TCP".
Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`
}
type PortsObservation struct {
// Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to "8080".
ContainerPort *float64 `json:"containerPort,omitempty" tf:"container_port,omitempty"`
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Protocol for port. Must be "TCP". Defaults to "TCP".
Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`
}
type PortsParameters struct {
// Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to "8080".
// +kubebuilder:validation:Optional
ContainerPort *float64 `json:"containerPort,omitempty" tf:"container_port,omitempty"`
// Volume's name.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Protocol for port. Must be "TCP". Defaults to "TCP".
// +kubebuilder:validation:Optional
Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`
}
type ResourcesInitParameters struct {
// Limits describes the maximum amount of compute resources allowed.
// The values of the map is string form of the 'quantity' k8s type:
// https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
// +mapType=granular
Limits map[string]*string `json:"limits,omitempty" tf:"limits,omitempty"`
// Requests describes the minimum amount of compute resources required.
// If Requests is omitted for a container, it defaults to Limits if that is
// explicitly specified, otherwise to an implementation-defined value.
// The values of the map is string form of the 'quantity' k8s type:
// https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
// +mapType=granular
Requests map[string]*string `json:"requests,omitempty" tf:"requests,omitempty"`
}
type ResourcesObservation struct {
// Limits describes the maximum amount of compute resources allowed.
// The values of the map is string form of the 'quantity' k8s type:
// https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
// +mapType=granular
Limits map[string]*string `json:"limits,omitempty" tf:"limits,omitempty"`
// Requests describes the minimum amount of compute resources required.
// If Requests is omitted for a container, it defaults to Limits if that is
// explicitly specified, otherwise to an implementation-defined value.
// The values of the map is string form of the 'quantity' k8s type:
// https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
// +mapType=granular
Requests map[string]*string `json:"requests,omitempty" tf:"requests,omitempty"`
}
type ResourcesParameters struct {
// Limits describes the maximum amount of compute resources allowed.
// The values of the map is string form of the 'quantity' k8s type:
// https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
// +kubebuilder:validation:Optional
// +mapType=granular
Limits map[string]*string `json:"limits,omitempty" tf:"limits,omitempty"`
// Requests describes the minimum amount of compute resources required.
// If Requests is omitted for a container, it defaults to Limits if that is
// explicitly specified, otherwise to an implementation-defined value.
// The values of the map is string form of the 'quantity' k8s type:
// https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
// +kubebuilder:validation:Optional
// +mapType=granular
Requests map[string]*string `json:"requests,omitempty" tf:"requests,omitempty"`
}
type SecretInitParameters struct {
// Mode bits to use on created files by default. Must be a value between 0000
// and 0777. Defaults to 0644. Directories within the path are not affected by
// this setting. This might be in conflict with other options that affect the
// file mode, like fsGroup, and the result can be other mode bits set.
DefaultMode *float64 `json:"defaultMode,omitempty" tf:"default_mode,omitempty"`
// If unspecified, the volume will expose a file whose name is the
// secret_name.
// If specified, the key will be used as the version to fetch from Cloud
// Secret Manager and the path will be the name of the file exposed in the
// volume. When items are defined, they must specify a key and a path.
// Structure is documented below.
Items []ItemsInitParameters `json:"items,omitempty" tf:"items,omitempty"`
// The name of the secret in Cloud Secret Manager. By default, the secret
// is assumed to be in the same project.
// If the secret is in another project, you must define an alias.
// An alias definition has the form:
// {alias}:projects/{project-id|project-number}/secrets/{secret-name}.
// If multiple alias definitions are needed, they must be separated by
// commas.
// The alias definitions must be set on the run.googleapis.com/secrets
// annotation.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/secretmanager/v1beta2.Secret
SecretName *string `json:"secretName,omitempty" tf:"secret_name,omitempty"`
// Reference to a Secret in secretmanager to populate secretName.
// +kubebuilder:validation:Optional
SecretNameRef *v1.Reference `json:"secretNameRef,omitempty" tf:"-"`
// Selector for a Secret in secretmanager to populate secretName.
// +kubebuilder:validation:Optional
SecretNameSelector *v1.Selector `json:"secretNameSelector,omitempty" tf:"-"`
}
type SecretKeyRefInitParameters struct {
// A Cloud Secret Manager secret version. Must be 'latest' for the latest
// version or an integer for a specific version.
Key *string `json:"key,omitempty" tf:"key,omitempty"`
// Volume's name.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/secretmanager/v1beta2.Secret
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Reference to a Secret in secretmanager to populate name.
// +kubebuilder:validation:Optional
NameRef *v1.Reference `json:"nameRef,omitempty" tf:"-"`
// Selector for a Secret in secretmanager to populate name.
// +kubebuilder:validation:Optional
NameSelector *v1.Selector `json:"nameSelector,omitempty" tf:"-"`
}
type SecretKeyRefObservation struct {
// A Cloud Secret Manager secret version. Must be 'latest' for the latest
// version or an integer for a specific version.
Key *string `json:"key,omitempty" tf:"key,omitempty"`
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type SecretKeyRefParameters struct {
// A Cloud Secret Manager secret version. Must be 'latest' for the latest
// version or an integer for a specific version.
// +kubebuilder:validation:Optional
Key *string `json:"key" tf:"key,omitempty"`
// Volume's name.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/secretmanager/v1beta2.Secret
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Reference to a Secret in secretmanager to populate name.
// +kubebuilder:validation:Optional
NameRef *v1.Reference `json:"nameRef,omitempty" tf:"-"`
// Selector for a Secret in secretmanager to populate name.
// +kubebuilder:validation:Optional
NameSelector *v1.Selector `json:"nameSelector,omitempty" tf:"-"`
}
type SecretObservation struct {
// Mode bits to use on created files by default. Must be a value between 0000
// and 0777. Defaults to 0644. Directories within the path are not affected by
// this setting. This might be in conflict with other options that affect the
// file mode, like fsGroup, and the result can be other mode bits set.
DefaultMode *float64 `json:"defaultMode,omitempty" tf:"default_mode,omitempty"`
// If unspecified, the volume will expose a file whose name is the
// secret_name.
// If specified, the key will be used as the version to fetch from Cloud
// Secret Manager and the path will be the name of the file exposed in the
// volume. When items are defined, they must specify a key and a path.
// Structure is documented below.
Items []ItemsObservation `json:"items,omitempty" tf:"items,omitempty"`
// The name of the secret in Cloud Secret Manager. By default, the secret
// is assumed to be in the same project.
// If the secret is in another project, you must define an alias.
// An alias definition has the form:
// {alias}:projects/{project-id|project-number}/secrets/{secret-name}.
// If multiple alias definitions are needed, they must be separated by
// commas.
// The alias definitions must be set on the run.googleapis.com/secrets
// annotation.
SecretName *string `json:"secretName,omitempty" tf:"secret_name,omitempty"`
}
type SecretParameters struct {
// Mode bits to use on created files by default. Must be a value between 0000
// and 0777. Defaults to 0644. Directories within the path are not affected by
// this setting. This might be in conflict with other options that affect the
// file mode, like fsGroup, and the result can be other mode bits set.
// +kubebuilder:validation:Optional
DefaultMode *float64 `json:"defaultMode,omitempty" tf:"default_mode,omitempty"`
// If unspecified, the volume will expose a file whose name is the
// secret_name.
// If specified, the key will be used as the version to fetch from Cloud
// Secret Manager and the path will be the name of the file exposed in the
// volume. When items are defined, they must specify a key and a path.
// Structure is documented below.
// +kubebuilder:validation:Optional
Items []ItemsParameters `json:"items,omitempty" tf:"items,omitempty"`
// The name of the secret in Cloud Secret Manager. By default, the secret
// is assumed to be in the same project.
// If the secret is in another project, you must define an alias.
// An alias definition has the form:
// {alias}:projects/{project-id|project-number}/secrets/{secret-name}.
// If multiple alias definitions are needed, they must be separated by
// commas.
// The alias definitions must be set on the run.googleapis.com/secrets
// annotation.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/secretmanager/v1beta2.Secret
// +kubebuilder:validation:Optional
SecretName *string `json:"secretName,omitempty" tf:"secret_name,omitempty"`
// Reference to a Secret in secretmanager to populate secretName.
// +kubebuilder:validation:Optional
SecretNameRef *v1.Reference `json:"secretNameRef,omitempty" tf:"-"`
// Selector for a Secret in secretmanager to populate secretName.
// +kubebuilder:validation:Optional
SecretNameSelector *v1.Selector `json:"secretNameSelector,omitempty" tf:"-"`
}
type SecretRefInitParameters struct {
// The Secret to select from.
// Structure is documented below.
LocalObjectReference *SecretRefLocalObjectReferenceInitParameters `json:"localObjectReference,omitempty" tf:"local_object_reference,omitempty"`
// Specify whether the Secret must be defined
Optional *bool `json:"optional,omitempty" tf:"optional,omitempty"`
}
type SecretRefLocalObjectReferenceInitParameters struct {
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type SecretRefLocalObjectReferenceObservation struct {
// Volume's name.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type SecretRefLocalObjectReferenceParameters struct {
// Volume's name.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
}
type SecretRefObservation struct {
// The Secret to select from.
// Structure is documented below.
LocalObjectReference *SecretRefLocalObjectReferenceObservation `json:"localObjectReference,omitempty" tf:"local_object_reference,omitempty"`
// Specify whether the Secret must be defined
Optional *bool `json:"optional,omitempty" tf:"optional,omitempty"`
}
type SecretRefParameters struct {
// The Secret to select from.
// Structure is documented below.
// +kubebuilder:validation:Optional
LocalObjectReference *SecretRefLocalObjectReferenceParameters `json:"localObjectReference,omitempty" tf:"local_object_reference,omitempty"`
// Specify whether the Secret must be defined
// +kubebuilder:validation:Optional
Optional *bool `json:"optional,omitempty" tf:"optional,omitempty"`
}
type ServiceInitParameters struct {
// If set to true, the revision name (template.metadata.name) will be omitted and
// autogenerated by Cloud Run. This cannot be set to true while template.metadata.name
// is also set.
// (For legacy support, if template.metadata.name is unset in state while
// this field is set to false, the revision name will still autogenerate.)
AutogenerateRevisionName *bool `json:"autogenerateRevisionName,omitempty" tf:"autogenerate_revision_name,omitempty"`
// Optional metadata for this Revision, including labels and annotations.
// Name will be generated by the Configuration. To set minimum instances
// for this revision, use the "autoscaling.knative.dev/minScale" annotation
// key. To set maximum instances for this revision, use the
// "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL
// connections for the revision, use the "run.googleapis.com/cloudsql-instances"
// annotation key.
// Structure is documented below.
Metadata *ServiceMetadataInitParameters `json:"metadata,omitempty" tf:"metadata,omitempty"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// template holds the latest specification for the Revision to
// be stamped out. The template references the container image, and may also
// include labels and annotations that should be attached to the Revision.
// To correlate a Revision, and/or to force a Revision to be created when the
// spec doesn't otherwise change, a nonce label may be provided in the
// template metadata. For more details, see:
// https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions
// Cloud Run does not currently support referencing a build that is
// responsible for materializing the container image from source.
// Structure is documented below.
Template *TemplateInitParameters `json:"template,omitempty" tf:"template,omitempty"`
// (Output)
// Traffic specifies how to distribute traffic over a collection of Knative Revisions
// and Configurations
// Structure is documented below.
Traffic []ServiceTrafficInitParameters `json:"traffic,omitempty" tf:"traffic,omitempty"`
}
type ServiceMetadataInitParameters struct {
// Annotations is a key value map stored with a resource that
// may be set by external tools to store and retrieve arbitrary metadata. More
// info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
// Note: The Cloud Run API may add additional annotations that were not provided in your config.ignore_changes rule to the metadata.0.annotations field.
// Annotations with run.googleapis.com/ and autoscaling.knative.dev are restricted. Use the following annotation
// keys to configure features on a Revision template:
// +mapType=granular
Annotations map[string]*string `json:"annotations,omitempty" tf:"annotations,omitempty"`
// Map of string keys and values that can be used to organize and categorize
// (scope and select) objects.
// +mapType=granular
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// In Cloud Run the namespace must be equal to either the
// project ID or project number. It will default to the resource's project.