@pulumi/docker 4.4.3 → 4.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/container.d.ts +12 -12
- package/image.d.ts +1 -2
- package/image.js +2 -4
- package/image.js.map +1 -1
- package/package.json +1 -1
- package/plugin.d.ts +3 -3
- package/remoteImage.d.ts +9 -9
- package/service.d.ts +6 -6
- package/types/input.d.ts +324 -10
- package/types/input.js +0 -9
- package/types/input.js.map +1 -1
- package/types/output.d.ts +324 -6
package/types/input.d.ts
CHANGED
|
@@ -107,21 +107,39 @@ export interface ContainerMount {
|
|
|
107
107
|
volumeOptions?: pulumi.Input<inputs.ContainerMountVolumeOptions>;
|
|
108
108
|
}
|
|
109
109
|
export interface ContainerMountBindOptions {
|
|
110
|
+
/**
|
|
111
|
+
* A propagation mode with the value.
|
|
112
|
+
*/
|
|
110
113
|
propagation?: pulumi.Input<string>;
|
|
111
114
|
}
|
|
112
115
|
export interface ContainerMountTmpfsOptions {
|
|
116
|
+
/**
|
|
117
|
+
* The permission mode for the tmpfs mount in an integer.
|
|
118
|
+
*/
|
|
113
119
|
mode?: pulumi.Input<number>;
|
|
120
|
+
/**
|
|
121
|
+
* The size for the tmpfs mount in bytes.
|
|
122
|
+
*/
|
|
114
123
|
sizeBytes?: pulumi.Input<number>;
|
|
115
124
|
}
|
|
116
125
|
export interface ContainerMountVolumeOptions {
|
|
126
|
+
/**
|
|
127
|
+
* Name of the driver to use to create the volume.
|
|
128
|
+
*/
|
|
117
129
|
driverName?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* key/value map of driver specific options.
|
|
132
|
+
*/
|
|
118
133
|
driverOptions?: pulumi.Input<{
|
|
119
134
|
[key: string]: pulumi.Input<string>;
|
|
120
135
|
}>;
|
|
121
136
|
/**
|
|
122
|
-
* User-defined key/value metadata
|
|
137
|
+
* User-defined key/value metadata.
|
|
123
138
|
*/
|
|
124
139
|
labels?: pulumi.Input<pulumi.Input<inputs.ContainerMountVolumeOptionsLabel>[]>;
|
|
140
|
+
/**
|
|
141
|
+
* Populate volume with data from the target.
|
|
142
|
+
*/
|
|
125
143
|
noCopy?: pulumi.Input<boolean>;
|
|
126
144
|
}
|
|
127
145
|
export interface ContainerMountVolumeOptionsLabel {
|
|
@@ -274,10 +292,6 @@ export interface DockerBuild {
|
|
|
274
292
|
*/
|
|
275
293
|
target?: pulumi.Input<string>;
|
|
276
294
|
}
|
|
277
|
-
/**
|
|
278
|
-
* dockerBuildProvideDefaults sets the appropriate defaults for DockerBuild
|
|
279
|
-
*/
|
|
280
|
-
export declare function dockerBuildProvideDefaults(val: DockerBuild): DockerBuild;
|
|
281
295
|
export interface NetworkIpamConfig {
|
|
282
296
|
/**
|
|
283
297
|
* Auxiliary IPv4 or IPv6 addresses used by Network driver
|
|
@@ -494,21 +508,51 @@ export interface RemoteImageBuild {
|
|
|
494
508
|
version?: pulumi.Input<string>;
|
|
495
509
|
}
|
|
496
510
|
export interface RemoteImageBuildAuthConfig {
|
|
511
|
+
/**
|
|
512
|
+
* the auth token
|
|
513
|
+
*/
|
|
497
514
|
auth?: pulumi.Input<string>;
|
|
515
|
+
/**
|
|
516
|
+
* the user emal
|
|
517
|
+
*/
|
|
498
518
|
email?: pulumi.Input<string>;
|
|
519
|
+
/**
|
|
520
|
+
* hostname of the registry
|
|
521
|
+
*/
|
|
499
522
|
hostName: pulumi.Input<string>;
|
|
523
|
+
/**
|
|
524
|
+
* the identity token
|
|
525
|
+
*/
|
|
500
526
|
identityToken?: pulumi.Input<string>;
|
|
527
|
+
/**
|
|
528
|
+
* the registry password
|
|
529
|
+
*/
|
|
501
530
|
password?: pulumi.Input<string>;
|
|
531
|
+
/**
|
|
532
|
+
* the registry token
|
|
533
|
+
*/
|
|
502
534
|
registryToken?: pulumi.Input<string>;
|
|
535
|
+
/**
|
|
536
|
+
* the server address
|
|
537
|
+
*/
|
|
503
538
|
serverAddress?: pulumi.Input<string>;
|
|
539
|
+
/**
|
|
540
|
+
* the registry user name
|
|
541
|
+
*/
|
|
504
542
|
userName?: pulumi.Input<string>;
|
|
505
543
|
}
|
|
506
544
|
export interface RemoteImageBuildUlimit {
|
|
545
|
+
/**
|
|
546
|
+
* soft limit
|
|
547
|
+
*/
|
|
507
548
|
hard: pulumi.Input<number>;
|
|
508
549
|
/**
|
|
509
|
-
*
|
|
550
|
+
* type of ulimit, e.g. `nofile`
|
|
510
551
|
*/
|
|
511
552
|
name: pulumi.Input<string>;
|
|
553
|
+
/**
|
|
554
|
+
* hard limit
|
|
555
|
+
*/
|
|
512
556
|
soft: pulumi.Input<number>;
|
|
513
557
|
}
|
|
514
558
|
export interface SecretLabel {
|
|
@@ -557,12 +601,24 @@ export interface ServiceEndpointSpec {
|
|
|
557
601
|
}
|
|
558
602
|
export interface ServiceEndpointSpecPort {
|
|
559
603
|
/**
|
|
560
|
-
*
|
|
604
|
+
* A random name for the port
|
|
561
605
|
*/
|
|
562
606
|
name?: pulumi.Input<string>;
|
|
607
|
+
/**
|
|
608
|
+
* Rrepresents the protocol of a port: `tcp`, `udp` or `sctp`. Defaults to `tcp`.
|
|
609
|
+
*/
|
|
563
610
|
protocol?: pulumi.Input<string>;
|
|
611
|
+
/**
|
|
612
|
+
* Represents the mode in which the port is to be published: 'ingress' or 'host'. Defaults to `ingress`.
|
|
613
|
+
*/
|
|
564
614
|
publishMode?: pulumi.Input<string>;
|
|
615
|
+
/**
|
|
616
|
+
* The port on the swarm hosts
|
|
617
|
+
*/
|
|
565
618
|
publishedPort?: pulumi.Input<number>;
|
|
619
|
+
/**
|
|
620
|
+
* The port inside the container
|
|
621
|
+
*/
|
|
566
622
|
targetPort: pulumi.Input<number>;
|
|
567
623
|
}
|
|
568
624
|
export interface ServiceLabel {
|
|
@@ -586,6 +642,9 @@ export interface ServiceMode {
|
|
|
586
642
|
replicated?: pulumi.Input<inputs.ServiceModeReplicated>;
|
|
587
643
|
}
|
|
588
644
|
export interface ServiceModeReplicated {
|
|
645
|
+
/**
|
|
646
|
+
* The amount of replicas of the service. Defaults to `1`
|
|
647
|
+
*/
|
|
589
648
|
replicas?: pulumi.Input<number>;
|
|
590
649
|
}
|
|
591
650
|
export interface ServiceRollbackConfig {
|
|
@@ -649,57 +708,165 @@ export interface ServiceTaskSpec {
|
|
|
649
708
|
runtime?: pulumi.Input<string>;
|
|
650
709
|
}
|
|
651
710
|
export interface ServiceTaskSpecContainerSpec {
|
|
711
|
+
/**
|
|
712
|
+
* Arguments to the command
|
|
713
|
+
*/
|
|
652
714
|
args?: pulumi.Input<pulumi.Input<string>[]>;
|
|
715
|
+
/**
|
|
716
|
+
* The command/entrypoint to be run in the image. According to the [docker cli](https://github.com/docker/cli/blob/v20.10.7/cli/command/service/opts.go#L705) the override of the entrypoint is also passed to the `command` property and there is no `entrypoint` attribute in the `ContainerSpec` of the service.
|
|
717
|
+
*/
|
|
653
718
|
commands?: pulumi.Input<pulumi.Input<string>[]>;
|
|
719
|
+
/**
|
|
720
|
+
* References to zero or more configs that will be exposed to the service
|
|
721
|
+
*/
|
|
654
722
|
configs?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecConfig>[]>;
|
|
723
|
+
/**
|
|
724
|
+
* The working directory for commands to run in
|
|
725
|
+
*/
|
|
655
726
|
dir?: pulumi.Input<string>;
|
|
727
|
+
/**
|
|
728
|
+
* Specification for DNS related configurations in resolver configuration file (`resolv.conf`)
|
|
729
|
+
*/
|
|
656
730
|
dnsConfig?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecDnsConfig>;
|
|
731
|
+
/**
|
|
732
|
+
* A list of environment variables in the form VAR="value"
|
|
733
|
+
*/
|
|
657
734
|
env?: pulumi.Input<{
|
|
658
735
|
[key: string]: pulumi.Input<string>;
|
|
659
736
|
}>;
|
|
737
|
+
/**
|
|
738
|
+
* A list of additional groups that the container process will run as
|
|
739
|
+
*/
|
|
660
740
|
groups?: pulumi.Input<pulumi.Input<string>[]>;
|
|
741
|
+
/**
|
|
742
|
+
* A test to perform to check that the container is healthy
|
|
743
|
+
*/
|
|
661
744
|
healthcheck?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecHealthcheck>;
|
|
745
|
+
/**
|
|
746
|
+
* The hostname to use for the container, as a valid RFC 1123 hostname
|
|
747
|
+
*/
|
|
662
748
|
hostname?: pulumi.Input<string>;
|
|
749
|
+
/**
|
|
750
|
+
* A list of hostname/IP mappings to add to the container's hosts file
|
|
751
|
+
*/
|
|
663
752
|
hosts?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecHost>[]>;
|
|
753
|
+
/**
|
|
754
|
+
* The image name to use for the containers of the service, like `nginx:1.17.6`. Also use the data-source or resource of `docker.RemoteImage` with the `repoDigest` or `docker.RegistryImage` with the `name` attribute for this, as shown in the examples.
|
|
755
|
+
*/
|
|
664
756
|
image: pulumi.Input<string>;
|
|
757
|
+
/**
|
|
758
|
+
* Isolation technology of the containers running the service. (Windows only). Defaults to `default`.
|
|
759
|
+
*/
|
|
665
760
|
isolation?: pulumi.Input<string>;
|
|
666
761
|
/**
|
|
667
762
|
* User-defined key/value metadata
|
|
668
763
|
*/
|
|
669
764
|
labels?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecLabel>[]>;
|
|
765
|
+
/**
|
|
766
|
+
* Specification for mounts to be added to containers created as part of the service
|
|
767
|
+
*/
|
|
670
768
|
mounts?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecMount>[]>;
|
|
769
|
+
/**
|
|
770
|
+
* Security options for the container
|
|
771
|
+
*/
|
|
671
772
|
privileges?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecPrivileges>;
|
|
773
|
+
/**
|
|
774
|
+
* Whether the mount should be read-only
|
|
775
|
+
*/
|
|
672
776
|
readOnly?: pulumi.Input<boolean>;
|
|
777
|
+
/**
|
|
778
|
+
* References to zero or more secrets that will be exposed to the service
|
|
779
|
+
*/
|
|
673
780
|
secrets?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecSecret>[]>;
|
|
781
|
+
/**
|
|
782
|
+
* Amount of time to wait for the container to terminate before forcefully removing it (ms|s|m|h). If not specified or '0s' the destroy will not check if all tasks/containers of the service terminate.
|
|
783
|
+
*/
|
|
674
784
|
stopGracePeriod?: pulumi.Input<string>;
|
|
785
|
+
/**
|
|
786
|
+
* Signal to stop the container
|
|
787
|
+
*/
|
|
675
788
|
stopSignal?: pulumi.Input<string>;
|
|
789
|
+
/**
|
|
790
|
+
* Sysctls config (Linux only)
|
|
791
|
+
*/
|
|
676
792
|
sysctl?: pulumi.Input<{
|
|
677
793
|
[key: string]: any;
|
|
678
794
|
}>;
|
|
795
|
+
/**
|
|
796
|
+
* SELinux user label
|
|
797
|
+
*/
|
|
679
798
|
user?: pulumi.Input<string>;
|
|
680
799
|
}
|
|
681
800
|
export interface ServiceTaskSpecContainerSpecConfig {
|
|
801
|
+
/**
|
|
802
|
+
* ID of the specific config that we're referencing
|
|
803
|
+
*/
|
|
682
804
|
configId: pulumi.Input<string>;
|
|
805
|
+
/**
|
|
806
|
+
* Name of the config that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID
|
|
807
|
+
*/
|
|
683
808
|
configName?: pulumi.Input<string>;
|
|
809
|
+
/**
|
|
810
|
+
* Represents the file GID. Defaults to `0`.
|
|
811
|
+
*/
|
|
684
812
|
fileGid?: pulumi.Input<string>;
|
|
813
|
+
/**
|
|
814
|
+
* Represents represents the FileMode of the file. Defaults to `0o444`.
|
|
815
|
+
*/
|
|
685
816
|
fileMode?: pulumi.Input<number>;
|
|
817
|
+
/**
|
|
818
|
+
* Represents the final filename in the filesystem
|
|
819
|
+
*/
|
|
686
820
|
fileName: pulumi.Input<string>;
|
|
821
|
+
/**
|
|
822
|
+
* Represents the file UID. Defaults to `0`.
|
|
823
|
+
*/
|
|
687
824
|
fileUid?: pulumi.Input<string>;
|
|
688
825
|
}
|
|
689
826
|
export interface ServiceTaskSpecContainerSpecDnsConfig {
|
|
827
|
+
/**
|
|
828
|
+
* The IP addresses of the name servers
|
|
829
|
+
*/
|
|
690
830
|
nameservers: pulumi.Input<pulumi.Input<string>[]>;
|
|
831
|
+
/**
|
|
832
|
+
* A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.)
|
|
833
|
+
*/
|
|
691
834
|
options?: pulumi.Input<pulumi.Input<string>[]>;
|
|
835
|
+
/**
|
|
836
|
+
* A search list for host-name lookup
|
|
837
|
+
*/
|
|
692
838
|
searches?: pulumi.Input<pulumi.Input<string>[]>;
|
|
693
839
|
}
|
|
694
840
|
export interface ServiceTaskSpecContainerSpecHealthcheck {
|
|
841
|
+
/**
|
|
842
|
+
* Time between running the check (ms|s|m|h). Defaults to `0s`.
|
|
843
|
+
*/
|
|
695
844
|
interval?: pulumi.Input<string>;
|
|
845
|
+
/**
|
|
846
|
+
* Consecutive failures needed to report unhealthy. Defaults to `0`
|
|
847
|
+
*/
|
|
696
848
|
retries?: pulumi.Input<number>;
|
|
849
|
+
/**
|
|
850
|
+
* Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`.
|
|
851
|
+
*/
|
|
697
852
|
startPeriod?: pulumi.Input<string>;
|
|
853
|
+
/**
|
|
854
|
+
* The test to perform as list
|
|
855
|
+
*/
|
|
698
856
|
tests: pulumi.Input<pulumi.Input<string>[]>;
|
|
857
|
+
/**
|
|
858
|
+
* The timeout of the service to reach the desired state `(s|m)`. Defaults to `3m`
|
|
859
|
+
*/
|
|
699
860
|
timeout?: pulumi.Input<string>;
|
|
700
861
|
}
|
|
701
862
|
export interface ServiceTaskSpecContainerSpecHost {
|
|
863
|
+
/**
|
|
864
|
+
* The name of the host
|
|
865
|
+
*/
|
|
702
866
|
host: pulumi.Input<string>;
|
|
867
|
+
/**
|
|
868
|
+
* The ip of the host
|
|
869
|
+
*/
|
|
703
870
|
ip: pulumi.Input<string>;
|
|
704
871
|
}
|
|
705
872
|
export interface ServiceTaskSpecContainerSpecLabel {
|
|
@@ -713,26 +880,59 @@ export interface ServiceTaskSpecContainerSpecLabel {
|
|
|
713
880
|
value: pulumi.Input<string>;
|
|
714
881
|
}
|
|
715
882
|
export interface ServiceTaskSpecContainerSpecMount {
|
|
883
|
+
/**
|
|
884
|
+
* Optional configuration for the bind type
|
|
885
|
+
*/
|
|
716
886
|
bindOptions?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecMountBindOptions>;
|
|
887
|
+
/**
|
|
888
|
+
* Whether the mount should be read-only
|
|
889
|
+
*/
|
|
717
890
|
readOnly?: pulumi.Input<boolean>;
|
|
891
|
+
/**
|
|
892
|
+
* Mount source (e.g. a volume name, a host path)
|
|
893
|
+
*/
|
|
718
894
|
source?: pulumi.Input<string>;
|
|
895
|
+
/**
|
|
896
|
+
* Container path
|
|
897
|
+
*/
|
|
719
898
|
target: pulumi.Input<string>;
|
|
899
|
+
/**
|
|
900
|
+
* Optional configuration for the tmpfs type
|
|
901
|
+
*/
|
|
720
902
|
tmpfsOptions?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecMountTmpfsOptions>;
|
|
903
|
+
/**
|
|
904
|
+
* The mount type
|
|
905
|
+
*/
|
|
721
906
|
type: pulumi.Input<string>;
|
|
907
|
+
/**
|
|
908
|
+
* Optional configuration for the volume type
|
|
909
|
+
*/
|
|
722
910
|
volumeOptions?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecMountVolumeOptions>;
|
|
723
911
|
}
|
|
724
912
|
export interface ServiceTaskSpecContainerSpecMountBindOptions {
|
|
913
|
+
/**
|
|
914
|
+
* Bind propagation refers to whether or not mounts created within a given bind-mount or named volume can be propagated to replicas of that mount. See the [docs](https://docs.docker.com/storage/bind-mounts/#configure-bind-propagation) for details. Defaults to `rprivate`
|
|
915
|
+
*/
|
|
725
916
|
propagation?: pulumi.Input<string>;
|
|
726
917
|
}
|
|
727
918
|
export interface ServiceTaskSpecContainerSpecMountTmpfsOptions {
|
|
728
919
|
/**
|
|
729
|
-
*
|
|
920
|
+
* The mode of resolution to use for internal load balancing between tasks
|
|
730
921
|
*/
|
|
731
922
|
mode?: pulumi.Input<number>;
|
|
923
|
+
/**
|
|
924
|
+
* The size for the tmpfs mount in bytes
|
|
925
|
+
*/
|
|
732
926
|
sizeBytes?: pulumi.Input<number>;
|
|
733
927
|
}
|
|
734
928
|
export interface ServiceTaskSpecContainerSpecMountVolumeOptions {
|
|
929
|
+
/**
|
|
930
|
+
* Name of the driver to use to create the volume
|
|
931
|
+
*/
|
|
735
932
|
driverName?: pulumi.Input<string>;
|
|
933
|
+
/**
|
|
934
|
+
* key/value map of driver specific options
|
|
935
|
+
*/
|
|
736
936
|
driverOptions?: pulumi.Input<{
|
|
737
937
|
[key: string]: pulumi.Input<string>;
|
|
738
938
|
}>;
|
|
@@ -740,6 +940,9 @@ export interface ServiceTaskSpecContainerSpecMountVolumeOptions {
|
|
|
740
940
|
* User-defined key/value metadata
|
|
741
941
|
*/
|
|
742
942
|
labels?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecMountVolumeOptionsLabel>[]>;
|
|
943
|
+
/**
|
|
944
|
+
* Populate volume with data from the target
|
|
945
|
+
*/
|
|
743
946
|
noCopy?: pulumi.Input<boolean>;
|
|
744
947
|
}
|
|
745
948
|
export interface ServiceTaskSpecContainerSpecMountVolumeOptionsLabel {
|
|
@@ -753,76 +956,187 @@ export interface ServiceTaskSpecContainerSpecMountVolumeOptionsLabel {
|
|
|
753
956
|
value: pulumi.Input<string>;
|
|
754
957
|
}
|
|
755
958
|
export interface ServiceTaskSpecContainerSpecPrivileges {
|
|
959
|
+
/**
|
|
960
|
+
* CredentialSpec for managed service account (Windows only)
|
|
961
|
+
*/
|
|
756
962
|
credentialSpec?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecPrivilegesCredentialSpec>;
|
|
963
|
+
/**
|
|
964
|
+
* SELinux labels of the container
|
|
965
|
+
*/
|
|
757
966
|
seLinuxContext?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext>;
|
|
758
967
|
}
|
|
759
968
|
export interface ServiceTaskSpecContainerSpecPrivilegesCredentialSpec {
|
|
969
|
+
/**
|
|
970
|
+
* Load credential spec from this file
|
|
971
|
+
*/
|
|
760
972
|
file?: pulumi.Input<string>;
|
|
973
|
+
/**
|
|
974
|
+
* Load credential spec from this value in the Windows registry
|
|
975
|
+
*/
|
|
761
976
|
registry?: pulumi.Input<string>;
|
|
762
977
|
}
|
|
763
978
|
export interface ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext {
|
|
979
|
+
/**
|
|
980
|
+
* Disable SELinux
|
|
981
|
+
*/
|
|
764
982
|
disable?: pulumi.Input<boolean>;
|
|
983
|
+
/**
|
|
984
|
+
* SELinux level label
|
|
985
|
+
*/
|
|
765
986
|
level?: pulumi.Input<string>;
|
|
987
|
+
/**
|
|
988
|
+
* SELinux role label
|
|
989
|
+
*/
|
|
766
990
|
role?: pulumi.Input<string>;
|
|
991
|
+
/**
|
|
992
|
+
* The mount type
|
|
993
|
+
*/
|
|
767
994
|
type?: pulumi.Input<string>;
|
|
995
|
+
/**
|
|
996
|
+
* SELinux user label
|
|
997
|
+
*/
|
|
768
998
|
user?: pulumi.Input<string>;
|
|
769
999
|
}
|
|
770
1000
|
export interface ServiceTaskSpecContainerSpecSecret {
|
|
1001
|
+
/**
|
|
1002
|
+
* Represents the file GID. Defaults to `0`.
|
|
1003
|
+
*/
|
|
771
1004
|
fileGid?: pulumi.Input<string>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Represents represents the FileMode of the file. Defaults to `0o444`.
|
|
1007
|
+
*/
|
|
772
1008
|
fileMode?: pulumi.Input<number>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Represents the final filename in the filesystem
|
|
1011
|
+
*/
|
|
773
1012
|
fileName: pulumi.Input<string>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Represents the file UID. Defaults to `0`.
|
|
1015
|
+
*/
|
|
774
1016
|
fileUid?: pulumi.Input<string>;
|
|
1017
|
+
/**
|
|
1018
|
+
* ID of the specific secret that we're referencing
|
|
1019
|
+
*/
|
|
775
1020
|
secretId: pulumi.Input<string>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Name of the secret that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID
|
|
1023
|
+
*/
|
|
776
1024
|
secretName?: pulumi.Input<string>;
|
|
777
1025
|
}
|
|
778
1026
|
export interface ServiceTaskSpecLogDriver {
|
|
779
1027
|
/**
|
|
780
|
-
*
|
|
1028
|
+
* A random name for the port
|
|
781
1029
|
*/
|
|
782
1030
|
name: pulumi.Input<string>;
|
|
1031
|
+
/**
|
|
1032
|
+
* A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.)
|
|
1033
|
+
*/
|
|
783
1034
|
options?: pulumi.Input<{
|
|
784
1035
|
[key: string]: pulumi.Input<string>;
|
|
785
1036
|
}>;
|
|
786
1037
|
}
|
|
787
1038
|
export interface ServiceTaskSpecNetworksAdvanced {
|
|
1039
|
+
/**
|
|
1040
|
+
* The network aliases of the container in the specific network.
|
|
1041
|
+
*/
|
|
788
1042
|
aliases?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1043
|
+
/**
|
|
1044
|
+
* An array of driver options for the network, e.g. `opts1=value`
|
|
1045
|
+
*/
|
|
789
1046
|
driverOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
790
1047
|
/**
|
|
791
|
-
*
|
|
1048
|
+
* A random name for the port
|
|
792
1049
|
*/
|
|
793
1050
|
name: pulumi.Input<string>;
|
|
794
1051
|
}
|
|
795
1052
|
export interface ServiceTaskSpecPlacement {
|
|
1053
|
+
/**
|
|
1054
|
+
* An array of constraints. e.g.: `node.role==manager`
|
|
1055
|
+
*/
|
|
796
1056
|
constraints?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Maximum number of replicas for per node (default value is `0`, which is unlimited)
|
|
1059
|
+
*/
|
|
797
1060
|
maxReplicas?: pulumi.Input<number>;
|
|
1061
|
+
/**
|
|
1062
|
+
* Platforms stores all the platforms that the service's image can run on
|
|
1063
|
+
*/
|
|
798
1064
|
platforms?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecPlacementPlatform>[]>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence, e.g.: `spread=node.role.manager`
|
|
1067
|
+
*/
|
|
799
1068
|
prefs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
800
1069
|
}
|
|
801
1070
|
export interface ServiceTaskSpecPlacementPlatform {
|
|
1071
|
+
/**
|
|
1072
|
+
* The architecture, e.g. `amd64`
|
|
1073
|
+
*/
|
|
802
1074
|
architecture: pulumi.Input<string>;
|
|
1075
|
+
/**
|
|
1076
|
+
* The operation system, e.g. `linux`
|
|
1077
|
+
*/
|
|
803
1078
|
os: pulumi.Input<string>;
|
|
804
1079
|
}
|
|
805
1080
|
export interface ServiceTaskSpecResources {
|
|
1081
|
+
/**
|
|
1082
|
+
* Describes the resources which can be advertised by a node and requested by a task
|
|
1083
|
+
*/
|
|
806
1084
|
limits?: pulumi.Input<inputs.ServiceTaskSpecResourcesLimits>;
|
|
1085
|
+
/**
|
|
1086
|
+
* An object describing the resources which can be advertised by a node and requested by a task
|
|
1087
|
+
*/
|
|
807
1088
|
reservation?: pulumi.Input<inputs.ServiceTaskSpecResourcesReservation>;
|
|
808
1089
|
}
|
|
809
1090
|
export interface ServiceTaskSpecResourcesLimits {
|
|
1091
|
+
/**
|
|
1092
|
+
* The amounf of memory in bytes the container allocates
|
|
1093
|
+
*/
|
|
810
1094
|
memoryBytes?: pulumi.Input<number>;
|
|
1095
|
+
/**
|
|
1096
|
+
* CPU shares in units of `1/1e9` (or `10^-9`) of the CPU. Should be at least `1000000`
|
|
1097
|
+
*/
|
|
811
1098
|
nanoCpus?: pulumi.Input<number>;
|
|
812
1099
|
}
|
|
813
1100
|
export interface ServiceTaskSpecResourcesReservation {
|
|
1101
|
+
/**
|
|
1102
|
+
* User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, GPU=UUID1)
|
|
1103
|
+
*/
|
|
814
1104
|
genericResources?: pulumi.Input<inputs.ServiceTaskSpecResourcesReservationGenericResources>;
|
|
1105
|
+
/**
|
|
1106
|
+
* The amounf of memory in bytes the container allocates
|
|
1107
|
+
*/
|
|
815
1108
|
memoryBytes?: pulumi.Input<number>;
|
|
1109
|
+
/**
|
|
1110
|
+
* CPU shares in units of `1/1e9` (or `10^-9`) of the CPU. Should be at least `1000000`
|
|
1111
|
+
*/
|
|
816
1112
|
nanoCpus?: pulumi.Input<number>;
|
|
817
1113
|
}
|
|
818
1114
|
export interface ServiceTaskSpecResourcesReservationGenericResources {
|
|
1115
|
+
/**
|
|
1116
|
+
* The Integer resources
|
|
1117
|
+
*/
|
|
819
1118
|
discreteResourcesSpecs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1119
|
+
/**
|
|
1120
|
+
* The String resources
|
|
1121
|
+
*/
|
|
820
1122
|
namedResourcesSpecs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
821
1123
|
}
|
|
822
1124
|
export interface ServiceTaskSpecRestartPolicy {
|
|
1125
|
+
/**
|
|
1126
|
+
* Condition for restart
|
|
1127
|
+
*/
|
|
823
1128
|
condition?: pulumi.Input<string>;
|
|
1129
|
+
/**
|
|
1130
|
+
* The interval to check if the desired state is reached `(ms|s)`. Defaults to `7s`.
|
|
1131
|
+
*/
|
|
824
1132
|
delay?: pulumi.Input<string>;
|
|
1133
|
+
/**
|
|
1134
|
+
* Maximum attempts to restart a given container before giving up (default value is `0`, which is ignored)
|
|
1135
|
+
*/
|
|
825
1136
|
maxAttempts?: pulumi.Input<number>;
|
|
1137
|
+
/**
|
|
1138
|
+
* The time window used to evaluate the restart policy (default value is `0`, which is unbounded) (ms|s|m|h)
|
|
1139
|
+
*/
|
|
826
1140
|
window?: pulumi.Input<string>;
|
|
827
1141
|
}
|
|
828
1142
|
export interface ServiceUpdateConfig {
|
package/types/input.js
CHANGED
|
@@ -2,13 +2,4 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.dockerBuildProvideDefaults = void 0;
|
|
6
|
-
/**
|
|
7
|
-
* dockerBuildProvideDefaults sets the appropriate defaults for DockerBuild
|
|
8
|
-
*/
|
|
9
|
-
function dockerBuildProvideDefaults(val) {
|
|
10
|
-
var _a;
|
|
11
|
-
return Object.assign(Object.assign({}, val), { builderVersion: (_a = (val.builderVersion)) !== null && _a !== void 0 ? _a : "BuilderBuildKit" });
|
|
12
|
-
}
|
|
13
|
-
exports.dockerBuildProvideDefaults = dockerBuildProvideDefaults;
|
|
14
5
|
//# sourceMappingURL=input.js.map
|
package/types/input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
|