@three14/pulumi-argocd 1.1.0 → 1.1.3

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 (71) hide show
  1. package/accountToken.d.ts +12 -11
  2. package/accountToken.d.ts.map +1 -0
  3. package/accountToken.js +27 -4
  4. package/accountToken.js.map +1 -1
  5. package/application.d.ts +12 -11
  6. package/application.d.ts.map +1 -0
  7. package/application.js +27 -4
  8. package/application.js.map +1 -1
  9. package/applicationSet.d.ts +3 -2
  10. package/applicationSet.d.ts.map +1 -0
  11. package/applicationSet.js +27 -4
  12. package/applicationSet.js.map +1 -1
  13. package/cluster.d.ts +16 -15
  14. package/cluster.d.ts.map +1 -0
  15. package/cluster.js +28 -5
  16. package/cluster.js.map +1 -1
  17. package/config/index.d.ts +1 -0
  18. package/config/index.d.ts.map +1 -0
  19. package/config/vars.d.ts +1 -0
  20. package/config/vars.d.ts.map +1 -0
  21. package/config/vars.js +24 -1
  22. package/config/vars.js.map +1 -1
  23. package/getApplication.d.ts +79 -0
  24. package/getApplication.d.ts.map +1 -0
  25. package/getApplication.js +79 -0
  26. package/getApplication.js.map +1 -0
  27. package/gpgKey.d.ts +132 -0
  28. package/gpgKey.d.ts.map +1 -0
  29. package/gpgKey.js +134 -0
  30. package/gpgKey.js.map +1 -0
  31. package/index.d.ts +22 -0
  32. package/index.d.ts.map +1 -0
  33. package/index.js +50 -5
  34. package/index.js.map +1 -1
  35. package/package.json +4 -4
  36. package/project.d.ts +203 -0
  37. package/project.d.ts.map +1 -0
  38. package/project.js +220 -0
  39. package/project.js.map +1 -0
  40. package/projectToken.d.ts +153 -0
  41. package/projectToken.d.ts.map +1 -0
  42. package/projectToken.js +116 -0
  43. package/projectToken.js.map +1 -0
  44. package/provider.d.ts +21 -20
  45. package/provider.d.ts.map +1 -0
  46. package/provider.js +27 -4
  47. package/provider.js.map +1 -1
  48. package/repository.d.ts +365 -0
  49. package/repository.d.ts.map +1 -0
  50. package/repository.js +181 -0
  51. package/repository.js.map +1 -0
  52. package/repositoryCertificate.d.ts +85 -0
  53. package/repositoryCertificate.d.ts.map +1 -0
  54. package/repositoryCertificate.js +96 -0
  55. package/repositoryCertificate.js.map +1 -0
  56. package/repositoryCredentials.d.ts +229 -0
  57. package/repositoryCredentials.d.ts.map +1 -0
  58. package/repositoryCredentials.js +137 -0
  59. package/repositoryCredentials.js.map +1 -0
  60. package/types/index.d.ts +1 -0
  61. package/types/index.d.ts.map +1 -0
  62. package/types/index.js +25 -2
  63. package/types/index.js.map +1 -1
  64. package/types/input.d.ts +6751 -6392
  65. package/types/input.d.ts.map +1 -0
  66. package/types/output.d.ts +843 -0
  67. package/types/output.d.ts.map +1 -0
  68. package/utilities.d.ts +1 -0
  69. package/utilities.d.ts.map +1 -0
  70. package/utilities.js +24 -1
  71. package/utilities.js.map +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../repository.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,qBAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,UAAU;IAOtI;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,UAAU;IAOrD;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACvE;;OAEG;IACH,SAAgC,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,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GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC7D;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC/C"}
