@three14/pulumi-argocd 1.0.1 → 1.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 (50) hide show
  1. package/accountToken.d.ts +5 -3
  2. package/accountToken.js +15 -13
  3. package/accountToken.js.map +1 -1
  4. package/application.d.ts +15 -1
  5. package/application.js +20 -16
  6. package/application.js.map +1 -1
  7. package/applicationSet.d.ts +83 -0
  8. package/applicationSet.js +91 -8
  9. package/applicationSet.js.map +1 -1
  10. package/cluster.d.ts +2 -2
  11. package/cluster.js +20 -20
  12. package/cluster.js.map +1 -1
  13. package/config/index.js +1 -1
  14. package/config/index.js.map +1 -1
  15. package/config/vars.d.ts +14 -21
  16. package/config/vars.js +1 -1
  17. package/config/vars.js.map +1 -1
  18. package/index.d.ts +1 -18
  19. package/index.js +19 -30
  20. package/index.js.map +1 -1
  21. package/package.json +3 -3
  22. package/provider.d.ts +32 -29
  23. package/provider.js +29 -21
  24. package/provider.js.map +1 -1
  25. package/types/index.js +1 -1
  26. package/types/index.js.map +1 -1
  27. package/types/input.d.ts +9877 -5776
  28. package/types/input.js +1 -1
  29. package/types/input.js.map +1 -1
  30. package/types/output.d.ts +10481 -6380
  31. package/types/output.js +1 -1
  32. package/types/output.js.map +1 -1
  33. package/utilities.d.ts +0 -4
  34. package/utilities.js +20 -30
  35. package/utilities.js.map +1 -1
  36. package/project.d.ts +0 -198
  37. package/project.js +0 -193
  38. package/project.js.map +0 -1
  39. package/projectToken.d.ts +0 -150
  40. package/projectToken.js +0 -91
  41. package/projectToken.js.map +0 -1
  42. package/repository.d.ts +0 -291
  43. package/repository.js +0 -135
  44. package/repository.js.map +0 -1
  45. package/repositoryCertificate.d.ts +0 -84
  46. package/repositoryCertificate.js +0 -73
  47. package/repositoryCertificate.js.map +0 -1
  48. package/repositoryCredentials.d.ts +0 -207
  49. package/repositoryCredentials.js +0 -113
  50. package/repositoryCredentials.js.map +0 -1
package/config/vars.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as outputs from "../types/output";
2
2
  /**
3
- * ArgoCD authentication token, takes precedence over `username`/`password`. Can be set through the `ARGOCD_AUTH_TOKEN`
4
- * environment variable.
3
+ * ArgoCD authentication token, takes precedence over `username`/`password`. Can be set through the `ARGOCD_AUTH_TOKEN` environment variable.
5
4
  */
6
5
  export declare const authToken: string | undefined;
7
6
  /**
@@ -17,24 +16,22 @@ export declare const clientCertFile: string | undefined;
17
16
  */
18
17
  export declare const clientCertKey: string | undefined;
19
18
  /**
20
- * Override the default config path of `$HOME/.config/argocd/config`. Only relevant when `useLocalConfig`. Can be set
21
- * through the `ARGOCD_CONFIG_PATH` environment variable.
19
+ * Override the default config path of `$HOME/.config/argocd/config`. Only relevant when `useLocalConfig`. Can be set through the `ARGOCD_CONFIG_PATH` environment variable.
22
20
  */
23
21
  export declare const configPath: string | undefined;
24
22
  /**
25
- * Context to choose when using a local ArgoCD config file. Only relevant when `useLocalConfig`. Can be set through
26
- * `ARGOCD_CONTEXT` environment variable.
23
+ * Context to choose when using a local ArgoCD config file. Only relevant when `useLocalConfig`. Can be set through `ARGOCD_CONTEXT` environment variable.
27
24
  */
28
25
  export declare const context: string | undefined;
