@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,137 @@
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.RepositoryCredentials = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * Manages [repository credentials](https://argo-cd.readthedocs.io/en/stable/user-guide/private-repositories/#credentials) within ArgoCD.
33
+ *
34
+ * **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).
35
+ *
36
+ * ## Example Usage
37
+ *
38
+ * ```typescript
39
+ * import * as pulumi from "@pulumi/pulumi";
40
+ * import * as argocd from "@three14/pulumi-argocd";
41
+ *
42
+ * const _private = new argocd.RepositoryCredentials("private", {
43
+ * url: "git@private-git-repository.local",
44
+ * username: "git",
45
+ * sshPrivateKey: `-----BEGIN OPENSSH PRIVATE KEY-----
46
+ * foo
47
+ * bar
48
+ * -----END OPENSSH PRIVATE KEY-----`,
49
+ * });
50
+ * ```
51
+ *
52
+ * ## Import
53
+ *
54
+ * The `pulumi import` command can be used, for example:
55
+ *
56
+ * Repository credentials can be imported using the repository URL.
57
+ *
58
+ * Note: as the ArgoCD API does not return any sensitive information, a
59
+ * subsequent `pulumi up` should be executed to make the `password`,
60
+ * `sshPrivateKey` and `tlsClientCertKey` attributes converge to their
61
+ * expected values defined within the plan.
62
+ *
63
+ * ```sh
64
+ * $ pulumi import argocd:index/repositoryCredentials:RepositoryCredentials myrepocreds git@private-git-repository.local:somerepo.git
65
+ * ```
66
+ */
67
+ class RepositoryCredentials extends pulumi.CustomResource {
68
+ /**
69
+ * Get an existing RepositoryCredentials resource's state with the given name, ID, and optional extra
70
+ * properties used to qualify the lookup.
71
+ *
72
+ * @param name The _unique_ name of the resulting resource.
73
+ * @param id The _unique_ provider ID of the resource to lookup.
74
+ * @param state Any extra arguments used during the lookup.
75
+ * @param opts Optional settings to control the behavior of the CustomResource.
76
+ */
77
+ static get(name, id, state, opts) {
78
+ return new RepositoryCredentials(name, state, { ...opts, id: id });
79
+ }
80
+ /** @internal */
81
+ static __pulumiType = 'argocd:index/repositoryCredentials:RepositoryCredentials';
82
+ /**
83
+ * Returns true if the given object is an instance of RepositoryCredentials. This is designed to work even
84
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
85
+ */
86
+ static isInstance(obj) {
87
+ if (obj === undefined || obj === null) {
88
+ return false;
89
+ }
90
+ return obj['__pulumiType'] === RepositoryCredentials.__pulumiType;
91
+ }
92
+ constructor(name, argsOrState, opts) {
93
+ let resourceInputs = {};
94
+ opts = opts || {};
95
+ if (opts.id) {
96
+ const state = argsOrState;
97
+ resourceInputs["enableOci"] = state?.enableOci;
98
+ resourceInputs["githubappEnterpriseBaseUrl"] = state?.githubappEnterpriseBaseUrl;
99
+ resourceInputs["githubappId"] = state?.githubappId;
100
+ resourceInputs["githubappInstallationId"] = state?.githubappInstallationId;
101
+ resourceInputs["githubappPrivateKey"] = state?.githubappPrivateKey;
102
+ resourceInputs["password"] = state?.password;
103
+ resourceInputs["sshPrivateKey"] = state?.sshPrivateKey;
104
+ resourceInputs["tlsClientCertData"] = state?.tlsClientCertData;
105
+ resourceInputs["tlsClientCertKey"] = state?.tlsClientCertKey;
106
+ resourceInputs["type"] = state?.type;
107
+ resourceInputs["url"] = state?.url;
108
+ resourceInputs["useAzureWorkloadIdentity"] = state?.useAzureWorkloadIdentity;
109
+ resourceInputs["username"] = state?.username;
110
+ }
111
+ else {
112
+ const args = argsOrState;
113
+ if (args?.url === undefined && !opts.urn) {
114
+ throw new Error("Missing required property 'url'");
115
+ }
116
+ resourceInputs["enableOci"] = args?.enableOci;
117
+ resourceInputs["githubappEnterpriseBaseUrl"] = args?.githubappEnterpriseBaseUrl;
118
+ resourceInputs["githubappId"] = args?.githubappId;
119
+ resourceInputs["githubappInstallationId"] = args?.githubappInstallationId;
120
+ resourceInputs["githubappPrivateKey"] = args?.githubappPrivateKey ? pulumi.secret(args.githubappPrivateKey) : undefined;
121
+ resourceInputs["password"] = args?.password ? pulumi.secret(args.password) : undefined;
122
+ resourceInputs["sshPrivateKey"] = args?.sshPrivateKey ? pulumi.secret(args.sshPrivateKey) : undefined;
123
+ resourceInputs["tlsClientCertData"] = args?.tlsClientCertData;
124
+ resourceInputs["tlsClientCertKey"] = args?.tlsClientCertKey ? pulumi.secret(args.tlsClientCertKey) : undefined;
125
+ resourceInputs["type"] = args?.type;
126
+ resourceInputs["url"] = args?.url;
127
+ resourceInputs["useAzureWorkloadIdentity"] = args?.useAzureWorkloadIdentity;
128
+ resourceInputs["username"] = args?.username;
129
+ }
130
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
131
+ const secretOpts = { additionalSecretOutputs: ["githubappPrivateKey", "password", "sshPrivateKey", "tlsClientCertKey"] };
132
+ opts = pulumi.mergeOptions(opts, secretOpts);
133
+ super(RepositoryCredentials.__pulumiType, name, resourceInputs, opts);
134
+ }
135
+ }
136
+ exports.RepositoryCredentials = RepositoryCredentials;
137
+ //# sourceMappingURL=repositoryCredentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repositoryCredentials.js","sourceRoot":"","sources":["../repositoryCredentials.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;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,g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AI,CAAC;YACpC,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;YAClC,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,EAAE,wBAAwB,CAAC;YAC5E,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;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,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AAlIL,sDAmIC"}
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import * as input from "./input";
2
2
  import * as output from "./output";
3
3
  export { input, output, };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,OAAO,EACH,KAAK,EACL,MAAM,GACT,CAAC"}
package/types/index.js CHANGED
@@ -1,11 +1,34 @@
1
1
  "use strict";
2
2
  // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
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
+ };
4
27
  Object.defineProperty(exports, "__esModule", { value: true });
5
28
  exports.output = exports.input = void 0;
6
29
  // Export sub-modules:
7
- const input = require("./input");
30
+ const input = __importStar(require("./input"));
8
31
  exports.input = input;
9
- const output = require("./output");
32
+ const output = __importStar(require("./output"));
10
33
  exports.output = output;
11
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAIjF,sBAAsB;AACtB,+CAAiC;AAI7B,sBAAK;AAHT,iDAAmC;AAI/B,wBAAM"}