@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.
Files changed (54) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +80 -0
  3. package/accountToken.d.ts +127 -0
  4. package/accountToken.js +82 -0
  5. package/accountToken.js.map +1 -0
  6. package/application.d.ts +267 -0
  7. package/application.js +226 -0
  8. package/application.js.map +1 -0
  9. package/applicationSet.d.ts +528 -0
  10. package/applicationSet.js +523 -0
  11. package/applicationSet.js.map +1 -0
  12. package/cluster.d.ts +258 -0
  13. package/cluster.js +194 -0
  14. package/cluster.js.map +1 -0
  15. package/config/index.d.ts +1 -0
  16. package/config/index.js +21 -0
  17. package/config/index.js.map +1 -0
  18. package/config/vars.d.ts +95 -0
  19. package/config/vars.js +127 -0
  20. package/config/vars.js.map +1 -0
  21. package/index.d.ts +33 -0
  22. package/index.js +78 -0
  23. package/index.js.map +1 -0
  24. package/package.json +28 -0
  25. package/project.d.ts +198 -0
  26. package/project.js +193 -0
  27. package/project.js.map +1 -0
  28. package/projectToken.d.ts +150 -0
  29. package/projectToken.js +91 -0
  30. package/projectToken.js.map +1 -0
  31. package/provider.d.ts +174 -0
  32. package/provider.js +66 -0
  33. package/provider.js.map +1 -0
  34. package/repository.d.ts +291 -0
  35. package/repository.js +135 -0
  36. package/repository.js.map +1 -0
  37. package/repositoryCertificate.d.ts +84 -0
  38. package/repositoryCertificate.js +73 -0
  39. package/repositoryCertificate.js.map +1 -0
  40. package/repositoryCredentials.d.ts +207 -0
  41. package/repositoryCredentials.js +113 -0
  42. package/repositoryCredentials.js.map +1 -0
  43. package/types/index.d.ts +3 -0
  44. package/types/index.js +11 -0
  45. package/types/index.js.map +1 -0
  46. package/types/input.d.ts +28046 -0
  47. package/types/input.js +5 -0
  48. package/types/input.js.map +1 -0
  49. package/types/output.d.ts +28045 -0
  50. package/types/output.js +5 -0
  51. package/types/output.js.map +1 -0
  52. package/utilities.d.ts +8 -0
  53. package/utilities.js +101 -0
  54. package/utilities.js.map +1 -0