29
26
  /**
30
- * Configure direct access using Kubernetes API server. **Warning**: this feature works by starting a local ArgoCD API
31
- * server that talks directly to the Kubernetes API using the **current context in the default kubeconfig**
32
- * (`~/.kube/config`). This behavior cannot be overridden using either environment variables or the `kubernetes` block in
33
- * the provider configuration at present). If the server fails to start (e.g. your kubeconfig is misconfigured) then the
34
- * provider will fail as a result of the `argocd` module forcing it to exit and no logs will be available to help you debug
35
- * this. The error message will be similar to > `The plugin encountered an error, and failed to respond to the
36
- * plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.` To debug this, you will need to
37
- * login via the ArgoCD CLI using `argocd login --core` and then running an operation. E.g. `argocd app list`.
27
+ * Configure direct access using Kubernetes API server.
28
+ *
29
+ * **Warning**: this feature works by starting a local ArgoCD API server that talks directly to the Kubernetes API using the **current context in the default kubeconfig** (`~/.kube/config`). This behavior cannot be overridden using either environment variables or the `kubernetes` block in the provider configuration at present).
30
+ *
31
+ * If the server fails to start (e.g. your kubeconfig is misconfigured) then the provider will fail as a result of the `argocd` module forcing it to exit and no logs will be available to help you debug this. The error message will be similar to
32
+ * > `The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.`
33
+ *
34
+ * To debug this, you will need to login via the ArgoCD CLI using `argocd login --core` and then running an operation. E.g. `argocd app list`.
38
35
  */
39
36
  export declare const core: boolean | undefined;
40
37
  /**
@@ -42,8 +39,7 @@ export declare const core: boolean | undefined;
42
39
  */
43
40
  export declare const grpcWeb: boolean | undefined;
44
41
  /**
45
- * Use the gRPC web proxy client and set the web root, e.g. `argo-cd`. Useful if the Argo CD server is behind a proxy at a
46
- * non-root path.
42
+ * Use the gRPC web proxy client and set the web root, e.g. `argo-cd`. Useful if the Argo CD server is behind a proxy at a non-root path.
47
43
  */
48
44
  export declare const grpcWebRootPath: string | undefined;
49
45
  /**
@@ -55,9 +51,7 @@ export declare const headers: string[] | undefined;
55
51
  */
56
52
  export declare const insecure: boolean | undefined;
57
53
  /**
58
- * Kubernetes configuration overrides. Only relevant when `portForward = true` or `portForwardWithNamespace = "foo"`. The
59
- * kubeconfig file that is used can be overridden using the [`KUBECONFIG` environment
60
- * variable](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable)).
54
+ * Kubernetes configuration overrides. Only relevant when `portForward = true` or `portForwardWithNamespace = "foo"`. The kubeconfig file that is used can be overridden using the [`KUBECONFIG` environment variable](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable)).
61
55
  */
62
56
  export declare const kubernetes: outputs.config.Kubernetes | undefined;
63
57
  /**
@@ -81,8 +75,7 @@ export declare const portForwardWithNamespace: string | undefined;
81
75
  */
82
76
  export declare const serverAddr: string | undefined;
83
77
  /**
84
- * Use the authentication settings found in the local config file. Useful when you have previously logged in using SSO.
85
- * Conflicts with `authToken`, `username` and `password`.
78
+ * Use the authentication settings found in the local config file. Useful when you have previously logged in using SSO. Conflicts with `authToken`, `username` and `password`.
86
79
  */
87
80
  export declare const useLocalConfig: boolean | undefined;