package/repository.js ADDED
@@ -0,0 +1,181 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Repository = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Manages [repositories](https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#repositories) within ArgoCD.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as argocd from "@three14/pulumi-argocd";
39
+ *
40
+ * // Public Helm repository
41
+ * const publicNginxHelm = new argocd.Repository("public_nginx_helm", {
42
+ * repo: "https://helm.nginx.com/stable",
43
+ * name: "nginx-stable",
44
+ * type: "helm",
45
+ * });
46
+ * // Public Git repository
47
+ * const publicGit = new argocd.Repository("public_git", {repo: "git@github.com:user/somerepo.git"});
48
+ * // Private Git repository
49
+ * const _private = new argocd.Repository("private", {
50
+ * repo: "git@private-git-repository.local:somerepo.git",
51
+ * username: "git",
52
+ * sshPrivateKey: `-----BEGIN OPENSSH PRIVATE KEY-----
53
+ * foo
54
+ * bar
55
+ * -----END OPENSSH PRIVATE KEY-----`,
56
+ * insecure: true,
57
+ * });
58
+ * // Repository with proxy configuration
59
+ * const withProxy = new argocd.Repository("with_proxy", {
60
+ * repo: "https://github.com/example/repo.git",
61
+ * username: "git",
62
+ * password: "my-token",
63
+ * proxy: "http://proxy.example.com:8080",
64
+ * noProxy: "*.internal.example.com,localhost",
65
+ * });
66
+ * // OCI repository (e.g., for Helm charts stored in OCI registries)
67
+ * const ociRegistry = new argocd.Repository("oci_registry", {
68
+ * repo: "oci://ghcr.io/argoproj/argo-helm/argo-cd",
69
+ * name: "argocd-oci",
70
+ * type: "oci",
71
+ * username: "my-username",
72
+ * password: "my-token",
73
+ * });
74
+ * ```
75
+ *
76
+ * ## Import
77
+ *
78
+ * The `pulumi import` command can be used, for example:
79
+ *
80
+ * Repositories can be imported using the repository URL.
81
+ *
82
+ * Note: as the ArgoCD API does not return any sensitive information, a
83
+ * subsequent `pulumi up` should be executed to make the `password`,
84
+ * `sshPrivateKey` and `tlsClientCertKey` attributes converge to their
85
+ * expected values defined within the plan.
86
+ *
87
+ * ```sh
88
+ * $ pulumi import argocd:index/repository:Repository myrepo git@private-git-repository.local:somerepo.git
89
+ * ```
90
+ */
91
+ class Repository extends pulumi.CustomResource {
92
+ /**
93
+ * Get an existing Repository resource's state with the given name, ID, and optional extra
94
+ * properties used to qualify the lookup.
95
+ *
96
+ * @param name The _unique_ name of the resulting resource.
97
+ * @param id The _unique_ provider ID of the resource to lookup.
98
+ * @param state Any extra arguments used during the lookup.
99
+ * @param opts Optional settings to control the behavior of the CustomResource.
100
+ */
101
+ static get(name, id, state, opts) {
102
+ return new Repository(name, state, { ...opts, id: id });
103
+ }
104
+ /** @internal */
105
+ static __pulumiType = 'argocd:index/repository:Repository';
106
+ /**
107
+ * Returns true if the given object is an instance of Repository. This is designed to work even
108
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
109
+ */
110
+ static isInstance(obj) {
111
+ if (obj === undefined || obj === null) {
112
+ return false;
113
+ }
114
+ return obj['__pulumiType'] === Repository.__pulumiType;
115
+ }
116
+ constructor(name, argsOrState, opts) {
117
+ let resourceInputs = {};
118
+ opts = opts || {};
119
+ if (opts.id) {
120
+ const state = argsOrState;
121
+ resourceInputs["bearerToken"] = state?.bearerToken;
122
+ resourceInputs["connectionStateStatus"] = state?.connectionStateStatus;
123
+ resourceInputs["depth"] = state?.depth;
124
+ resourceInputs["enableLfs"] = state?.enableLfs;
125
+ resourceInputs["enableOci"] = state?.enableOci;
126
+ resourceInputs["githubappEnterpriseBaseUrl"] = state?.githubappEnterpriseBaseUrl;
127
+ resourceInputs["githubappId"] = state?.githubappId;
128
+ resourceInputs["githubappInstallationId"] = state?.githubappInstallationId;
129
+ resourceInputs["githubappPrivateKey"] = state?.githubappPrivateKey;
130
+ resourceInputs["inheritedCreds"] = state?.inheritedCreds;
131
+ resourceInputs["insecure"] = state?.insecure;
132
+ resourceInputs["name"] = state?.name;
133
+ resourceInputs["noProxy"] = state?.noProxy;
134
+ resourceInputs["password"] = state?.password;
135
+ resourceInputs["project"] = state?.project;
136
+ resourceInputs["proxy"] = state?.proxy;
137
+ resourceInputs["repo"] = state?.repo;
138
+ resourceInputs["sshPrivateKey"] = state?.sshPrivateKey;
139
+ resourceInputs["tlsClientCertData"] = state?.tlsClientCertData;
140
+ resourceInputs["tlsClientCertKey"] = state?.tlsClientCertKey;
141
+ resourceInputs["type"] = state?.type;
142
+ resourceInputs["useAzureWorkloadIdentity"] = state?.useAzureWorkloadIdentity;
143
+ resourceInputs["username"] = state?.username;
144
+ }
145
+ else {
146
+ const args = argsOrState;
147
+ if (args?.repo === undefined && !opts.urn) {
148
+ throw new Error("Missing required property 'repo'");
149
+ }
150
+ resourceInputs["bearerToken"] = args?.bearerToken ? pulumi.secret(args.bearerToken) : undefined;
151
+ resourceInputs["depth"] = args?.depth;
152
+ resourceInputs["enableLfs"] = args?.enableLfs;
153
+ resourceInputs["enableOci"] = args?.enableOci;
154
+ resourceInputs["githubappEnterpriseBaseUrl"] = args?.githubappEnterpriseBaseUrl;
155
+ resourceInputs["githubappId"] = args?.githubappId;
156
+ resourceInputs["githubappInstallationId"] = args?.githubappInstallationId;
157
+ resourceInputs["githubappPrivateKey"] = args?.githubappPrivateKey ? pulumi.secret(args.githubappPrivateKey) : undefined;
158
+ resourceInputs["insecure"] = args?.insecure;
159
+ resourceInputs["name"] = args?.name;
160
+ resourceInputs["noProxy"] = args?.noProxy;
161
+ resourceInputs["password"] = args?.password ? pulumi.secret(args.password) : undefined;
162
+ resourceInputs["project"] = args?.project;
163
+ resourceInputs["proxy"] = args?.proxy;
164
+ resourceInputs["repo"] = args?.repo;
165
+ resourceInputs["sshPrivateKey"] = args?.sshPrivateKey ? pulumi.secret(args.sshPrivateKey) : undefined;
166
+ resourceInputs["tlsClientCertData"] = args?.tlsClientCertData;
167
+ resourceInputs["tlsClientCertKey"] = args?.tlsClientCertKey ? pulumi.secret(args.tlsClientCertKey) : undefined;
168
+ resourceInputs["type"] = args?.type;
169
+ resourceInputs["useAzureWorkloadIdentity"] = args?.useAzureWorkloadIdentity;
170
+ resourceInputs["username"] = args?.username;
171
+ resourceInputs["connectionStateStatus"] = undefined /*out*/;
172
+ resourceInputs["inheritedCreds"] = undefined /*out*/;
173
+ }
174
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
175
+ const secretOpts = { additionalSecretOutputs: ["bearerToken", "githubappPrivateKey", "password", "sshPrivateKey", "tlsClientCertKey"] };
176
+ opts = pulumi.mergeOptions(opts, secretOpts);
177
+ super(Repository.__pulumiType, name, resourceInputs, opts);
178
+ }
179
+ }
180
+ exports.Repository = Repository;
181
+ //# sourceMappingURL=repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository.js","sourceRoot":"","sources":["../repository.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF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ificates](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", {sshes: [{
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
+ * HTTPS certificate configuration
44
+ */
45
+ readonly https: pulumi.Output<outputs.RepositoryCertificateHttp[] | undefined>;
46
+ /**
47
+ * SSH certificate configuration
48
+ */
49
+ readonly sshes: 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
+ * HTTPS certificate configuration
65
+ */
66
+ https?: pulumi.Input<pulumi.Input<inputs.RepositoryCertificateHttp>[] | undefined>;
67
+ /**
68
+ * SSH certificate configuration
69
+ */
70
+ sshes?: pulumi.Input<pulumi.Input<inputs.RepositoryCertificateSsh>[] | undefined>;
71
+ }
72
+ /**
73
+ * The set of arguments for constructing a RepositoryCertificate resource.
74
+ */
75
+ export interface RepositoryCertificateArgs {
76
+ /**
77
+ * HTTPS certificate configuration
78
+ */
79
+ https?: pulumi.Input<pulumi.Input<inputs.RepositoryCertificateHttp>[] | undefined>;
80
+ /**
81
+ * SSH certificate configuration
82
+ */
83
+ sshes?: pulumi.Input<pulumi.Input<inputs.RepositoryCertificateSsh>[] | undefined>;
84
+ }
85
+ //# sourceMappingURL=repositoryCertificate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repositoryCertificate.d.ts","sourceRoot":"","sources":["../repositoryCertificate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;WACW,G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EAAE,GAAG,SAAS,CAAC,CAAC;CACrF"}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.RepositoryCertificate = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * 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.
33
+ *
34
+ * ## Example Usage
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as argocd from "@three14/pulumi-argocd";
39
+ *
40
+ * // HTTPS certificate
41
+ * const private_git_repository_https = new argocd.RepositoryCertificate("private-git-repository-https", {https: [{
42
+ * serverName: "private-git-repository.local",
43
+ * certData: "-----BEGIN CERTIFICATE-----\\nfoo\\nbar\\n-----END CERTIFICATE-----\n",
44
+ * }]});
45
+ * // SSH certificate
46
+ * const private_git_repository_ssh = new argocd.RepositoryCertificate("private-git-repository-ssh", {sshes: [{
47
+ * serverName: "private-git-repository.local",
48
+ * certSubtype: "ssh-rsa",
49
+ * certData: "AAAAB3NzaC1yc2EAAAADAQABAAABgQCiPZAufKgxwRgxP9qy2Gtub0FI8qJGtL8Ldb7KatBeRUQQPn8QK7ZYjzYDvP1GOutFMaQT0rKIqaGImIBsztNCno...\n",
50
+ * }]});
51
+ * ```
52
+ */
53
+ class RepositoryCertificate extends pulumi.CustomResource {
54
+ /**
55
+ * Get an existing RepositoryCertificate resource's state with the given name, ID, and optional extra
56
+ * properties used to qualify the lookup.
57
+ *
58
+ * @param name The _unique_ name of the resulting resource.
59
+ * @param id The _unique_ provider ID of the resource to lookup.
60
+ * @param state Any extra arguments used during the lookup.
61
+ * @param opts Optional settings to control the behavior of the CustomResource.
62
+ */
63
+ static get(name, id, state, opts) {
64
+ return new RepositoryCertificate(name, state, { ...opts, id: id });
65
+ }
66
+ /** @internal */
67
+ static __pulumiType = 'argocd:index/repositoryCertificate:RepositoryCertificate';
68
+ /**
69
+ * Returns true if the given object is an instance of RepositoryCertificate. 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'] === RepositoryCertificate.__pulumiType;
77
+ }
78
+ constructor(name, argsOrState, opts) {
79
+ let resourceInputs = {};
80
+ opts = opts || {};
81
+ if (opts.id) {
82
+ const state = argsOrState;
83
+ resourceInputs["https"] = state?.https;
84
+ resourceInputs["sshes"] = state?.sshes;
85
+ }
86
+ else {
87
+ const args = argsOrState;
88
+ resourceInputs["https"] = args?.https;
89
+ resourceInputs["sshes"] = args?.sshes;
90
+ }
91
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
92
+ super(RepositoryCertificate.__pulumiType, name, resourceInputs, opts);
93
+ }
94
+ }
95
+ exports.RepositoryCertificate = RepositoryCertificate;
96
+ //# sourceMappingURL=repositoryCertificate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repositoryCertificate.js","sourceRoot":"","sources":["../repositoryCertificate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,0DAA0D,CAAC;IAEjG;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;YACvC,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;SAC1C;aAAM;YACH,MAAM,IAAI,GAAG,WAAoD,CAAC;YAClE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;SACzC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AA3DL,sDA4DC"}
@@ -0,0 +1,229 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Manages [repository credentials](https://argo-cd.readthedocs.io/en/stable/user-guide/private-repositories/#credentials) within ArgoCD.
4
+ *
5
+ * **Note**: due to restrictions in the ArgoCD API the provider is unable to track drift in this resource to fields other than `username`. I.e. the provider is unable to detect changes to repository credentials that are made outside of Pulumi (e.g. manual updates to the underlying Kubernetes Secrets).
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as argocd from "@three14/pulumi-argocd";
12
+ *
13
+ * const _private = new argocd.RepositoryCredentials("private", {
14
+ * url: "git@private-git-repository.local",
15
+ * username: "git",
16
+ * sshPrivateKey: `-----BEGIN OPENSSH PRIVATE KEY-----
17
+ * foo
18
+ * bar
19
+ * -----END OPENSSH PRIVATE KEY-----`,
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * The `pulumi import` command can be used, for example:
26
+ *
27
+ * Repository credentials can be imported using the repository URL.
28
+ *
29
+ * Note: as the ArgoCD API does not return any sensitive information, a
30
+ * subsequent `pulumi up` should be executed to make the `password`,
31
+ * `sshPrivateKey` and `tlsClientCertKey` attributes converge to their
32
+ * expected values defined within the plan.
33
+ *
34
+ * ```sh
35
+ * $ pulumi import argocd:index/repositoryCredentials:RepositoryCredentials myrepocreds git@private-git-repository.local:somerepo.git
36
+ * ```
37
+ */
38
+ export declare class RepositoryCredentials extends pulumi.CustomResource {
39
+ /**
40
+ * Get an existing RepositoryCredentials resource's state with the given name, ID, and optional extra
41
+ * properties used to qualify the lookup.
42
+ *
43
+ * @param name The _unique_ name of the resulting resource.
44
+ * @param id The _unique_ provider ID of the resource to lookup.
45
+ * @param state Any extra arguments used during the lookup.
46
+ * @param opts Optional settings to control the behavior of the CustomResource.
47
+ */
48
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RepositoryCredentialsState, opts?: pulumi.CustomResourceOptions): RepositoryCredentials;
49
+ /**
50
+ * Returns true if the given object is an instance of RepositoryCredentials. This is designed to work even
51
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
+ */
53
+ static isInstance(obj: any): obj is RepositoryCredentials;
54
+ /**
55
+ * Whether `helm-oci` support should be enabled for this repo. Can only be set to `true` when `type` is `helm`.
56
+ */
57
+ readonly enableOci: pulumi.Output<boolean>;
58
+ /**
59
+ * GitHub API URL for GitHub app authentication
60
+ */
61
+ readonly githubappEnterpriseBaseUrl: pulumi.Output<string | undefined>;
62
+ /**
63
+ * GitHub App ID of the app used to access the repo for GitHub app authentication
64
+ */
65
+ readonly githubappId: pulumi.Output<string | undefined>;
66
+ /**
67
+ * ID of the installed GitHub App for GitHub app authentication
68
+ */
69
+ readonly githubappInstallationId: pulumi.Output<string | undefined>;
70
+ /**
71
+ * Private key data (PEM) for authentication via GitHub app
72
+ */
73
+ readonly githubappPrivateKey: pulumi.Output<string | undefined>;
74
+ /**
75
+ * Password for authenticating at the repo server
76
+ */
77
+ readonly password: pulumi.Output<string | undefined>;
78
+ /**
79
+ * Private key data for authenticating at the repo server using SSH (only Git repos)
80
+ */
81
+ readonly sshPrivateKey: pulumi.Output<string | undefined>;
82
+ /**
83
+ * TLS client cert data for authenticating at the repo server
84
+ */
85
+ readonly tlsClientCertData: pulumi.Output<string | undefined>;
86
+ /**
87
+ * TLS client cert key for authenticating at the repo server
88
+ */
89
+ readonly tlsClientCertKey: pulumi.Output<string | undefined>;
90
+ /**
91
+ * Type of the repository credentials. Can be either `git`, `oci` or `helm`. `git` is assumed if empty or absent.
92
+ */
93
+ readonly type: pulumi.Output<string>;
94
+ /**
95
+ * URL that these credentials match to
96
+ */
97
+ readonly url: pulumi.Output<string>;
98
+ /**
99
+ * Whether `Azure-Workload-identity` should be enabled for this repository.
100
+ */
101
+ readonly useAzureWorkloadIdentity: pulumi.Output<boolean>;
102
+ /**
103
+ * Username for authenticating at the repo server
104
+ */
105
+ readonly username: pulumi.Output<string | undefined>;
106
+ /**
107
+ * Create a RepositoryCredentials resource with the given unique name, arguments, and options.
108
+ *
109
+ * @param name The _unique_ name of the resource.
110
+ * @param args The arguments to use to populate this resource's properties.
111
+ * @param opts A bag of options that control this resource's behavior.
112
+ */
113
+ constructor(name: string, args: RepositoryCredentialsArgs, opts?: pulumi.CustomResourceOptions);
114
+ }
115
+ /**
116
+ * Input properties used for looking up and filtering RepositoryCredentials resources.
117
+ */
118
+ export interface RepositoryCredentialsState {
119
+ /**
120
+ * Whether `helm-oci` support should be enabled for this repo. Can only be set to `true` when `type` is `helm`.
121
+ */
122
+ enableOci?: pulumi.Input<boolean | undefined>;
123
+ /**
124
+ * GitHub API URL for GitHub app authentication
125
+ */
126
+ githubappEnterpriseBaseUrl?: pulumi.Input<string | undefined>;
127
+ /**
128
+ * GitHub App ID of the app used to access the repo for GitHub app authentication
129
+ */
130
+ githubappId?: pulumi.Input<string | undefined>;
131
+ /**
132
+ * ID of the installed GitHub App for GitHub app authentication
133
+ */
134
+ githubappInstallationId?: pulumi.Input<string | undefined>;
135
+ /**
136
+ * Private key data (PEM) for authentication via GitHub app
137
+ */
138
+ githubappPrivateKey?: pulumi.Input<string | undefined>;
139
+ /**
140
+ * Password for authenticating at the repo server
141
+ */
142
+ password?: pulumi.Input<string | undefined>;
143
+ /**
144
+ * Private key data for authenticating at the repo server using SSH (only Git repos)
145
+ */
146
+ sshPrivateKey?: pulumi.Input<string | undefined>;
147
+ /**
148
+ * TLS client cert data for authenticating at the repo server
149
+ */
150
+ tlsClientCertData?: pulumi.Input<string | undefined>;
151
+ /**
152
+ * TLS client cert key for authenticating at the repo server
153
+ */
154
+ tlsClientCertKey?: pulumi.Input<string | undefined>;
155
+ /**
156
+ * Type of the repository credentials. Can be either `git`, `oci` or `helm`. `git` is assumed if empty or absent.
157
+ */
158
+ type?: pulumi.Input<string | undefined>;
159
+ /**
160
+ * URL that these credentials match to
161
+ */
162
+ url?: pulumi.Input<string | undefined>;
163
+ /**
164
+ * Whether `Azure-Workload-identity` should be enabled for this repository.
165
+ */
166
+ useAzureWorkloadIdentity?: pulumi.Input<boolean | undefined>;
167
+ /**
168
+ * Username for authenticating at the repo server
169
+ */
170
+ username?: pulumi.Input<string | undefined>;
171
+ }
172
+ /**
173
+ * The set of arguments for constructing a RepositoryCredentials resource.
174
+ */
175
+ export interface RepositoryCredentialsArgs {
176
+ /**
177
+ * Whether `helm-oci` support should be enabled for this repo. Can only be set to `true` when `type` is `helm`.
178
+ */
179
+ enableOci?: pulumi.Input<boolean | undefined>;
180
+ /**
181
+ * GitHub API URL for GitHub app authentication
182
+ */
183
+ githubappEnterpriseBaseUrl?: pulumi.Input<string | undefined>;
184
+ /**
185
+ * GitHub App ID of the app used to access the repo for GitHub app authentication
186
+ */
187
+ githubappId?: pulumi.Input<string | undefined>;
188
+ /**
189
+ * ID of the installed GitHub App for GitHub app authentication
190
+ */
191
+ githubappInstallationId?: pulumi.Input<string | undefined>;
192
+ /**
193
+ * Private key data (PEM) for authentication via GitHub app
194
+ */
195
+ githubappPrivateKey?: pulumi.Input<string | undefined>;
196
+ /**
197
+ * Password for authenticating at the repo server
198
+ */
199
+ password?: pulumi.Input<string | undefined>;
200
+ /**
201
+ * Private key data for authenticating at the repo server using SSH (only Git repos)
202
+ */
203
+ sshPrivateKey?: pulumi.Input<string | undefined>;
204
+ /**
205
+ * TLS client cert data for authenticating at the repo server
206
+ */
207
+ tlsClientCertData?: pulumi.Input<string | undefined>;
208
+ /**
209
+ * TLS client cert key for authenticating at the repo server
210
+ */
211
+ tlsClientCertKey?: pulumi.Input<string | undefined>;
212
+ /**
213
+ * Type of the repository credentials. Can be either `git`, `oci` or `helm`. `git` is assumed if empty or absent.
214
+ */
215
+ type?: pulumi.Input<string | undefined>;
216
+ /**
217
+ * URL that these credentials match to
218
+ */
219
+ url: pulumi.Input<string>;
220
+ /**
221
+ * Whether `Azure-Workload-identity` should be enabled for this repository.
222
+ */
223
+ useAzureWorkloadIdentity?: pulumi.Input<boolean | undefined>;
224
+ /**
225
+ * Username for authenticating at the repo server
226
+ */
227
+ username?: pulumi.Input<string | undefined>;
228
+ }
229
+ //# sourceMappingURL=repositoryCredentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repositoryCredentials.d.ts","sourceRoot":"","sources":["../repositoryCredentials.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,qBAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,0BAA0B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,qBAAqB;IAO5J;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,qBAAqB;IAOhE;;OAEG;IACH,SAAwB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC1D;;OAEG;IACH,SAAwB,0BAA0B,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtF;;OAEG;IACH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