@three14/pulumi-argocd 0.1.0
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/LICENSE +202 -0
- package/README.md +80 -0
- package/accountToken.d.ts +127 -0
- package/accountToken.js +82 -0
- package/accountToken.js.map +1 -0
- package/application.d.ts +267 -0
- package/application.js +226 -0
- package/application.js.map +1 -0
- package/applicationSet.d.ts +528 -0
- package/applicationSet.js +523 -0
- package/applicationSet.js.map +1 -0
- package/cluster.d.ts +258 -0
- package/cluster.js +194 -0
- package/cluster.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +95 -0
- package/config/vars.js +127 -0
- package/config/vars.js.map +1 -0
- package/index.d.ts +33 -0
- package/index.js +78 -0
- package/index.js.map +1 -0
- package/package.json +28 -0
- package/project.d.ts +198 -0
- package/project.js +193 -0
- package/project.js.map +1 -0
- package/projectToken.d.ts +150 -0
- package/projectToken.js +91 -0
- package/projectToken.js.map +1 -0
- package/provider.d.ts +174 -0
- package/provider.js +66 -0
- package/provider.js.map +1 -0
- package/repository.d.ts +291 -0
- package/repository.js +135 -0
- package/repository.js.map +1 -0
- package/repositoryCertificate.d.ts +84 -0
- package/repositoryCertificate.js +73 -0
- package/repositoryCertificate.js.map +1 -0
- package/repositoryCredentials.d.ts +207 -0
- package/repositoryCredentials.js +113 -0
- package/repositoryCredentials.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +28046 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +28045 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
package/application.d.ts
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages [applications](https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#applications) within ArgoCD.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as argocd from "@three14/pulumi-argocd";
|
|
12
|
+
*
|
|
13
|
+
* // Kustomize application
|
|
14
|
+
* const kustomize = new argocd.Application("kustomize", {
|
|
15
|
+
* metadata: {
|
|
16
|
+
* name: "kustomize-app",
|
|
17
|
+
* namespace: "argocd",
|
|
18
|
+
* labels: {
|
|
19
|
+
* test: "true",
|
|
20
|
+
* },
|
|
21
|
+
* },
|
|
22
|
+
* cascade: false,
|
|
23
|
+
* wait: true,
|
|
24
|
+
* spec: {
|
|
25
|
+
* project: "myproject",
|
|
26
|
+
* destination: {
|
|
27
|
+
* server: "https://kubernetes.default.svc",
|
|
28
|
+
* namespace: "foo",
|
|
29
|
+
* },
|
|
30
|
+
* sources: [{
|
|
31
|
+
* repoUrl: "https://github.com/kubernetes-sigs/kustomize",
|
|
32
|
+
* path: "examples/helloWorld",
|
|
33
|
+
* targetRevision: "master",
|
|
34
|
+
* kustomize: {
|
|
35
|
+
* namePrefix: "foo-",
|
|
36
|
+
* nameSuffix: "-bar",
|
|
37
|
+
* images: ["hashicorp/terraform:light"],
|
|
38
|
+
* commonLabels: {
|
|
39
|
+
* "this.is.a.common": "la-bel",
|
|
40
|
+
* "another.io/one": "true",
|
|
41
|
+
* },
|
|
42
|
+
* },
|
|
43
|
+
* }],
|
|
44
|
+
* syncPolicy: {
|
|
45
|
+
* automated: {
|
|
46
|
+
* prune: true,
|
|
47
|
+
* selfHeal: true,
|
|
48
|
+
* allowEmpty: true,
|
|
49
|
+
* },
|
|
50
|
+
* syncOptions: ["Validate=false"],
|
|
51
|
+
* retry: {
|
|
52
|
+
* limit: "5",
|
|
53
|
+
* backoff: {
|
|
54
|
+
* duration: "30s",
|
|
55
|
+
* maxDuration: "2m",
|
|
56
|
+
* factor: "2",
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* ignoreDifferences: [
|
|
61
|
+
* {
|
|
62
|
+
* group: "apps",
|
|
63
|
+
* kind: "Deployment",
|
|
64
|
+
* jsonPointers: ["/spec/replicas"],
|
|
65
|
+
* },
|
|
66
|
+
* {
|
|
67
|
+
* group: "apps",
|
|
68
|
+
* kind: "StatefulSet",
|
|
69
|
+
* name: "someStatefulSet",
|
|
70
|
+
* jsonPointers: [
|
|
71
|
+
* "/spec/replicas",
|
|
72
|
+
* "/spec/template/spec/metadata/labels/bar",
|
|
73
|
+
* ],
|
|
74
|
+
* jqPathExpressions: [
|
|
75
|
+
* ".spec.replicas",
|
|
76
|
+
* ".spec.template.spec.metadata.labels.bar",
|
|
77
|
+
* ],
|
|
78
|
+
* },
|
|
79
|
+
* ],
|
|
80
|
+
* },
|
|
81
|
+
* });
|
|
82
|
+
* // Helm application
|
|
83
|
+
* const helm = new argocd.Application("helm", {
|
|
84
|
+
* metadata: {
|
|
85
|
+
* name: "helm-app",
|
|
86
|
+
* namespace: "argocd",
|
|
87
|
+
* labels: {
|
|
88
|
+
* test: "true",
|
|
89
|
+
* },
|
|
90
|
+
* },
|
|
91
|
+
* spec: {
|
|
92
|
+
* destination: {
|
|
93
|
+
* server: "https://kubernetes.default.svc",
|
|
94
|
+
* namespace: "default",
|
|
95
|
+
* },
|
|
96
|
+
* sources: [{
|
|
97
|
+
* repoUrl: "https://some.chart.repo.io",
|
|
98
|
+
* chart: "mychart",
|
|
99
|
+
* targetRevision: "1.2.3",
|
|
100
|
+
* helm: {
|
|
101
|
+
* releaseName: "testing",
|
|
102
|
+
* parameters: [
|
|
103
|
+
* {
|
|
104
|
+
* name: "image.tag",
|
|
105
|
+
* value: "1.2.3",
|
|
106
|
+
* },
|
|
107
|
+
* {
|
|
108
|
+
* name: "someotherparameter",
|
|
109
|
+
* value: "true",
|
|
110
|
+
* },
|
|
111
|
+
* ],
|
|
112
|
+
* valueFiles: ["values-test.yml"],
|
|
113
|
+
* values: JSON.stringify({
|
|
114
|
+
* someparameter: {
|
|
115
|
+
* enabled: true,
|
|
116
|
+
* someArray: [
|
|
117
|
+
* "foo",
|
|
118
|
+
* "bar",
|
|
119
|
+
* ],
|
|
120
|
+
* },
|
|
121
|
+
* }),
|
|
122
|
+
* },
|
|
123
|
+
* }],
|
|
124
|
+
* },
|
|
125
|
+
* });
|
|
126
|
+
* // Multiple Application Sources with Helm value files from external Git repository
|
|
127
|
+
* const multipleSources = new argocd.Application("multiple_sources", {
|
|
128
|
+
* metadata: {
|
|
129
|
+
* name: "helm-app-with-external-values",
|
|
130
|
+
* namespace: "argocd",
|
|
131
|
+
* },
|
|
132
|
+
* spec: {
|
|
133
|
+
* project: "default",
|
|
134
|
+
* sources: [
|
|
135
|
+
* {
|
|
136
|
+
* repoUrl: "https://charts.helm.sh/stable",
|
|
137
|
+
* chart: "wordpress",
|
|
138
|
+
* targetRevision: "9.0.3",
|
|
139
|
+
* helm: {
|
|
140
|
+
* valueFiles: ["$values/helm-dependency/values.yaml"],
|
|
141
|
+
* },
|
|
142
|
+
* },
|
|
143
|
+
* {
|
|
144
|
+
* repoUrl: "https://github.com/argoproj/argocd-example-apps.git",
|
|
145
|
+
* targetRevision: "HEAD",
|
|
146
|
+
* ref: "values",
|
|
147
|
+
* },
|
|
148
|
+
* ],
|
|
149
|
+
* destination: {
|
|
150
|
+
* server: "https://kubernetes.default.svc",
|
|
151
|
+
* namespace: "default",
|
|
152
|
+
* },
|
|
153
|
+
* },
|
|
154
|
+
* });
|
|
155
|
+
* ```
|
|
156
|
+
*
|
|
157
|
+
* ## Import
|
|
158
|
+
*
|
|
159
|
+
* ArgoCD applications can be imported using an id consisting of `{name}:{namespace}`. E.g.
|
|
160
|
+
*
|
|
161
|
+
* ```sh
|
|
162
|
+
* $ pulumi import argocd:index/application:Application myapp myapp:argocd
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
export declare class Application extends pulumi.CustomResource {
|
|
166
|
+
/**
|
|
167
|
+
* Get an existing Application resource's state with the given name, ID, and optional extra
|
|
168
|
+
* properties used to qualify the lookup.
|
|
169
|
+
*
|
|
170
|
+
* @param name The _unique_ name of the resulting resource.
|
|
171
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
172
|
+
* @param state Any extra arguments used during the lookup.
|
|
173
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
174
|
+
*/
|
|
175
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApplicationState, opts?: pulumi.CustomResourceOptions): Application;
|
|
176
|
+
/**
|
|
177
|
+
* Returns true if the given object is an instance of Application. This is designed to work even
|
|
178
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
179
|
+
*/
|
|
180
|
+
static isInstance(obj: any): obj is Application;
|
|
181
|
+
/**
|
|
182
|
+
* Whether to applying cascading deletion when application is removed.
|
|
183
|
+
*/
|
|
184
|
+
readonly cascade: pulumi.Output<boolean | undefined>;
|
|
185
|
+
/**
|
|
186
|
+
* Standard Kubernetes object metadata. For more info see the [Kubernetes reference](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata).
|
|
187
|
+
*/
|
|
188
|
+
readonly metadata: pulumi.Output<outputs.ApplicationMetadata>;
|
|
189
|
+
/**
|
|
190
|
+
* The application specification.
|
|
191
|
+
*/
|
|
192
|
+
readonly spec: pulumi.Output<outputs.ApplicationSpec>;
|
|
193
|
+
/**
|
|
194
|
+
* Status information for the application. **Note**: this is not guaranteed to be up to date immediately after creating/updating an application unless `wait=true`.
|
|
195
|
+
*/
|
|
196
|
+
readonly statuses: pulumi.Output<outputs.ApplicationStatus[]>;
|
|
197
|
+
/**
|
|
198
|
+
* Whether to validate the application spec before creating or updating the application.
|
|
199
|
+
*/
|
|
200
|
+
readonly validate: pulumi.Output<boolean | undefined>;
|
|
201
|
+
/**
|
|
202
|
+
* Upon application creation or update, wait for application health/sync status to be healthy/Synced, upon application deletion, wait for application to be removed, when set to true. Wait timeouts are controlled by the provider Create, Update and Delete resource timeouts (all default to 5 minutes). **Note**: if ArgoCD decides not to sync an application (e.g. because the project to which the application belongs has a `syncWindow` applied) then you will experience an expected timeout event if `wait = true`.
|
|
203
|
+
*/
|
|
204
|
+
readonly wait: pulumi.Output<boolean | undefined>;
|
|
205
|
+
/**
|
|
206
|
+
* Create a Application resource with the given unique name, arguments, and options.
|
|
207
|
+
*
|
|
208
|
+
* @param name The _unique_ name of the resource.
|
|
209
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
210
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
211
|
+
*/
|
|
212
|
+
constructor(name: string, args: ApplicationArgs, opts?: pulumi.CustomResourceOptions);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Input properties used for looking up and filtering Application resources.
|
|
216
|
+
*/
|
|
217
|
+
export interface ApplicationState {
|
|
218
|
+
/**
|
|
219
|
+
* Whether to applying cascading deletion when application is removed.
|
|
220
|
+
*/
|
|
221
|
+
cascade?: pulumi.Input<boolean>;
|
|
222
|
+
/**
|
|
223
|
+
* Standard Kubernetes object metadata. For more info see the [Kubernetes reference](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata).
|
|
224
|
+
*/
|
|
225
|
+
metadata?: pulumi.Input<inputs.ApplicationMetadata>;
|
|
226
|
+
/**
|
|
227
|
+
* The application specification.
|
|
228
|
+
*/
|
|
229
|
+
spec?: pulumi.Input<inputs.ApplicationSpec>;
|
|
230
|
+
/**
|
|
231
|
+
* Status information for the application. **Note**: this is not guaranteed to be up to date immediately after creating/updating an application unless `wait=true`.
|
|
232
|
+
*/
|
|
233
|
+
statuses?: pulumi.Input<pulumi.Input<inputs.ApplicationStatus>[]>;
|
|
234
|
+
/**
|
|
235
|
+
* Whether to validate the application spec before creating or updating the application.
|
|
236
|
+
*/
|
|
237
|
+
validate?: pulumi.Input<boolean>;
|
|
238
|
+
/**
|
|
239
|
+
* Upon application creation or update, wait for application health/sync status to be healthy/Synced, upon application deletion, wait for application to be removed, when set to true. Wait timeouts are controlled by the provider Create, Update and Delete resource timeouts (all default to 5 minutes). **Note**: if ArgoCD decides not to sync an application (e.g. because the project to which the application belongs has a `syncWindow` applied) then you will experience an expected timeout event if `wait = true`.
|
|
240
|
+
*/
|
|
241
|
+
wait?: pulumi.Input<boolean>;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* The set of arguments for constructing a Application resource.
|
|
245
|
+
*/
|
|
246
|
+
export interface ApplicationArgs {
|
|
247
|
+
/**
|
|
248
|
+
* Whether to applying cascading deletion when application is removed.
|
|
249
|
+
*/
|
|
250
|
+
cascade?: pulumi.Input<boolean>;
|
|
251
|
+
/**
|
|
252
|
+
* Standard Kubernetes object metadata. For more info see the [Kubernetes reference](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata).
|
|
253
|
+
*/
|
|
254
|
+
metadata: pulumi.Input<inputs.ApplicationMetadata>;
|
|
255
|
+
/**
|
|
256
|
+
* The application specification.
|
|
257
|
+
*/
|
|
258
|
+
spec: pulumi.Input<inputs.ApplicationSpec>;
|
|
259
|
+
/**
|
|
260
|
+
* Whether to validate the application spec before creating or updating the application.
|
|
261
|
+
*/
|
|
262
|
+
validate?: pulumi.Input<boolean>;
|
|
263
|
+
/**
|
|
264
|
+
* Upon application creation or update, wait for application health/sync status to be healthy/Synced, upon application deletion, wait for application to be removed, when set to true. Wait timeouts are controlled by the provider Create, Update and Delete resource timeouts (all default to 5 minutes). **Note**: if ArgoCD decides not to sync an application (e.g. because the project to which the application belongs has a `syncWindow` applied) then you will experience an expected timeout event if `wait = true`.
|
|
265
|
+
*/
|
|
266
|
+
wait?: pulumi.Input<boolean>;
|
|
267
|
+
}
|
package/application.js
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Application = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages [applications](https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#applications) within ArgoCD.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as argocd from "@three14/pulumi-argocd";
|
|
16
|
+
*
|
|
17
|
+
* // Kustomize application
|
|
18
|
+
* const kustomize = new argocd.Application("kustomize", {
|
|
19
|
+
* metadata: {
|
|
20
|
+
* name: "kustomize-app",
|
|
21
|
+
* namespace: "argocd",
|
|
22
|
+
* labels: {
|
|
23
|
+
* test: "true",
|
|
24
|
+
* },
|
|
25
|
+
* },
|
|
26
|
+
* cascade: false,
|
|
27
|
+
* wait: true,
|
|
28
|
+
* spec: {
|
|
29
|
+
* project: "myproject",
|
|
30
|
+
* destination: {
|
|
31
|
+
* server: "https://kubernetes.default.svc",
|
|
32
|
+
* namespace: "foo",
|
|
33
|
+
* },
|
|
34
|
+
* sources: [{
|
|
35
|
+
* repoUrl: "https://github.com/kubernetes-sigs/kustomize",
|
|
36
|
+
* path: "examples/helloWorld",
|
|
37
|
+
* targetRevision: "master",
|
|
38
|
+
* kustomize: {
|
|
39
|
+
* namePrefix: "foo-",
|
|
40
|
+
* nameSuffix: "-bar",
|
|
41
|
+
* images: ["hashicorp/terraform:light"],
|
|
42
|
+
* commonLabels: {
|
|
43
|
+
* "this.is.a.common": "la-bel",
|
|
44
|
+
* "another.io/one": "true",
|
|
45
|
+
* },
|
|
46
|
+
* },
|
|
47
|
+
* }],
|
|
48
|
+
* syncPolicy: {
|
|
49
|
+
* automated: {
|
|
50
|
+
* prune: true,
|
|
51
|
+
* selfHeal: true,
|
|
52
|
+
* allowEmpty: true,
|
|
53
|
+
* },
|
|
54
|
+
* syncOptions: ["Validate=false"],
|
|
55
|
+
* retry: {
|
|
56
|
+
* limit: "5",
|
|
57
|
+
* backoff: {
|
|
58
|
+
* duration: "30s",
|
|
59
|
+
* maxDuration: "2m",
|
|
60
|
+
* factor: "2",
|
|
61
|
+
* },
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* ignoreDifferences: [
|
|
65
|
+
* {
|
|
66
|
+
* group: "apps",
|
|
67
|
+
* kind: "Deployment",
|
|
68
|
+
* jsonPointers: ["/spec/replicas"],
|
|
69
|
+
* },
|
|
70
|
+
* {
|
|
71
|
+
* group: "apps",
|
|
72
|
+
* kind: "StatefulSet",
|
|
73
|
+
* name: "someStatefulSet",
|
|
74
|
+
* jsonPointers: [
|
|
75
|
+
* "/spec/replicas",
|
|
76
|
+
* "/spec/template/spec/metadata/labels/bar",
|
|
77
|
+
* ],
|
|
78
|
+
* jqPathExpressions: [
|
|
79
|
+
* ".spec.replicas",
|
|
80
|
+
* ".spec.template.spec.metadata.labels.bar",
|
|
81
|
+
* ],
|
|
82
|
+
* },
|
|
83
|
+
* ],
|
|
84
|
+
* },
|
|
85
|
+
* });
|
|
86
|
+
* // Helm application
|
|
87
|
+
* const helm = new argocd.Application("helm", {
|
|
88
|
+
* metadata: {
|
|
89
|
+
* name: "helm-app",
|
|
90
|
+
* namespace: "argocd",
|
|
91
|
+
* labels: {
|
|
92
|
+
* test: "true",
|
|
93
|
+
* },
|
|
94
|
+
* },
|
|
95
|
+
* spec: {
|
|
96
|
+
* destination: {
|
|
97
|
+
* server: "https://kubernetes.default.svc",
|
|
98
|
+
* namespace: "default",
|
|
99
|
+
* },
|
|
100
|
+
* sources: [{
|
|
101
|
+
* repoUrl: "https://some.chart.repo.io",
|
|
102
|
+
* chart: "mychart",
|
|
103
|
+
* targetRevision: "1.2.3",
|
|
104
|
+
* helm: {
|
|
105
|
+
* releaseName: "testing",
|
|
106
|
+
* parameters: [
|
|
107
|
+
* {
|
|
108
|
+
* name: "image.tag",
|
|
109
|
+
* value: "1.2.3",
|
|
110
|
+
* },
|
|
111
|
+
* {
|
|
112
|
+
* name: "someotherparameter",
|
|
113
|
+
* value: "true",
|
|
114
|
+
* },
|
|
115
|
+
* ],
|
|
116
|
+
* valueFiles: ["values-test.yml"],
|
|
117
|
+
* values: JSON.stringify({
|
|
118
|
+
* someparameter: {
|
|
119
|
+
* enabled: true,
|
|
120
|
+
* someArray: [
|
|
121
|
+
* "foo",
|
|
122
|
+
* "bar",
|
|
123
|
+
* ],
|
|
124
|
+
* },
|
|
125
|
+
* }),
|
|
126
|
+
* },
|
|
127
|
+
* }],
|
|
128
|
+
* },
|
|
129
|
+
* });
|
|
130
|
+
* // Multiple Application Sources with Helm value files from external Git repository
|
|
131
|
+
* const multipleSources = new argocd.Application("multiple_sources", {
|
|
132
|
+
* metadata: {
|
|
133
|
+
* name: "helm-app-with-external-values",
|
|
134
|
+
* namespace: "argocd",
|
|
135
|
+
* },
|
|
136
|
+
* spec: {
|
|
137
|
+
* project: "default",
|
|
138
|
+
* sources: [
|
|
139
|
+
* {
|
|
140
|
+
* repoUrl: "https://charts.helm.sh/stable",
|
|
141
|
+
* chart: "wordpress",
|
|
142
|
+
* targetRevision: "9.0.3",
|
|
143
|
+
* helm: {
|
|
144
|
+
* valueFiles: ["$values/helm-dependency/values.yaml"],
|
|
145
|
+
* },
|
|
146
|
+
* },
|
|
147
|
+
* {
|
|
148
|
+
* repoUrl: "https://github.com/argoproj/argocd-example-apps.git",
|
|
149
|
+
* targetRevision: "HEAD",
|
|
150
|
+
* ref: "values",
|
|
151
|
+
* },
|
|
152
|
+
* ],
|
|
153
|
+
* destination: {
|
|
154
|
+
* server: "https://kubernetes.default.svc",
|
|
155
|
+
* namespace: "default",
|
|
156
|
+
* },
|
|
157
|
+
* },
|
|
158
|
+
* });
|
|
159
|
+
* ```
|
|
160
|
+
*
|
|
161
|
+
* ## Import
|
|
162
|
+
*
|
|
163
|
+
* ArgoCD applications can be imported using an id consisting of `{name}:{namespace}`. E.g.
|
|
164
|
+
*
|
|
165
|
+
* ```sh
|
|
166
|
+
* $ pulumi import argocd:index/application:Application myapp myapp:argocd
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
class Application extends pulumi.CustomResource {
|
|
170
|
+
/**
|
|
171
|
+
* Get an existing Application resource's state with the given name, ID, and optional extra
|
|
172
|
+
* properties used to qualify the lookup.
|
|
173
|
+
*
|
|
174
|
+
* @param name The _unique_ name of the resulting resource.
|
|
175
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
176
|
+
* @param state Any extra arguments used during the lookup.
|
|
177
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
178
|
+
*/
|
|
179
|
+
static get(name, id, state, opts) {
|
|
180
|
+
return new Application(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Returns true if the given object is an instance of Application. This is designed to work even
|
|
184
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
185
|
+
*/
|
|
186
|
+
static isInstance(obj) {
|
|
187
|
+
if (obj === undefined || obj === null) {
|
|
188
|
+
return false;
|
|
189
|
+
}
|
|
190
|
+
return obj['__pulumiType'] === Application.__pulumiType;
|
|
191
|
+
}
|
|
192
|
+
constructor(name, argsOrState, opts) {
|
|
193
|
+
let resourceInputs = {};
|
|
194
|
+
opts = opts || {};
|
|
195
|
+
if (opts.id) {
|
|
196
|
+
const state = argsOrState;
|
|
197
|
+
resourceInputs["cascade"] = state ? state.cascade : undefined;
|
|
198
|
+
resourceInputs["metadata"] = state ? state.metadata : undefined;
|
|
199
|
+
resourceInputs["spec"] = state ? state.spec : undefined;
|
|
200
|
+
resourceInputs["statuses"] = state ? state.statuses : undefined;
|
|
201
|
+
resourceInputs["validate"] = state ? state.validate : undefined;
|
|
202
|
+
resourceInputs["wait"] = state ? state.wait : undefined;
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
const args = argsOrState;
|
|
206
|
+
if ((!args || args.metadata === undefined) && !opts.urn) {
|
|
207
|
+
throw new Error("Missing required property 'metadata'");
|
|
208
|
+
}
|
|
209
|
+
if ((!args || args.spec === undefined) && !opts.urn) {
|
|
210
|
+
throw new Error("Missing required property 'spec'");
|
|
211
|
+
}
|
|
212
|
+
resourceInputs["cascade"] = args ? args.cascade : undefined;
|
|
213
|
+
resourceInputs["metadata"] = args ? args.metadata : undefined;
|
|
214
|
+
resourceInputs["spec"] = args ? args.spec : undefined;
|
|
215
|
+
resourceInputs["validate"] = args ? args.validate : undefined;
|
|
216
|
+
resourceInputs["wait"] = args ? args.wait : undefined;
|
|
217
|
+
resourceInputs["statuses"] = undefined /*out*/;
|
|
218
|
+
}
|
|
219
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
220
|
+
super(Application.__pulumiType, name, resourceInputs, opts);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
exports.Application = Application;
|
|
224
|
+
/** @internal */
|
|
225
|
+
Application.__pulumiType = 'argocd:index/application:Application';
|
|
226
|
+
//# sourceMappingURL=application.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../application.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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