88
81
  /**
package/config/vars.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  const pulumi = require("@pulumi/pulumi");
@@ -1 +1 @@
1
- {"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAMzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAO7C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE;IAC7C,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC1C,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE;IA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AAC,SAAS,CAAU,gBAAgB,CAAC,CAAC;IACzD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
package/index.d.ts CHANGED
@@ -10,24 +10,7 @@ export declare const ApplicationSet: typeof import("./applicationSet").Applicati
10
10
  export { ClusterArgs, ClusterState } from "./cluster";
11
11
  export type Cluster = import("./cluster").Cluster;
12
12
  export declare const Cluster: typeof import("./cluster").Cluster;
13
- export { ProjectArgs, ProjectState } from "./project";
14
- export type Project = import("./project").Project;
15
- export declare const Project: typeof import("./project").Project;
16
- export { ProjectTokenArgs, ProjectTokenState } from "./projectToken";
17
- export type ProjectToken = import("./projectToken").ProjectToken;
18
- export declare const ProjectToken: typeof import("./projectToken").ProjectToken;
19
- export { ProviderArgs } from "./provider";
20
- export type Provider = import("./provider").Provider;
21
- export declare const Provider: typeof import("./provider").Provider;
22
- export { RepositoryArgs, RepositoryState } from "./repository";
23
- export type Repository = import("./repository").Repository;
24
- export declare const Repository: typeof import("./repository").Repository;
25
- export { RepositoryCertificateArgs, RepositoryCertificateState } from "./repositoryCertificate";
26
- export type RepositoryCertificate = import("./repositoryCertificate").RepositoryCertificate;
27
- export declare const RepositoryCertificate: typeof import("./repositoryCertificate").RepositoryCertificate;
28
- export { RepositoryCredentialsArgs, RepositoryCredentialsState } from "./repositoryCredentials";
29
- export type RepositoryCredentials = import("./repositoryCredentials").RepositoryCredentials;
30
- export declare const RepositoryCredentials: typeof import("./repositoryCredentials").RepositoryCredentials;
13
+ export * from "./provider";
31
14
  import * as config from "./config";
32
15
  import * as types from "./types";
33
16
  export { config, types, };
package/index.js CHANGED
@@ -1,8 +1,22 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
4
18
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.types = exports.config = exports.RepositoryCredentials = exports.RepositoryCertificate = exports.Repository = exports.Provider = exports.ProjectToken = exports.Project = exports.Cluster = exports.ApplicationSet = exports.Application = exports.AccountToken = void 0;
19
+ exports.types = exports.config = exports.Cluster = exports.ApplicationSet = exports.Application = exports.AccountToken = void 0;
6
20
  const pulumi = require("@pulumi/pulumi");
7
21
  const utilities = require("./utilities");
8
22
  exports.AccountToken = null;
@@ -13,18 +27,8 @@ exports.ApplicationSet = null;
13
27
  utilities.lazyLoad(exports, ["ApplicationSet"], () => require("./applicationSet"));
14
28
  exports.Cluster = null;
15
29
  utilities.lazyLoad(exports, ["Cluster"], () => require("./cluster"));
16
- exports.Project = null;
17
- utilities.lazyLoad(exports, ["Project"], () => require("./project"));
18
- exports.ProjectToken = null;
19
- utilities.lazyLoad(exports, ["ProjectToken"], () => require("./projectToken"));
20
- exports.Provider = null;
21
- utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
22
- exports.Repository = null;
23
- utilities.lazyLoad(exports, ["Repository"], () => require("./repository"));
24
- exports.RepositoryCertificate = null;
25
- utilities.lazyLoad(exports, ["RepositoryCertificate"], () => require("./repositoryCertificate"));
26
- exports.RepositoryCredentials = null;
27
- utilities.lazyLoad(exports, ["RepositoryCredentials"], () => require("./repositoryCredentials"));
30
+ __exportStar(require("./provider"), exports);
31
+ const provider_1 = require("./provider");
28
32
  // Export sub-modules:
29
33
  const config = require("./config");
30
34
  exports.config = config;
@@ -42,16 +46,6 @@ const _module = {
42
46
  return new exports.ApplicationSet(name, undefined, { urn });
43
47
  case "argocd:index/cluster:Cluster":
44
48
  return new exports.Cluster(name, undefined, { urn });
45
- case "argocd:index/project:Project":
46
- return new exports.Project(name, undefined, { urn });
47
- case "argocd:index/projectToken:ProjectToken":
48
- return new exports.ProjectToken(name, undefined, { urn });
49
- case "argocd:index/repository:Repository":
50
- return new exports.Repository(name, undefined, { urn });
51
- case "argocd:index/repositoryCertificate:RepositoryCertificate":
52
- return new exports.RepositoryCertificate(name, undefined, { urn });
53
- case "argocd:index/repositoryCredentials:RepositoryCredentials":
54
- return new exports.RepositoryCredentials(name, undefined, { urn });
55
49
  default:
56
50
  throw new Error(`unknown resource type ${type}`);
57
51
  }
@@ -61,18 +55,13 @@ pulumi.runtime.registerResourceModule("argocd", "index/accountToken", _module);
61
55
  pulumi.runtime.registerResourceModule("argocd", "index/application", _module);
62
56
  pulumi.runtime.registerResourceModule("argocd", "index/applicationSet", _module);
63
57
  pulumi.runtime.registerResourceModule("argocd", "index/cluster", _module);
64
- pulumi.runtime.registerResourceModule("argocd", "index/project", _module);
65
- pulumi.runtime.registerResourceModule("argocd", "index/projectToken", _module);
66
- pulumi.runtime.registerResourceModule("argocd", "index/repository", _module);
67
- pulumi.runtime.registerResourceModule("argocd", "index/repositoryCertificate", _module);
68
- pulumi.runtime.registerResourceModule("argocd", "index/repositoryCredentials", _module);
69
58
  pulumi.runtime.registerResourcePackage("argocd", {
70
59
  version: utilities.getVersion(),
71
60
  constructProvider: (name, type, urn) => {
72
61
  if (type !== "pulumi:providers:argocd") {
73
62
  throw new Error(`unknown provider type ${type}`);
74
63
  }
75
- return new exports.Provider(name, undefined, { urn });
64
+ return new provider_1.Provider(name, undefined, { urn });
76
65
  },
77
66
  });
78
67
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAIlE,QAAA,WAAW,GAA+C,IAAW,CAAC;AACnF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;AAIhE,QAAA,cAAc,GAAqD,IAAW,CAAC;AAC5F,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAItE,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EA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;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;AAC9E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA;AAChF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,eAAe,EAAE,OAAO,CAAC,CAAA;AACzE,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,QAAQ,EAAE;IAC7C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,yBAAyB,EAAE;YACpC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@three14/pulumi-argocd",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "A Pulumi package for creating and managing Argo CD resources.",
5
5
  "keywords": [
6
6
  "argocd",
@@ -16,13 +16,13 @@
16
16
  "@pulumi/pulumi": "^3.142.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/node": "^14",
19
+ "@types/node": "^18",
20
20
  "typescript": "^4.3.5"
21
21
  },
22
22
  "pulumi": {
23
23
  "resource": true,
24
24
  "name": "argocd",
25
- "version": "1.0.1",
25
+ "version": "1.1.0",
26
26
  "server": "https://github.com/Three141/pulumi-argocd/releases/download/v${VERSION}/"
27
27
  }
28
28
  }
package/provider.d.ts CHANGED
@@ -13,8 +13,7 @@ export declare class Provider extends pulumi.ProviderResource {
13
13
  */
