@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
package/config/vars.js ADDED
@@ -0,0 +1,127 @@
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
+ const pulumi = require("@pulumi/pulumi");
6
+ const __config = new pulumi.Config("argocd");
7
+ Object.defineProperty(exports, "authToken", {
8
+ get() {
9
+ return __config.get("authToken");
10
+ },
11
+ enumerable: true,
12
+ });
13
+ Object.defineProperty(exports, "certFile", {
14
+ get() {
15
+ return __config.get("certFile");
16
+ },
17
+ enumerable: true,
18
+ });
19
+ Object.defineProperty(exports, "clientCertFile", {
20
+ get() {
21
+ return __config.get("clientCertFile");
22
+ },
23
+ enumerable: true,
24
+ });
25
+ Object.defineProperty(exports, "clientCertKey", {
26
+ get() {
27
+ return __config.get("clientCertKey");
28
+ },
29
+ enumerable: true,
30
+ });
31
+ Object.defineProperty(exports, "configPath", {
32
+ get() {
33
+ return __config.get("configPath");
34
+ },
35
+ enumerable: true,
36
+ });
37
+ Object.defineProperty(exports, "context", {
38
+ get() {
39
+ return __config.get("context");
40
+ },
41
+ enumerable: true,
42
+ });
43
+ Object.defineProperty(exports, "core", {
44
+ get() {
45
+ return __config.getObject("core");
46
+ },
47
+ enumerable: true,
48
+ });
49
+ Object.defineProperty(exports, "grpcWeb", {
50
+ get() {
51
+ return __config.getObject("grpcWeb");
52
+ },
53
+ enumerable: true,
54
+ });
55
+ Object.defineProperty(exports, "grpcWebRootPath", {
56
+ get() {
57
+ return __config.get("grpcWebRootPath");
58
+ },
59
+ enumerable: true,
60
+ });
61
+ Object.defineProperty(exports, "headers", {
62
+ get() {
63
+ return __config.getObject("headers");
64
+ },
65
+ enumerable: true,
66
+ });
67
+ Object.defineProperty(exports, "insecure", {
68
+ get() {
69
+ return __config.getObject("insecure");
70
+ },
71
+ enumerable: true,
72
+ });
73
+ Object.defineProperty(exports, "kubernetes", {
74
+ get() {
75
+ return __config.getObject("kubernetes");
76
+ },
77
+ enumerable: true,
78
+ });
79
+ Object.defineProperty(exports, "password", {
80
+ get() {
81
+ return __config.get("password");
82
+ },
83
+ enumerable: true,
84
+ });
85
+ Object.defineProperty(exports, "plainText", {
86
+ get() {
87
+ return __config.getObject("plainText");
88
+ },
89
+ enumerable: true,
90
+ });
91
+ Object.defineProperty(exports, "portForward", {
92
+ get() {
93
+ return __config.getObject("portForward");
94
+ },
95
+ enumerable: true,
96
+ });
97
+ Object.defineProperty(exports, "portForwardWithNamespace", {
98
+ get() {
99
+ return __config.get("portForwardWithNamespace");
100
+ },
101
+ enumerable: true,
102
+ });
103
+ Object.defineProperty(exports, "serverAddr", {
104
+ get() {
105
+ return __config.get("serverAddr");
106
+ },
107
+ enumerable: true,
108
+ });
109
+ Object.defineProperty(exports, "useLocalConfig", {
110
+ get() {
111
+ return __config.getObject("useLocalConfig");
112
+ },
113
+ enumerable: true,
114
+ });
115
+ Object.defineProperty(exports, "userAgent", {
116
+ get() {
117
+ return __config.get("userAgent");
118
+ },
119
+ enumerable: true,
120
+ });
121
+ Object.defineProperty(exports, "username", {
122
+ get() {
123
+ return __config.get("username");
124
+ },
125
+ enumerable: true,
126
+ });
127
+ //# sourceMappingURL=vars.js.map
@@ -0,0 +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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0BAA0B,EAAE;IACvD,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;IACpD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE;IACzC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE;IAC7C,GAAG;QACC,OAAO,QAAQ,CAAC,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 ADDED
@@ -0,0 +1,33 @@
1
+ export { AccountTokenArgs, AccountTokenState } from "./accountToken";
2
+ export type AccountToken = import("./accountToken").AccountToken;
3
+ export declare const AccountToken: typeof import("./accountToken").AccountToken;
4
+ export { ApplicationArgs, ApplicationState } from "./application";
5
+ export type Application = import("./application").Application;
6
+ export declare const Application: typeof import("./application").Application;
7
+ export { ApplicationSetArgs, ApplicationSetState } from "./applicationSet";
8
+ export type ApplicationSet = import("./applicationSet").ApplicationSet;
9
+ export declare const ApplicationSet: typeof import("./applicationSet").ApplicationSet;
10
+ export { ClusterArgs, ClusterState } from "./cluster";
11
+ export type Cluster = import("./cluster").Cluster;
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;
31
+ import * as config from "./config";
32
+ import * as types from "./types";
33
+ export { config, types, };
package/index.js ADDED
@@ -0,0 +1,78 @@
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.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;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ exports.AccountToken = null;
9
+ utilities.lazyLoad(exports, ["AccountToken"], () => require("./accountToken"));
10
+ exports.Application = null;
11
+ utilities.lazyLoad(exports, ["Application"], () => require("./application"));
12
+ exports.ApplicationSet = null;
13
+ utilities.lazyLoad(exports, ["ApplicationSet"], () => require("./applicationSet"));
14
+ exports.Cluster = null;
15
+ 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"));
28
+ // Export sub-modules:
29
+ const config = require("./config");
30
+ exports.config = config;
31
+ const types = require("./types");
32
+ exports.types = types;
33
+ const _module = {
34
+ version: utilities.getVersion(),
35
+ construct: (name, type, urn) => {
36
+ switch (type) {
37
+ case "argocd:index/accountToken:AccountToken":
38
+ return new exports.AccountToken(name, undefined, { urn });
39
+ case "argocd:index/application:Application":
40
+ return new exports.Application(name, undefined, { urn });
41
+ case "argocd:index/applicationSet:ApplicationSet":
42
+ return new exports.ApplicationSet(name, undefined, { urn });
43
+ case "argocd:index/cluster:Cluster":
44
+ 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
+ default:
56
+ throw new Error(`unknown resource type ${type}`);
57
+ }
58
+ },
59
+ };
60
+ pulumi.runtime.registerResourceModule("argocd", "index/accountToken", _module);
61
+ pulumi.runtime.registerResourceModule("argocd", "index/application", _module);
62
+ pulumi.runtime.registerResourceModule("argocd", "index/applicationSet", _module);
63
+ 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
+ pulumi.runtime.registerResourcePackage("argocd", {
70
+ version: utilities.getVersion(),
71
+ constructProvider: (name, type, urn) => {
72
+ if (type !== "pulumi:providers:argocd") {
73
+ throw new Error(`unknown provider type ${type}`);
74
+ }
75
+ return new exports.Provider(name, undefined, { urn });
76
+ },
77
+ });
78
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +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,C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G,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@three14/pulumi-argocd",
3
+ "version": "0.1.0",
4
+ "description": "A Pulumi package for creating and managing Argo CD resources.",
5
+ "keywords": [
6
+ "argocd",
7
+ "category/cloud"
8
+ ],
9
+ "homepage": "https://argoproj.github.io",
10
+ "repository": "https://github.com/Three141/pulumi-argocd",
11
+ "license": "Apache-2.0",
12
+ "scripts": {
13
+ "build": "tsc"
14
+ },
15
+ "dependencies": {
16
+ "@pulumi/pulumi": "^3.142.0"
17
+ },
18
+ "devDependencies": {
19
+ "@types/node": "^14",
20
+ "typescript": "^4.3.5"
21
+ },
22
+ "pulumi": {
23
+ "resource": true,
24
+ "name": "argocd",
25
+ "version": "0.1.0",
26
+ "server": "https://github.com/Three141/pulumi-argocd/releases/download/v${VERSION}/"
27
+ }
28
+ }
package/project.d.ts ADDED
@@ -0,0 +1,198 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Manages [projects](https://argo-cd.readthedocs.io/en/stable/user-guide/projects/) within ArgoCD.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as argocd from "@three14/pulumi-argocd";
12
+ *
13
+ * const myproject = new argocd.Project("myproject", {
14
+ * metadata: {
15
+ * name: "myproject",
16
+ * namespace: "argocd",
17
+ * labels: {
18
+ * acceptance: "true",
19
+ * },
20
+ * annotations: {
21
+ * "this.is.a.really.long.nested.key": "yes, really!",
22
+ * },
23
+ * },
24
+ * spec: {
25
+ * description: "simple project",
26
+ * sourceNamespaces: ["argocd"],
27
+ * sourceRepos: ["*"],
28
+ * destinations: [
29
+ * {
30
+ * server: "https://kubernetes.default.svc",
31
+ * namespace: "default",
32
+ * },
33
+ * {
34
+ * server: "https://kubernetes.default.svc",
35
+ * namespace: "foo",
36
+ * },
37
+ * {
38
+ * name: "anothercluster",
39
+ * namespace: "bar",
40
+ * },
41
+ * ],
42
+ * clusterResourceBlacklists: [{
43
+ * group: "*",
44
+ * kind: "*",
45
+ * }],
46
+ * clusterResourceWhitelists: [
47
+ * {
48
+ * group: "rbac.authorization.k8s.io",
49
+ * kind: "ClusterRoleBinding",
50
+ * },
51
+ * {
52
+ * group: "rbac.authorization.k8s.io",
53
+ * kind: "ClusterRole",
54
+ * },
55
+ * ],
56
+ * namespaceResourceBlacklists: [{
57
+ * group: "networking.k8s.io",
58
+ * kind: "Ingress",
59
+ * }],
60
+ * namespaceResourceWhitelists: [{
61
+ * group: "*",
62
+ * kind: "*",
63
+ * }],
64
+ * orphanedResources: {
65
+ * warn: true,
66
+ * ignores: [
67
+ * {
68
+ * group: "apps/v1",
69
+ * kind: "Deployment",
70
+ * name: "ignored1",
71
+ * },
72
+ * {
73
+ * group: "apps/v1",
74
+ * kind: "Deployment",
75
+ * name: "ignored2",
76
+ * },
77
+ * ],
78
+ * },
79
+ * roles: [
80
+ * {
81
+ * name: "testrole",
82
+ * policies: [
83
+ * "p, proj:myproject:testrole, applications, override, myproject/*, allow",
84
+ * "p, proj:myproject:testrole, applications, sync, myproject/*, allow",
85
+ * "p, proj:myproject:testrole, clusters, get, myproject/*, allow",
86
+ * "p, proj:myproject:testrole, repositories, create, myproject/*, allow",
87
+ * "p, proj:myproject:testrole, repositories, delete, myproject/*, allow",
88
+ * "p, proj:myproject:testrole, repositories, update, myproject/*, allow",
89
+ * "p, proj:myproject:testrole, logs, get, myproject/*, allow",
90
+ * "p, proj:myproject:testrole, exec, create, myproject/*, allow",
91
+ * ],
92
+ * },
93
+ * {
94
+ * name: "anotherrole",
95
+ * policies: [
96
+ * "p, proj:myproject:testrole, applications, get, myproject/*, allow",
97
+ * "p, proj:myproject:testrole, applications, sync, myproject/*, deny",
98
+ * ],
99
+ * },
100
+ * ],
101
+ * syncWindows: [
102
+ * {
103
+ * kind: "allow",
104
+ * applications: ["api-*"],
105
+ * clusters: ["*"],
106
+ * namespaces: ["*"],
107
+ * duration: "3600s",
108
+ * schedule: "10 1 * * *",
109
+ * manualSync: true,
110
+ * },
111
+ * {
112
+ * kind: "deny",
113
+ * applications: ["foo"],
114
+ * clusters: ["in-cluster"],
115
+ * namespaces: ["default"],
116
+ * duration: "12h",
117
+ * schedule: "22 1 5 * *",
118
+ * manualSync: false,
119
+ * timezone: "Europe/London",
120
+ * },
121
+ * ],
122
+ * signatureKeys: [
123
+ * "4AEE18F83AFDEB23",
124
+ * "07E34825A909B250",
125
+ * ],
126
+ * },
127
+ * });
128
+ * ```
129
+ *
130
+ * ## Import
131
+ *
132
+ * Projects can be imported using the project name.
133
+ *
134
+ * Example:
135
+ *
136
+ * ```sh
137
+ * $ pulumi import argocd:index/project:Project myproject myproject
138
+ * ```
139
+ */
140
+ export declare class Project extends pulumi.CustomResource {
141
+ /**
142
+ * Get an existing Project resource's state with the given name, ID, and optional extra
143
+ * properties used to qualify the lookup.
144
+ *
145
+ * @param name The _unique_ name of the resulting resource.
146
+ * @param id The _unique_ provider ID of the resource to lookup.
147
+ * @param state Any extra arguments used during the lookup.
148
+ * @param opts Optional settings to control the behavior of the CustomResource.
149
+ */
150
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectState, opts?: pulumi.CustomResourceOptions): Project;
151
+ /**
152
+ * Returns true if the given object is an instance of Project. This is designed to work even
153
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
154
+ */
155
+ static isInstance(obj: any): obj is Project;
156
+ /**
157
+ * Standard Kubernetes object metadata. For more info see the [Kubernetes reference](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata).
158
+ */
159
+ readonly metadata: pulumi.Output<outputs.ProjectMetadata>;
160
+ /**
161
+ * ArgoCD AppProject spec.
162
+ */
163
+ readonly spec: pulumi.Output<outputs.ProjectSpec>;
164
+ /**
165
+ * Create a Project resource with the given unique name, arguments, and options.
166
+ *
167
+ * @param name The _unique_ name of the resource.
168
+ * @param args The arguments to use to populate this resource's properties.
169
+ * @param opts A bag of options that control this resource's behavior.
170
+ */
171
+ constructor(name: string, args: ProjectArgs, opts?: pulumi.CustomResourceOptions);
172
+ }
173
+ /**
174
+ * Input properties used for looking up and filtering Project resources.
175
+ */
176
+ export interface ProjectState {
177
+ /**
178
+ * Standard Kubernetes object metadata. For more info see the [Kubernetes reference](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata).
179
+ */
180
+ metadata?: pulumi.Input<inputs.ProjectMetadata>;
181
+ /**
182
+ * ArgoCD AppProject spec.
183
+ */
184
+ spec?: pulumi.Input<inputs.ProjectSpec>;
185
+ }
186
+ /**
187
+ * The set of arguments for constructing a Project resource.
188
+ */
189
+ export interface ProjectArgs {
190
+ /**
191
+ * Standard Kubernetes object metadata. For more info see the [Kubernetes reference](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata).
192
+ */
193
+ metadata: pulumi.Input<inputs.ProjectMetadata>;
194
+ /**
195
+ * ArgoCD AppProject spec.
196
+ */
197
+ spec: pulumi.Input<inputs.ProjectSpec>;
198
+ }
package/project.js ADDED
@@ -0,0 +1,193 @@
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.Project = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages [projects](https://argo-cd.readthedocs.io/en/stable/user-guide/projects/) 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
+ * const myproject = new argocd.Project("myproject", {
18
+ * metadata: {
19
+ * name: "myproject",
20
+ * namespace: "argocd",
21
+ * labels: {
22
+ * acceptance: "true",
23
+ * },
24
+ * annotations: {
25
+ * "this.is.a.really.long.nested.key": "yes, really!",
26
+ * },
27
+ * },
28
+ * spec: {
29
+ * description: "simple project",
30
+ * sourceNamespaces: ["argocd"],
31
+ * sourceRepos: ["*"],
32
+ * destinations: [
33
+ * {
34
+ * server: "https://kubernetes.default.svc",
35
+ * namespace: "default",
36
+ * },
37
+ * {
38
+ * server: "https://kubernetes.default.svc",
39
+ * namespace: "foo",
40
+ * },
41
+ * {
42
+ * name: "anothercluster",
43
+ * namespace: "bar",
44
+ * },
45
+ * ],
46
+ * clusterResourceBlacklists: [{
47
+ * group: "*",
48
+ * kind: "*",
49
+ * }],
50
+ * clusterResourceWhitelists: [
51
+ * {
52
+ * group: "rbac.authorization.k8s.io",
53
+ * kind: "ClusterRoleBinding",
54
+ * },
55
+ * {
56
+ * group: "rbac.authorization.k8s.io",
57
+ * kind: "ClusterRole",
58
+ * },
59
+ * ],
60
+ * namespaceResourceBlacklists: [{
61
+ * group: "networking.k8s.io",
62
+ * kind: "Ingress",
63
+ * }],
64
+ * namespaceResourceWhitelists: [{
65
+ * group: "*",
66
+ * kind: "*",
67
+ * }],
68
+ * orphanedResources: {
69
+ * warn: true,
70
+ * ignores: [
71
+ * {
72
+ * group: "apps/v1",
73
+ * kind: "Deployment",
74
+ * name: "ignored1",
75
+ * },
76
+ * {
77
+ * group: "apps/v1",
78
+ * kind: "Deployment",
79
+ * name: "ignored2",
80
+ * },
81
+ * ],
82
+ * },
83
+ * roles: [
84
+ * {
85
+ * name: "testrole",
86
+ * policies: [
87
+ * "p, proj:myproject:testrole, applications, override, myproject/*, allow",
88
+ * "p, proj:myproject:testrole, applications, sync, myproject/*, allow",
89
+ * "p, proj:myproject:testrole, clusters, get, myproject/*, allow",
90
+ * "p, proj:myproject:testrole, repositories, create, myproject/*, allow",
91
+ * "p, proj:myproject:testrole, repositories, delete, myproject/*, allow",
92
+ * "p, proj:myproject:testrole, repositories, update, myproject/*, allow",
93
+ * "p, proj:myproject:testrole, logs, get, myproject/*, allow",
94
+ * "p, proj:myproject:testrole, exec, create, myproject/*, allow",
95
+ * ],
96
+ * },
97
+ * {
98
+ * name: "anotherrole",
99
+ * policies: [
100
+ * "p, proj:myproject:testrole, applications, get, myproject/*, allow",
101
+ * "p, proj:myproject:testrole, applications, sync, myproject/*, deny",
102
+ * ],
103
+ * },
104
+ * ],
105
+ * syncWindows: [
106
+ * {
107
+ * kind: "allow",
108
+ * applications: ["api-*"],
109
+ * clusters: ["*"],
110
+ * namespaces: ["*"],
111
+ * duration: "3600s",
112
+ * schedule: "10 1 * * *",
113
+ * manualSync: true,
114
+ * },
115
+ * {
116
+ * kind: "deny",
117
+ * applications: ["foo"],
118
+ * clusters: ["in-cluster"],
119
+ * namespaces: ["default"],
120
+ * duration: "12h",
121
+ * schedule: "22 1 5 * *",
122
+ * manualSync: false,
123
+ * timezone: "Europe/London",
124
+ * },
125
+ * ],
126
+ * signatureKeys: [
127
+ * "4AEE18F83AFDEB23",
128
+ * "07E34825A909B250",
129
+ * ],
130
+ * },
131
+ * });
132
+ * ```
133
+ *
134
+ * ## Import
135
+ *
136
+ * Projects can be imported using the project name.
137
+ *
138
+ * Example:
139
+ *
140
+ * ```sh
141
+ * $ pulumi import argocd:index/project:Project myproject myproject
142
+ * ```
143
+ */
144
+ class Project extends pulumi.CustomResource {
145
+ /**
146
+ * Get an existing Project resource's state with the given name, ID, and optional extra
147
+ * properties used to qualify the lookup.
148
+ *
149
+ * @param name The _unique_ name of the resulting resource.
150
+ * @param id The _unique_ provider ID of the resource to lookup.
151
+ * @param state Any extra arguments used during the lookup.
152
+ * @param opts Optional settings to control the behavior of the CustomResource.
153
+ */
154
+ static get(name, id, state, opts) {
155
+ return new Project(name, state, Object.assign(Object.assign({}, opts), { id: id }));
156
+ }
157
+ /**
158
+ * Returns true if the given object is an instance of Project. This is designed to work even
159
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
160
+ */
161
+ static isInstance(obj) {
162
+ if (obj === undefined || obj === null) {
163
+ return false;
164
+ }
165
+ return obj['__pulumiType'] === Project.__pulumiType;
166
+ }
167
+ constructor(name, argsOrState, opts) {
168
+ let resourceInputs = {};
169
+ opts = opts || {};
170
+ if (opts.id) {
171
+ const state = argsOrState;
172
+ resourceInputs["metadata"] = state ? state.metadata : undefined;
173
+ resourceInputs["spec"] = state ? state.spec : undefined;
174
+ }
175
+ else {
176
+ const args = argsOrState;
177
+ if ((!args || args.metadata === undefined) && !opts.urn) {
178
+ throw new Error("Missing required property 'metadata'");
179
+ }
180
+ if ((!args || args.spec === undefined) && !opts.urn) {
181
+ throw new Error("Missing required property 'spec'");
182
+ }
183
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
184
+ resourceInputs["spec"] = args ? args.spec : undefined;
185
+ }
186
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
187
+ super(Project.__pulumiType, name, resourceInputs, opts);
188
+ }
189
+ }
190
+ exports.Project = Project;
191
+ /** @internal */
192
+ Project.__pulumiType = 'argocd:index/project:Project';
193
+ //# sourceMappingURL=project.js.map