@@ -0,0 +1,291 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages [repositories](https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#repositories) within ArgoCD.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as argocd from "@three14/pulumi-argocd";
10
+ *
11
+ * // Public Helm repository
12
+ * const publicNginxHelm = new argocd.Repository("public_nginx_helm", {
13
+ * repo: "https://helm.nginx.com/stable",
14
+ * name: "nginx-stable",
15
+ * type: "helm",
16
+ * });
17
+ * // Public Git repository
18
+ * const publicGit = new argocd.Repository("public_git", {repo: "git@github.com:user/somerepo.git"});
19
+ * // Private Git repository
20
+ * const _private = new argocd.Repository("private", {
21
+ * repo: "git@private-git-repository.local:somerepo.git",
22
+ * username: "git",
23
+ * sshPrivateKey: `-----BEGIN OPENSSH PRIVATE KEY-----
24
+ * foo
25
+ * bar
26
+ * -----END OPENSSH PRIVATE KEY-----`,
27
+ * insecure: true,
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * Repositories can be imported using the repository URL.
34
+ *
35
+ * Note: as the ArgoCD API does not return any sensitive information, a
36
+ *
37
+ * subsequent `pulumi up` should be executed to make the `password`,
38
+ *
39
+ * `ssh_private_key` and `tls_client_cert_key` attributes converge to their
40
+ *
41
+ * expected values defined within the plan.
42
+ *
43
+ * Example:
44
+ *
45
+ * ```sh
46
+ * $ pulumi import argocd:index/repository:Repository myrepo git@private-git-repository.local:somerepo.git
47
+ * ```
48
+ */
49
+ export declare class Repository extends pulumi.CustomResource {
50
+ /**
51
+ * Get an existing Repository resource's state with the given name, ID, and optional extra
52
+ * properties used to qualify the lookup.
53
+ *
54
+ * @param name The _unique_ name of the resulting resource.
55
+ * @param id The _unique_ provider ID of the resource to lookup.
56
+ * @param state Any extra arguments used during the lookup.
57
+ * @param opts Optional settings to control the behavior of the CustomResource.
58
+ */
59
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RepositoryState, opts?: pulumi.CustomResourceOptions): Repository;
60
+ /**
61
+ * Returns true if the given object is an instance of Repository. This is designed to work even
62
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
63
+ */
64
+ static isInstance(obj: any): obj is Repository;
65
+ /**
66
+ * Contains information about the current state of connection to the repository server.
67
+ */
68
+ readonly connectionStateStatus: pulumi.Output<string>;
69
+ /**
70
+ * Whether `git-lfs` support should be enabled for this repository.
71
+ */
72
+ readonly enableLfs: pulumi.Output<boolean | undefined>;
73
+ /**
74
+ * Whether `helm-oci` support should be enabled for this repository.
75
+ */
76
+ readonly enableOci: pulumi.Output<boolean | undefined>;
77
+ /**
78
+ * GitHub API URL for GitHub app authentication.
79
+ */
80
+ readonly githubappEnterpriseBaseUrl: pulumi.Output<string | undefined>;
81
+ /**
82
+ * ID of the GitHub app used to access the repo.
83
+ */
84
+ readonly githubappId: pulumi.Output<string | undefined>;
85
+ /**
86
+ * The installation ID of the GitHub App used to access the repo.
87
+ */
88
+ readonly githubappInstallationId: pulumi.Output<string | undefined>;
89
+ /**
90
+ * Private key data (PEM) for authentication via GitHub app.
91
+ */
92
+ readonly githubappPrivateKey: pulumi.Output<string | undefined>;
93
+ /**
94
+ * Whether credentials were inherited from a credential set.
95
+ */
96
+ readonly inheritedCreds: pulumi.Output<boolean>;
97
+ /**
98
+ * Whether the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
99
+ */
100
+ readonly insecure: pulumi.Output<boolean | undefined>;
101
+ /**
102
+ * Name to be used for this repo. Only used with Helm repos.
103
+ */
104
+ readonly name: pulumi.Output<string>;
105
+ /**
106
+ * Password or PAT used for authenticating at the remote repository.
107
+ */
108
+ readonly password: pulumi.Output<string | undefined>;
109
+ /**
110
+ * The project name, in case the repository is project scoped.
111
+ */
112
+ readonly project: pulumi.Output<string | undefined>;
113
+ /**
114
+ * URL of the repository.
115
+ */
116
+ readonly repo: pulumi.Output<string>;
117
+ /**
118
+ * PEM data for authenticating at the repo server. Only used with Git repos.
119
+ */
120
+ readonly sshPrivateKey: pulumi.Output<string | undefined>;
121
+ /**
122
+ * TLS client certificate in PEM format for authenticating at the repo server.
123
+ */
124
+ readonly tlsClientCertData: pulumi.Output<string | undefined>;
125
+ /**
126
+ * TLS client certificate private key in PEM format for authenticating at the repo server.
127
+ */
128
+ readonly tlsClientCertKey: pulumi.Output<string | undefined>;
129
+ /**
130
+ * Type of the repo. Can be either `git` or `helm`. `git` is assumed if empty or absent.
131
+ */
132
+ readonly type: pulumi.Output<string | undefined>;
133
+ /**
134
+ * Username used for authenticating at the remote repository.
135
+ */
136
+ readonly username: pulumi.Output<string | undefined>;
137
+ /**
138
+ * Create a Repository resource with the given unique name, arguments, and options.
139
+ *
140
+ * @param name The _unique_ name of the resource.
141
+ * @param args The arguments to use to populate this resource's properties.
142
+ * @param opts A bag of options that control this resource's behavior.
143
+ */
144
+ constructor(name: string, args: RepositoryArgs, opts?: pulumi.CustomResourceOptions);
145
+ }
146
+ /**
147
+ * Input properties used for looking up and filtering Repository resources.
148
+ */
149
+ export interface RepositoryState {
150
+ /**
151
+ * Contains information about the current state of connection to the repository server.
152
+ */
153
+ connectionStateStatus?: pulumi.Input<string>;
154
+ /**
155
+ * Whether `git-lfs` support should be enabled for this repository.
156
+ */
157
+ enableLfs?: pulumi.Input<boolean>;
158
+ /**
159
+ * Whether `helm-oci` support should be enabled for this repository.
160
+ */
161
+ enableOci?: pulumi.Input<boolean>;
162
+ /**
163
+ * GitHub API URL for GitHub app authentication.
164
+ */
165
+ githubappEnterpriseBaseUrl?: pulumi.Input<string>;
166
+ /**
167
+ * ID of the GitHub app used to access the repo.
168
+ */
169
+ githubappId?: pulumi.Input<string>;
170
+ /**
171
+ * The installation ID of the GitHub App used to access the repo.
172
+ */
173
+ githubappInstallationId?: pulumi.Input<string>;
174
+ /**
175
+ * Private key data (PEM) for authentication via GitHub app.
176
+ */
177
+ githubappPrivateKey?: pulumi.Input<string>;
178
+ /**
179
+ * Whether credentials were inherited from a credential set.
180
+ */
181
+ inheritedCreds?: pulumi.Input<boolean>;
182
+ /**
183
+ * Whether the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
184
+ */
185
+ insecure?: pulumi.Input<boolean>;
186
+ /**
187
+ * Name to be used for this repo. Only used with Helm repos.
188
+ */
189
+ name?: pulumi.Input<string>;
190
+ /**
191
+ * Password or PAT used for authenticating at the remote repository.
192
+ */
193
+ password?: pulumi.Input<string>;
194
+ /**
195
+ * The project name, in case the repository is project scoped.
196
+ */
197
+ project?: pulumi.Input<string>;
198
+ /**
199
+ * URL of the repository.
200
+ */
201
+ repo?: pulumi.Input<string>;
202
+ /**
203
+ * PEM data for authenticating at the repo server. Only used with Git repos.
204
+ */
205
+ sshPrivateKey?: pulumi.Input<string>;
206
+ /**
207
+ * TLS client certificate in PEM format for authenticating at the repo server.
208
+ */
209
+ tlsClientCertData?: pulumi.Input<string>;
210
+ /**
211
+ * TLS client certificate private key in PEM format for authenticating at the repo server.
212
+ */
213
+ tlsClientCertKey?: pulumi.Input<string>;
214
+ /**
215
+ * Type of the repo. Can be either `git` or `helm`. `git` is assumed if empty or absent.
216
+ */
217
+ type?: pulumi.Input<string>;
218
+ /**
219
+ * Username used for authenticating at the remote repository.
220
+ */
221
+ username?: pulumi.Input<string>;
222
+ }
223
+ /**
224
+ * The set of arguments for constructing a Repository resource.
225
+ */
226
+ export interface RepositoryArgs {
227
+ /**
228
+ * Whether `git-lfs` support should be enabled for this repository.
229
+ */
230
+ enableLfs?: pulumi.Input<boolean>;
231
+ /**
232
+ * Whether `helm-oci` support should be enabled for this repository.
233
+ */
234
+ enableOci?: pulumi.Input<boolean>;
235
+ /**
236
+ * GitHub API URL for GitHub app authentication.
237
+ */
238
+ githubappEnterpriseBaseUrl?: pulumi.Input<string>;
239
+ /**
240
+ * ID of the GitHub app used to access the repo.
241
+ */
242
+ githubappId?: pulumi.Input<string>;
243
+ /**
244
+ * The installation ID of the GitHub App used to access the repo.
245
+ */
246
+ githubappInstallationId?: pulumi.Input<string>;
247
+ /**
248
+ * Private key data (PEM) for authentication via GitHub app.
249
+ */
250
+ githubappPrivateKey?: pulumi.Input<string>;
251
+ /**
252
+ * Whether the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
253
+ */
254
+ insecure?: pulumi.Input<boolean>;
255
+ /**
256
+ * Name to be used for this repo. Only used with Helm repos.
257
+ */
258
+ name?: pulumi.Input<string>;
259
+ /**
260
+ * Password or PAT used for authenticating at the remote repository.
261
+ */
262
+ password?: pulumi.Input<string>;
263
+ /**
264
+ * The project name, in case the repository is project scoped.
265
+ */
266
+ project?: pulumi.Input<string>;
267
+ /**
268
+ * URL of the repository.
269
+ */
270
+ repo: pulumi.Input<string>;
271
+ /**
272
+ * PEM data for authenticating at the repo server. Only used with Git repos.
273
+ */
274
+ sshPrivateKey?: pulumi.Input<string>;
275
+ /**
276
+ * TLS client certificate in PEM format for authenticating at the repo server.
277
+ */
278
+ tlsClientCertData?: pulumi.Input<string>;
279
+ /**
280
+ * TLS client certificate private key in PEM format for authenticating at the repo server.
281
+ */
282
+ tlsClientCertKey?: pulumi.Input<string>;
283
+ /**
284
+ * Type of the repo. Can be either `git` or `helm`. `git` is assumed if empty or absent.
285
+ */
286
+ type?: pulumi.Input<string>;
287
+ /**
288
+ * Username used for authenticating at the remote repository.
289
+ */
290
+ username?: pulumi.Input<string>;
291
+ }
package/repository.js ADDED
@@ -0,0 +1,135 @@
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.Repository = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages [repositories](https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#repositories) 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
+ * // Public Helm repository
18
+ * const publicNginxHelm = new argocd.Repository("public_nginx_helm", {
19
+ * repo: "https://helm.nginx.com/stable",
20
+ * name: "nginx-stable",
21
+ * type: "helm",
22
+ * });
23
+ * // Public Git repository
24
+ * const publicGit = new argocd.Repository("public_git", {repo: "git@github.com:user/somerepo.git"});
25
+ * // Private Git repository
26
+ * const _private = new argocd.Repository("private", {
27
+ * repo: "git@private-git-repository.local:somerepo.git",
28
+ * username: "git",
29
+ * sshPrivateKey: `-----BEGIN OPENSSH PRIVATE KEY-----
30
+ * foo
31
+ * bar
32
+ * -----END OPENSSH PRIVATE KEY-----`,
33
+ * insecure: true,
34
+ * });
35
+ * ```
36
+ *
37
+ * ## Import
38
+ *
39
+ * Repositories can be imported using the repository URL.
40
+ *
41
+ * Note: as the ArgoCD API does not return any sensitive information, a
42
+ *
43
+ * subsequent `pulumi up` should be executed to make the `password`,
44
+ *
45
+ * `ssh_private_key` and `tls_client_cert_key` attributes converge to their
46
+ *
47
+ * expected values defined within the plan.
48
+ *
49
+ * Example:
50
+ *
51
+ * ```sh
52
+ * $ pulumi import argocd:index/repository:Repository myrepo git@private-git-repository.local:somerepo.git
53
+ * ```
54
+ */
55
+ class Repository extends pulumi.CustomResource {
56
+ /**
57
+ * Get an existing Repository resource's state with the given name, ID, and optional extra
58
+ * properties used to qualify the lookup.
59
+ *
60
+ * @param name The _unique_ name of the resulting resource.
61
+ * @param id The _unique_ provider ID of the resource to lookup.
62
+ * @param state Any extra arguments used during the lookup.
63
+ * @param opts Optional settings to control the behavior of the CustomResource.
64
+ */
65
+ static get(name, id, state, opts) {
66
+ return new Repository(name, state, Object.assign(Object.assign({}, opts), { id: id }));
67
+ }
68
+ /**
69
+ * Returns true if the given object is an instance of Repository. This is designed to work even
70
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
71
+ */
72
+ static isInstance(obj) {
73
+ if (obj === undefined || obj === null) {
74
+ return false;
75
+ }
76
+ return obj['__pulumiType'] === Repository.__pulumiType;
77
+ }
78
+ constructor(name, argsOrState, opts) {
79
+ let resourceInputs = {};
80
+ opts = opts || {};
81
+ if (opts.id) {
82
+ const state = argsOrState;
83
+ resourceInputs["connectionStateStatus"] = state ? state.connectionStateStatus : undefined;
84
+ resourceInputs["enableLfs"] = state ? state.enableLfs : undefined;
85
+ resourceInputs["enableOci"] = state ? state.enableOci : undefined;
86
+ resourceInputs["githubappEnterpriseBaseUrl"] = state ? state.githubappEnterpriseBaseUrl : undefined;
87
+ resourceInputs["githubappId"] = state ? state.githubappId : undefined;
88
+ resourceInputs["githubappInstallationId"] = state ? state.githubappInstallationId : undefined;
89
+ resourceInputs["githubappPrivateKey"] = state ? state.githubappPrivateKey : undefined;
90
+ resourceInputs["inheritedCreds"] = state ? state.inheritedCreds : undefined;
91
+ resourceInputs["insecure"] = state ? state.insecure : undefined;
92
+ resourceInputs["name"] = state ? state.name : undefined;
93
+ resourceInputs["password"] = state ? state.password : undefined;
94
+ resourceInputs["project"] = state ? state.project : undefined;
95
+ resourceInputs["repo"] = state ? state.repo : undefined;
96
+ resourceInputs["sshPrivateKey"] = state ? state.sshPrivateKey : undefined;
97
+ resourceInputs["tlsClientCertData"] = state ? state.tlsClientCertData : undefined;
98
+ resourceInputs["tlsClientCertKey"] = state ? state.tlsClientCertKey : undefined;
99
+ resourceInputs["type"] = state ? state.type : undefined;
100
+ resourceInputs["username"] = state ? state.username : undefined;
101
+ }
102
+ else {
103
+ const args = argsOrState;
104
+ if ((!args || args.repo === undefined) && !opts.urn) {
105
+ throw new Error("Missing required property 'repo'");
106
+ }
107
+ resourceInputs["enableLfs"] = args ? args.enableLfs : undefined;
108
+ resourceInputs["enableOci"] = args ? args.enableOci : undefined;
109
+ resourceInputs["githubappEnterpriseBaseUrl"] = args ? args.githubappEnterpriseBaseUrl : undefined;
110
+ resourceInputs["githubappId"] = args ? args.githubappId : undefined;
111
+ resourceInputs["githubappInstallationId"] = args ? args.githubappInstallationId : undefined;
112
+ resourceInputs["githubappPrivateKey"] = (args === null || args === void 0 ? void 0 : args.githubappPrivateKey) ? pulumi.secret(args.githubappPrivateKey) : undefined;
113
+ resourceInputs["insecure"] = args ? args.insecure : undefined;
114
+ resourceInputs["name"] = args ? args.name : undefined;
115
+ resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
116
+ resourceInputs["project"] = args ? args.project : undefined;
117
+ resourceInputs["repo"] = args ? args.repo : undefined;
118
+ resourceInputs["sshPrivateKey"] = (args === null || args === void 0 ? void 0 : args.sshPrivateKey) ? pulumi.secret(args.sshPrivateKey) : undefined;
119
+ resourceInputs["tlsClientCertData"] = args ? args.tlsClientCertData : undefined;
120
+ resourceInputs["tlsClientCertKey"] = (args === null || args === void 0 ? void 0 : args.tlsClientCertKey) ? pulumi.secret(args.tlsClientCertKey) : undefined;
121
+ resourceInputs["type"] = args ? args.type : undefined;
122
+ resourceInputs["username"] = args ? args.username : undefined;
123
+ resourceInputs["connectionStateStatus"] = undefined /*out*/;
124
+ resourceInputs["inheritedCreds"] = undefined /*out*/;
125
+ }
126
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
127
+ const secretOpts = { additionalSecretOutputs: ["githubappPrivateKey", "password", "sshPrivateKey", "tlsClientCertKey"] };
128
+ opts = pulumi.mergeOptions(opts, secretOpts);
129
+ super(Repository.__pulumiType, name, resourceInputs, opts);
130
+ }
131
+ }
132
+ exports.Repository = Repository;
133
+ /** @internal */
134
+ Repository.__pulumiType = 'argocd:index/repository:Repository';
135
+ //# sourceMappingURL=repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.js","sourceRoot":"","sources":["../repository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC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CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5D,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACxD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,qBAAqB,EAAE,UAAU,EAAE,eAAe,EAAE,kBAAkB,CAAC,EAAE,CAAC;QACzH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAhKL,gCAiKC;AAnJG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
@@ -0,0 +1,84 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Manages [custom TLS certificates](https://argo-cd.readthedocs.io/en/stable/user-guide/private-repositories/#self-signed-untrusted-tls-certificates) used by ArgoCD for connecting Git repositories.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as argocd from "@three14/pulumi-argocd";
12
+ *
13
+ * // HTTPS certificate
14
+ * const private_git_repository_https = new argocd.RepositoryCertificate("private-git-repository-https", {https: {
15
+ * serverName: "private-git-repository.local",
16
+ * certData: "-----BEGIN CERTIFICATE-----\\nfoo\\nbar\\n-----END CERTIFICATE-----\n",
17
+ * }});
18
+ * // SSH certificate
19
+ * const private_git_repository_ssh = new argocd.RepositoryCertificate("private-git-repository-ssh", {ssh: {
20
+ * serverName: "private-git-repository.local",
21
+ * certSubtype: "ssh-rsa",
22
+ * certData: "AAAAB3NzaC1yc2EAAAADAQABAAABgQCiPZAufKgxwRgxP9qy2Gtub0FI8qJGtL8Ldb7KatBeRUQQPn8QK7ZYjzYDvP1GOutFMaQT0rKIqaGImIBsztNCno...\n",
23
+ * }});
24
+ * ```
25
+ */
26
+ export declare class RepositoryCertificate extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing RepositoryCertificate resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RepositoryCertificateState, opts?: pulumi.CustomResourceOptions): RepositoryCertificate;
37
+ /**
38
+ * Returns true if the given object is an instance of RepositoryCertificate. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj: any): obj is RepositoryCertificate;
42
+ /**
43
+ * Defines a `https` certificate.
44
+ */
45
+ readonly https: pulumi.Output<outputs.RepositoryCertificateHttps | undefined>;
46
+ /**
47
+ * Defines a `ssh` certificate.
48
+ */
49
+ readonly ssh: pulumi.Output<outputs.RepositoryCertificateSsh | undefined>;
50
+ /**
51
+ * Create a RepositoryCertificate resource with the given unique name, arguments, and options.
52
+ *
53
+ * @param name The _unique_ name of the resource.
54
+ * @param args The arguments to use to populate this resource's properties.
55
+ * @param opts A bag of options that control this resource's behavior.
56
+ */
57
+ constructor(name: string, args?: RepositoryCertificateArgs, opts?: pulumi.CustomResourceOptions);
58
+ }
59
+ /**
60
+ * Input properties used for looking up and filtering RepositoryCertificate resources.
61
+ */
62
+ export interface RepositoryCertificateState {
63
+ /**
64
+ * Defines a `https` certificate.
65
+ */
66
+ https?: pulumi.Input<inputs.RepositoryCertificateHttps>;
67
+ /**
68
+ * Defines a `ssh` certificate.
69
+ */
70
+ ssh?: pulumi.Input<inputs.RepositoryCertificateSsh>;
71
+ }
72
+ /**
73
+ * The set of arguments for constructing a RepositoryCertificate resource.
74
+ */
75
+ export interface RepositoryCertificateArgs {
76
+ /**
77
+ * Defines a `https` certificate.
78
+ */
79
+ https?: pulumi.Input<inputs.RepositoryCertificateHttps>;
80
+ /**
81
+ * Defines a `ssh` certificate.
82
+ */
83
+ ssh?: pulumi.Input<inputs.RepositoryCertificateSsh>;
84
+ }
@@ -0,0 +1,73 @@
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.RepositoryCertificate = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages [custom TLS certificates](https://argo-cd.readthedocs.io/en/stable/user-guide/private-repositories/#self-signed-untrusted-tls-certificates) used by ArgoCD for connecting Git repositories.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as argocd from "@three14/pulumi-argocd";
16
+ *
17
+ * // HTTPS certificate
18
+ * const private_git_repository_https = new argocd.RepositoryCertificate("private-git-repository-https", {https: {
19
+ * serverName: "private-git-repository.local",
20
+ * certData: "-----BEGIN CERTIFICATE-----\\nfoo\\nbar\\n-----END CERTIFICATE-----\n",
21
+ * }});
22
+ * // SSH certificate
23
+ * const private_git_repository_ssh = new argocd.RepositoryCertificate("private-git-repository-ssh", {ssh: {
24
+ * serverName: "private-git-repository.local",
25
+ * certSubtype: "ssh-rsa",
26
+ * certData: "AAAAB3NzaC1yc2EAAAADAQABAAABgQCiPZAufKgxwRgxP9qy2Gtub0FI8qJGtL8Ldb7KatBeRUQQPn8QK7ZYjzYDvP1GOutFMaQT0rKIqaGImIBsztNCno...\n",
27
+ * }});
28
+ * ```
29
+ */
30
+ class RepositoryCertificate extends pulumi.CustomResource {
31
+ /**
32
+ * Get an existing RepositoryCertificate resource's state with the given name, ID, and optional extra
33
+ * properties used to qualify the lookup.
34
+ *
35
+ * @param name The _unique_ name of the resulting resource.
36
+ * @param id The _unique_ provider ID of the resource to lookup.
37
+ * @param state Any extra arguments used during the lookup.
38
+ * @param opts Optional settings to control the behavior of the CustomResource.
39
+ */
40
+ static get(name, id, state, opts) {
41
+ return new RepositoryCertificate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
42
+ }
43
+ /**
44
+ * Returns true if the given object is an instance of RepositoryCertificate. This is designed to work even
45
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
46
+ */
47
+ static isInstance(obj) {
48
+ if (obj === undefined || obj === null) {
49
+ return false;
50
+ }
51
+ return obj['__pulumiType'] === RepositoryCertificate.__pulumiType;
52
+ }
53
+ constructor(name, argsOrState, opts) {
54
+ let resourceInputs = {};
55
+ opts = opts || {};
56
+ if (opts.id) {
57
+ const state = argsOrState;
58
+ resourceInputs["https"] = state ? state.https : undefined;
59
+ resourceInputs["ssh"] = state ? state.ssh : undefined;
60
+ }
61
+ else {
62
+ const args = argsOrState;
63
+ resourceInputs["https"] = args ? args.https : undefined;
64
+ resourceInputs["ssh"] = args ? args.ssh : undefined;
65
+ }
66
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
67
+ super(RepositoryCertificate.__pulumiType, name, resourceInputs, opts);
68
+ }
69
+ }
70
+ exports.RepositoryCertificate = RepositoryCertificate;
71
+ /** @internal */
72
+ RepositoryCertificate.__pulumiType = 'argocd:index/repositoryCertificate:RepositoryCertificate';
73
+ //# sourceMappingURL=repositoryCertificate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repositoryCertificate.js","sourceRoot":"","sources":["../repositoryCertificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AA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