14
14
  static isInstance(obj: any): obj is Provider;
15
15
  /**
16
- * ArgoCD authentication token, takes precedence over `username`/`password`. Can be set through the `ARGOCD_AUTH_TOKEN`
17
- * environment variable.
16
+ * ArgoCD authentication token, takes precedence over `username`/`password`. Can be set through the `ARGOCD_AUTH_TOKEN` environment variable.
18
17
  */
19
18
  readonly authToken: pulumi.Output<string | undefined>;
20
19
  /**
@@ -30,18 +29,15 @@ export declare class Provider extends pulumi.ProviderResource {
30
29
  */
31
30
  readonly clientCertKey: pulumi.Output<string | undefined>;
32
31
  /**
33
- * Override the default config path of `$HOME/.config/argocd/config`. Only relevant when `useLocalConfig`. Can be set
34
- * through the `ARGOCD_CONFIG_PATH` environment variable.
32
+ * Override the default config path of `$HOME/.config/argocd/config`. Only relevant when `useLocalConfig`. Can be set through the `ARGOCD_CONFIG_PATH` environment variable.
35
33
  */
36
34
  readonly configPath: pulumi.Output<string | undefined>;
37
35
  /**
38
- * Context to choose when using a local ArgoCD config file. Only relevant when `useLocalConfig`. Can be set through
39
- * `ARGOCD_CONTEXT` environment variable.
36
+ * Context to choose when using a local ArgoCD config file. Only relevant when `useLocalConfig`. Can be set through `ARGOCD_CONTEXT` environment variable.
40
37
  */
41
38
  readonly context: pulumi.Output<string | undefined>;
42
39
  /**
43
- * Use the gRPC web proxy client and set the web root, e.g. `argo-cd`. Useful if the Argo CD server is behind a proxy at a
44
- * non-root path.
40
+ * Use the gRPC web proxy client and set the web root, e.g. `argo-cd`. Useful if the Argo CD server is behind a proxy at a non-root path.
45
41
  */
46
42
  readonly grpcWebRootPath: pulumi.Output<string | undefined>;
47
43
  /**
@@ -72,14 +68,17 @@ export declare class Provider extends pulumi.ProviderResource {
72
68
  * @param opts A bag of options that control this resource's behavior.
73
69
  */
74
70
  constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
71
+ /**
72
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
73
+ */
74
+ terraformConfig(): pulumi.Output<Provider.TerraformConfigResult>;
75
75
  }
76
76
  /**
77
77
  * The set of arguments for constructing a Provider resource.
78
78
  */
79
79
  export interface ProviderArgs {
80
80
  /**
81
- * ArgoCD authentication token, takes precedence over `username`/`password`. Can be set through the `ARGOCD_AUTH_TOKEN`
82
- * environment variable.
81
+ * ArgoCD authentication token, takes precedence over `username`/`password`. Can be set through the `ARGOCD_AUTH_TOKEN` environment variable.
83
82
  */
84
83
  authToken?: pulumi.Input<string>;
85
84
  /**
@@ -95,24 +94,22 @@ export interface ProviderArgs {
95
94
  */
96
95
  clientCertKey?: pulumi.Input<string>;
97
96
  /**
98
- * Override the default config path of `$HOME/.config/argocd/config`. Only relevant when `useLocalConfig`. Can be set
99
- * through the `ARGOCD_CONFIG_PATH` environment variable.
97
+ * Override the default config path of `$HOME/.config/argocd/config`. Only relevant when `useLocalConfig`. Can be set through the `ARGOCD_CONFIG_PATH` environment variable.
100
98
  */
101
99
  configPath?: pulumi.Input<string>;
102
100
  /**
103
- * Context to choose when using a local ArgoCD config file. Only relevant when `useLocalConfig`. Can be set through
104
- * `ARGOCD_CONTEXT` environment variable.
101
+ * Context to choose when using a local ArgoCD config file. Only relevant when `useLocalConfig`. Can be set through `ARGOCD_CONTEXT` environment variable.
105
102
  */
106
103
  context?: pulumi.Input<string>;
107
104
  /**
108
- * Configure direct access using Kubernetes API server. **Warning**: this feature works by starting a local ArgoCD API
109
- * server that talks directly to the Kubernetes API using the **current context in the default kubeconfig**
110
- * (`~/.kube/config`). This behavior cannot be overridden using either environment variables or the `kubernetes` block in
111
- * the provider configuration at present). If the server fails to start (e.g. your kubeconfig is misconfigured) then the
112
- * provider will fail as a result of the `argocd` module forcing it to exit and no logs will be available to help you debug
113
- * this. The error message will be similar to > `The plugin encountered an error, and failed to respond to the
114
- * plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.` To debug this, you will need to
115
- * login via the ArgoCD CLI using `argocd login --core` and then running an operation. E.g. `argocd app list`.
105
+ * Configure direct access using Kubernetes API server.
106
+ *
107
+ * **Warning**: this feature works by starting a local ArgoCD API server that talks directly to the Kubernetes API using the **current context in the default kubeconfig** (`~/.kube/config`). This behavior cannot be overridden using either environment variables or the `kubernetes` block in the provider configuration at present).
108
+ *
109
+ * If the server fails to start (e.g. your kubeconfig is misconfigured) then the provider will fail as a result of the `argocd` module forcing it to exit and no logs will be available to help you debug this. The error message will be similar to
110
+ * > `The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ReadResource call. The plugin logs may contain more details.`
111
+ *
112
+ * To debug this, you will need to login via the ArgoCD CLI using `argocd login --core` and then running an operation. E.g. `argocd app list`.
116
113
  */
117
114
  core?: pulumi.Input<boolean>;
118
115
  /**
@@ -120,8 +117,7 @@ export interface ProviderArgs {
120
117
  */
121
118
  grpcWeb?: pulumi.Input<boolean>;
122
119
  /**
123
- * Use the gRPC web proxy client and set the web root, e.g. `argo-cd`. Useful if the Argo CD server is behind a proxy at a
124
- * non-root path.
120
+ * Use the gRPC web proxy client and set the web root, e.g. `argo-cd`. Useful if the Argo CD server is behind a proxy at a non-root path.
125
121
  */
126
122
  grpcWebRootPath?: pulumi.Input<string>;
127
123
  /**
@@ -133,9 +129,7 @@ export interface ProviderArgs {
133
129
  */
134
130
  insecure?: pulumi.Input<boolean>;
135
131
  /**
136
- * Kubernetes configuration overrides. Only relevant when `portForward = true` or `portForwardWithNamespace = "foo"`. The
137
- * kubeconfig file that is used can be overridden using the [`KUBECONFIG` environment
138
- * variable](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable)).
132
+ * Kubernetes configuration overrides. Only relevant when `portForward = true` or `portForwardWithNamespace = "foo"`. The kubeconfig file that is used can be overridden using the [`KUBECONFIG` environment variable](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#the-kubeconfig-environment-variable)).
139
133
  */
140
134
  kubernetes?: pulumi.Input<inputs.ProviderKubernetes>;
141
135
  /**
@@ -159,8 +153,7 @@ export interface ProviderArgs {
159
153
  */
160
154
  serverAddr?: pulumi.Input<string>;
161
155
  /**
162
- * Use the authentication settings found in the local config file. Useful when you have previously logged in using SSO.
163
- * Conflicts with `authToken`, `username` and `password`.
156
+ * Use the authentication settings found in the local config file. Useful when you have previously logged in using SSO. Conflicts with `authToken`, `username` and `password`.
164
157
  */
165
158
  useLocalConfig?: pulumi.Input<boolean>;
166
159
  /**
@@ -172,3 +165,13 @@ export interface ProviderArgs {
172
165
  */
173
166
  username?: pulumi.Input<string>;
174
167
  }
168
+ export declare namespace Provider {
169
+ /**
170
+ * The results of the Provider.terraformConfig method.
171
+ */
172
+ interface TerraformConfigResult {
173
+ readonly result: {
174
+ [key: string]: any;
175
+ };
176
+ }
177
+ }
package/provider.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Provider = void 0;
@@ -33,32 +33,40 @@ class Provider extends pulumi.ProviderResource {
33
33
  let resourceInputs = {};
34
34
  opts = opts || {};
35
35
  {
36
- resourceInputs["authToken"] = (args === null || args === void 0 ? void 0 : args.authToken) ? pulumi.secret(args.authToken) : undefined;
37
- resourceInputs["certFile"] = args ? args.certFile : undefined;
38
- resourceInputs["clientCertFile"] = args ? args.clientCertFile : undefined;
39
- resourceInputs["clientCertKey"] = args ? args.clientCertKey : undefined;
40
- resourceInputs["configPath"] = args ? args.configPath : undefined;
41
- resourceInputs["context"] = args ? args.context : undefined;
42
- resourceInputs["core"] = pulumi.output(args ? args.core : undefined).apply(JSON.stringify);
43
- resourceInputs["grpcWeb"] = pulumi.output(args ? args.grpcWeb : undefined).apply(JSON.stringify);
44
- resourceInputs["grpcWebRootPath"] = args ? args.grpcWebRootPath : undefined;
45
- resourceInputs["headers"] = pulumi.output(args ? args.headers : undefined).apply(JSON.stringify);
46
- resourceInputs["insecure"] = pulumi.output(args ? args.insecure : undefined).apply(JSON.stringify);
47
- resourceInputs["kubernetes"] = pulumi.output(args ? args.kubernetes : undefined).apply(JSON.stringify);
48
- resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
49
- resourceInputs["plainText"] = pulumi.output(args ? args.plainText : undefined).apply(JSON.stringify);
50
- resourceInputs["portForward"] = pulumi.output(args ? args.portForward : undefined).apply(JSON.stringify);
51
- resourceInputs["portForwardWithNamespace"] = args ? args.portForwardWithNamespace : undefined;
52
- resourceInputs["serverAddr"] = args ? args.serverAddr : undefined;
53
- resourceInputs["useLocalConfig"] = pulumi.output(args ? args.useLocalConfig : undefined).apply(JSON.stringify);
54
- resourceInputs["userAgent"] = args ? args.userAgent : undefined;
55
- resourceInputs["username"] = args ? args.username : undefined;
36
+ resourceInputs["authToken"] = args?.authToken ? pulumi.secret(args.authToken) : undefined;
37
+ resourceInputs["certFile"] = args?.certFile;
38
+ resourceInputs["clientCertFile"] = args?.clientCertFile;
39
+ resourceInputs["clientCertKey"] = args?.clientCertKey;
40
+ resourceInputs["configPath"] = args?.configPath;
41
+ resourceInputs["context"] = args?.context;
42
+ resourceInputs["core"] = pulumi.output(args?.core).apply(JSON.stringify);
43
+ resourceInputs["grpcWeb"] = pulumi.output(args?.grpcWeb).apply(JSON.stringify);
44
+ resourceInputs["grpcWebRootPath"] = args?.grpcWebRootPath;
45
+ resourceInputs["headers"] = pulumi.output(args?.headers).apply(JSON.stringify);
46
+ resourceInputs["insecure"] = pulumi.output(args?.insecure).apply(JSON.stringify);
47
+ resourceInputs["kubernetes"] = pulumi.output(args?.kubernetes).apply(JSON.stringify);
48
+ resourceInputs["password"] = args?.password ? pulumi.secret(args.password) : undefined;
49
+ resourceInputs["plainText"] = pulumi.output(args?.plainText).apply(JSON.stringify);
50
+ resourceInputs["portForward"] = pulumi.output(args?.portForward).apply(JSON.stringify);
51
+ resourceInputs["portForwardWithNamespace"] = args?.portForwardWithNamespace;
52
+ resourceInputs["serverAddr"] = args?.serverAddr;
53
+ resourceInputs["useLocalConfig"] = pulumi.output(args?.useLocalConfig).apply(JSON.stringify);
54
+ resourceInputs["userAgent"] = args?.userAgent;
55
+ resourceInputs["username"] = args?.username;
56
56
  }
57
57
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
58
58
  const secretOpts = { additionalSecretOutputs: ["authToken", "password"] };
59
59
  opts = pulumi.mergeOptions(opts, secretOpts);
60
60
  super(Provider.__pulumiType, name, resourceInputs, opts);
61
61
  }
62
+ /**
63
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
64
+ */
65
+ terraformConfig() {
66
+ return pulumi.runtime.call("pulumi:providers:argocd/terraformConfig", {
67
+ "__self__": this,
68
+ }, this);
69
+ }
62
70
  }
63
71
  exports.Provider = Provider;
64
72
  /** @internal */
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAuDD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,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AC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,eAAe;QACX,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE;YAClE,UAAU,EAAE,IAAI;SACnB,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;;AA7GL,4BA8GC;AA7GG,gBAAgB;AACO,qBAAY,GAAG,QAAQ,CAAC"}
package/types/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.output = exports.input = void 0;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,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,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}