aubay-oci-deployer 1.0.0 → 1.0.2
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.
- package/README.md +4 -4
- package/argocd/argocd.js +7 -361
- package/argocd/config.js +1 -21
- package/argocd/interfaces.js +1 -3
- package/compute/compute.js +1 -56
- package/compute/config.js +1 -18
- package/compute/interfaces.js +1 -3
- package/crds/config.js +1 -11
- package/crds/crds.js +1 -42
- package/crds/interfaces.js +1 -3
- package/external-secrets/config.js +1 -12
- package/external-secrets/externalsecrets.js +1 -72
- package/external-secrets/interfaces.js +1 -3
- package/iam/config.js +1 -19
- package/iam/iam.js +1 -33
- package/iam/interfaces.js +1 -3
- package/index.d.ts +5 -34
- package/index.js +1 -74
- package/index.js.map +1 -1
- package/istio/config.js +1 -22
- package/istio/interfaces.js +1 -3
- package/istio/istio.js +1 -263
- package/network/config.js +1 -21
- package/network/interfaces.js +1 -3
- package/network/network.js +1 -218
- package/oke/config.js +1 -27
- package/oke/interfaces.js +1 -3
- package/oke/oke.js +1 -112
- package/package.json +28 -24
- package/region/config.js +1 -11
- package/region/interfaces.js +1 -3
- package/region/region.js +1 -12
- package/region/shortcode.js +1 -22
- package/security/config.js +1 -26
- package/security/interfaces.js +1 -3
- package/security/security.js +1 -79
- package/stacks/apps.d.ts +2 -0
- package/stacks/apps.js +1 -0
- package/stacks/apps.js.map +1 -0
- package/stacks/infra.d.ts +2 -0
- package/stacks/infra.js +1 -0
- package/stacks/infra.js.map +1 -0
- package/stacks/interfaces.d.ts +54 -0
- package/stacks/interfaces.js +1 -0
- package/stacks/interfaces.js.map +1 -0
- package/storage/config.js +1 -23
- package/storage/interfaces.js +1 -3
- package/storage/storage.js +1 -36
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# AUBAY-OCI-DEPLOYER
|
|
2
|
-
|
|
3
|
-
This NPM library provide mechanisms to deploy to OCI (Oracle Cloud Infrastructure)
|
|
4
|
-
|
|
1
|
+
# AUBAY-OCI-DEPLOYER
|
|
2
|
+
|
|
3
|
+
This NPM library provide mechanisms to deploy to OCI (Oracle Cloud Infrastructure)
|
|
4
|
+
|
package/argocd/argocd.js
CHANGED
|
@@ -1,361 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
this.clusters = clusters;
|
|
9
|
-
this.config = config;
|
|
10
|
-
this.opts = opts;
|
|
11
|
-
this.releases = [];
|
|
12
|
-
this.appProjects = [];
|
|
13
|
-
this.applications = [];
|
|
14
|
-
this.externalSecrets = [];
|
|
15
|
-
this.deployToClusters();
|
|
16
|
-
}
|
|
17
|
-
deployToClusters() {
|
|
18
|
-
this.clusters.apply(clusters => {
|
|
19
|
-
// Recolectamos todos los Outputs para cada cluster
|
|
20
|
-
const allClusterValues = clusters.map(c => pulumi.all([c.clusterName, c.kubeconfig]));
|
|
21
|
-
pulumi.all(allClusterValues).apply(resolvedClusters => {
|
|
22
|
-
resolvedClusters.forEach(([clusterName, kubeconfig], i) => {
|
|
23
|
-
const clusterCfg = this.config.clusters.find(c => c.name === clusterName);
|
|
24
|
-
if (!clusterCfg || !clusterCfg.enabled) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const provider = new k8s.Provider(`k8s-provider-argocd-${clusterName}`, { kubeconfig }, this.opts);
|
|
28
|
-
const ns = this.createNamespace(provider, clusterName);
|
|
29
|
-
const release = this.installArgoCdHelm(provider, clusterCfg, ns);
|
|
30
|
-
const esOidc = this.createExternalSecretOidc(provider, clusterCfg, release);
|
|
31
|
-
this.releases.push(release);
|
|
32
|
-
const vs = this.createArgoCdVirtualService(provider, clusterCfg, release);
|
|
33
|
-
if (clusterCfg.appProjects?.length) {
|
|
34
|
-
this.createAppProjectsAndApps(provider, ns, clusterCfg, release);
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
createNamespace(provider, clusterName) {
|
|
41
|
-
return new k8s.core.v1.Namespace(`argocd-ns-${clusterName}`, {
|
|
42
|
-
metadata: { name: this.config.namespace },
|
|
43
|
-
}, { provider, ...this.opts });
|
|
44
|
-
}
|
|
45
|
-
createExternalSecretOidc(provider, clusterCfg, dependsOn) {
|
|
46
|
-
return new k8s.apiextensions.CustomResource(`argocd-oidc-external-secret-${clusterCfg.name}`, {
|
|
47
|
-
apiVersion: "external-secrets.io/v1",
|
|
48
|
-
kind: "ExternalSecret",
|
|
49
|
-
metadata: {
|
|
50
|
-
name: `argocd-oidc-es`,
|
|
51
|
-
namespace: this.config.namespace,
|
|
52
|
-
},
|
|
53
|
-
spec: {
|
|
54
|
-
refreshInterval: "1h",
|
|
55
|
-
secretStoreRef: {
|
|
56
|
-
name: "oci-vault-cluster-secret-store",
|
|
57
|
-
kind: "ClusterSecretStore",
|
|
58
|
-
},
|
|
59
|
-
target: {
|
|
60
|
-
name: `argocd-secret`,
|
|
61
|
-
creationPolicy: "Merge",
|
|
62
|
-
},
|
|
63
|
-
data: [
|
|
64
|
-
{
|
|
65
|
-
secretKey: "oidc.azure.clientSecret",
|
|
66
|
-
remoteRef: {
|
|
67
|
-
key: clusterCfg.azure.vaultSecretAD,
|
|
68
|
-
},
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
},
|
|
72
|
-
}, { provider, dependsOn: [dependsOn], ignoreChanges: ["spec.refreshInterval"] });
|
|
73
|
-
}
|
|
74
|
-
installArgoCdHelm(provider, clusterCfg, ns) {
|
|
75
|
-
const extSecrets = this.createExternalSecretsClusterCredentials(provider, clusterCfg.clusterCredentials);
|
|
76
|
-
const customStyles = this.getCustomStyles(clusterCfg);
|
|
77
|
-
return new k8s.helm.v3.Release(`argocd-${clusterCfg.name}`, {
|
|
78
|
-
chart: "argo-cd",
|
|
79
|
-
version: this.config.helm.chartVersion,
|
|
80
|
-
repositoryOpts: { repo: "https://argoproj.github.io/argo-helm" },
|
|
81
|
-
skipCrds: false,
|
|
82
|
-
namespace: this.config.namespace,
|
|
83
|
-
values: {
|
|
84
|
-
global: { image: { tag: this.config.helm.appVersion } },
|
|
85
|
-
fullnameOverride: "argocd",
|
|
86
|
-
controller: { replicas: clusterCfg.replicaCount },
|
|
87
|
-
repoServer: { replicas: clusterCfg.replicaCount },
|
|
88
|
-
server: {
|
|
89
|
-
replicas: clusterCfg.replicaCount,
|
|
90
|
-
service: {
|
|
91
|
-
type: clusterCfg.serviceType,
|
|
92
|
-
},
|
|
93
|
-
extraArgs: ["--insecure"],
|
|
94
|
-
},
|
|
95
|
-
configs: {
|
|
96
|
-
cm: {
|
|
97
|
-
url: `https://${clusterCfg.domain}`,
|
|
98
|
-
"oidc.config": `
|
|
99
|
-
name: AzureAD
|
|
100
|
-
issuer: https://login.microsoftonline.com/${clusterCfg.azure.tenantId}/v2.0
|
|
101
|
-
clientID: ${clusterCfg.azure.clientId}
|
|
102
|
-
clientSecret: $oidc.azure.clientSecret
|
|
103
|
-
requestedScopes: ["openid", "profile", "email", "offline_access"]
|
|
104
|
-
redirectURI: https://${clusterCfg.domain}/auth/callback
|
|
105
|
-
#userNameKey: email
|
|
106
|
-
#groupsKey: groups --> Añadimos estas dos por si en un futuro queremos granular permisos por grupos. Habilitamos procesamiento del claim groups
|
|
107
|
-
`,
|
|
108
|
-
},
|
|
109
|
-
rbac: {
|
|
110
|
-
"policy.default": "role:admin",
|
|
111
|
-
},
|
|
112
|
-
styles: customStyles
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
}, { provider, dependsOn: [ns, ...extSecrets] });
|
|
116
|
-
}
|
|
117
|
-
createExternalSecretsClusterCredentials(provider, clusterCredentials) {
|
|
118
|
-
const extSecrets = [];
|
|
119
|
-
clusterCredentials.forEach(cCredentials => {
|
|
120
|
-
const es = new k8s.apiextensions.CustomResource(`external-secret-${cCredentials.clusterCredentialVaultSecret}`, {
|
|
121
|
-
apiVersion: "external-secrets.io/v1",
|
|
122
|
-
kind: "ExternalSecret",
|
|
123
|
-
metadata: {
|
|
124
|
-
name: `${cCredentials.clusterCredentialVaultSecret}-es`,
|
|
125
|
-
namespace: this.config.namespace,
|
|
126
|
-
},
|
|
127
|
-
spec: {
|
|
128
|
-
refreshInterval: "1h",
|
|
129
|
-
secretStoreRef: {
|
|
130
|
-
name: "oci-vault-cluster-secret-store",
|
|
131
|
-
kind: "ClusterSecretStore",
|
|
132
|
-
},
|
|
133
|
-
target: {
|
|
134
|
-
name: `${cCredentials.clusterCredentialVaultSecret}-secret`,
|
|
135
|
-
creationPolicy: "Owner",
|
|
136
|
-
template: {
|
|
137
|
-
type: "Opaque",
|
|
138
|
-
metadata: {
|
|
139
|
-
labels: {
|
|
140
|
-
"argocd.argoproj.io/secret-type": "cluster",
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
data: {
|
|
144
|
-
name: cCredentials.name,
|
|
145
|
-
server: cCredentials.server,
|
|
146
|
-
config: pulumi.interpolate `{
|
|
147
|
-
"bearerToken": "{{ .bearerToken }}",
|
|
148
|
-
"tlsClientConfig": {
|
|
149
|
-
"caData": "{{ .caData }}",
|
|
150
|
-
"insecure": false
|
|
151
|
-
}
|
|
152
|
-
}`,
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
dataFrom: [
|
|
157
|
-
{
|
|
158
|
-
extract: {
|
|
159
|
-
key: cCredentials.clusterCredentialVaultSecret,
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
],
|
|
163
|
-
},
|
|
164
|
-
}, { provider, ignoreChanges: ["spec.refreshInterval"] });
|
|
165
|
-
extSecrets.push(es);
|
|
166
|
-
});
|
|
167
|
-
return extSecrets;
|
|
168
|
-
}
|
|
169
|
-
getCustomStyles(cluster) {
|
|
170
|
-
if (!cluster.customStyles) {
|
|
171
|
-
return '';
|
|
172
|
-
}
|
|
173
|
-
const { logoUrl, loginButtonText } = cluster.customStyles;
|
|
174
|
-
let styles = '';
|
|
175
|
-
if (logoUrl) {
|
|
176
|
-
styles += `
|
|
177
|
-
.login__logo img { display: none !important; }
|
|
178
|
-
.login__logo {
|
|
179
|
-
background-image: url("${logoUrl}") !important;
|
|
180
|
-
background-size: contain !important;
|
|
181
|
-
background-repeat: no-repeat !important;
|
|
182
|
-
background-position: center !important;
|
|
183
|
-
height: 120px !important;
|
|
184
|
-
width: 100% !important;
|
|
185
|
-
margin-bottom: 20px !important;
|
|
186
|
-
}
|
|
187
|
-
.sidebar__logo img, .sidebar__logo-container img { display: none !important; }
|
|
188
|
-
.sidebar__version {display: none !important;}
|
|
189
|
-
.sidebar__logo {
|
|
190
|
-
background-image: url("${logoUrl}");
|
|
191
|
-
background-size: 70% !important;
|
|
192
|
-
background-repeat: no-repeat !important;
|
|
193
|
-
background-position: center !important;
|
|
194
|
-
height: 50px !important;
|
|
195
|
-
margin: 10px 0 !important;
|
|
196
|
-
}
|
|
197
|
-
`;
|
|
198
|
-
}
|
|
199
|
-
if (loginButtonText) {
|
|
200
|
-
styles += `
|
|
201
|
-
.login__box_saml .argo-button--xlg span {
|
|
202
|
-
font-size: 0 !important;
|
|
203
|
-
display: block !important;
|
|
204
|
-
}
|
|
205
|
-
.login__box_saml .argo-button--xlg span::before {
|
|
206
|
-
content: "${loginButtonText}" !important;
|
|
207
|
-
font-size: 14px !important;
|
|
208
|
-
visibility: visible !important;
|
|
209
|
-
letter-spacing: normal !important;
|
|
210
|
-
}
|
|
211
|
-
`;
|
|
212
|
-
}
|
|
213
|
-
return styles;
|
|
214
|
-
}
|
|
215
|
-
createArgoCdVirtualService(provider, clusterCfg, dependsOn) {
|
|
216
|
-
const vs = new k8s.apiextensions.CustomResource(`argocd-vs-${clusterCfg.name}`, {
|
|
217
|
-
apiVersion: "networking.istio.io/v1beta1",
|
|
218
|
-
kind: "VirtualService",
|
|
219
|
-
metadata: {
|
|
220
|
-
name: `argocd-vs`,
|
|
221
|
-
namespace: this.config.namespace,
|
|
222
|
-
},
|
|
223
|
-
spec: {
|
|
224
|
-
hosts: [clusterCfg.domain],
|
|
225
|
-
gateways: [`istio-system/gw-private`],
|
|
226
|
-
http: [
|
|
227
|
-
{
|
|
228
|
-
match: [{ uri: { prefix: "/" } }],
|
|
229
|
-
route: [
|
|
230
|
-
{
|
|
231
|
-
destination: {
|
|
232
|
-
host: `argocd-server.${this.config.namespace}.svc.cluster.local`,
|
|
233
|
-
port: { number: 80 },
|
|
234
|
-
},
|
|
235
|
-
},
|
|
236
|
-
],
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
},
|
|
240
|
-
}, { provider, dependsOn: dependsOn ? [dependsOn] : undefined });
|
|
241
|
-
return vs;
|
|
242
|
-
}
|
|
243
|
-
createAppProjectsAndApps(provider, ns, clusterCfg, dependsOn) {
|
|
244
|
-
const baseDepends = dependsOn ? [dependsOn] : [ns];
|
|
245
|
-
(clusterCfg.appProjects ?? []).forEach(proj => {
|
|
246
|
-
const projRes = new k8s.apiextensions.CustomResource(`argocd-project-${proj.name}`, {
|
|
247
|
-
apiVersion: "argoproj.io/v1alpha1",
|
|
248
|
-
kind: "AppProject",
|
|
249
|
-
metadata: {
|
|
250
|
-
name: proj.name,
|
|
251
|
-
namespace: this.config.namespace,
|
|
252
|
-
},
|
|
253
|
-
spec: {
|
|
254
|
-
description: proj.description,
|
|
255
|
-
sourceRepos: proj.sourceRepos.map(s => s.repoURL),
|
|
256
|
-
destinations: proj.destinations,
|
|
257
|
-
clusterResourceWhitelist: proj.clusterResourceWhitelist ? proj.clusterResourceWhitelist : undefined,
|
|
258
|
-
namespaceResourceWhitelist: proj.namespaceResourceWhitelist ? proj.namespaceResourceWhitelist : undefined,
|
|
259
|
-
},
|
|
260
|
-
}, { provider, dependsOn: baseDepends });
|
|
261
|
-
this.appProjects.push(projRes);
|
|
262
|
-
(proj.sourceRepos ?? []).forEach((src, idx) => {
|
|
263
|
-
const appName = this.sanitizeName(`${proj.name}-${idx}`);
|
|
264
|
-
const app = new k8s.apiextensions.CustomResource(`argocd-app-${appName}`, {
|
|
265
|
-
apiVersion: "argoproj.io/v1alpha1",
|
|
266
|
-
kind: "Application",
|
|
267
|
-
metadata: {
|
|
268
|
-
name: appName,
|
|
269
|
-
namespace: this.config.namespace,
|
|
270
|
-
},
|
|
271
|
-
spec: {
|
|
272
|
-
project: proj.name,
|
|
273
|
-
source: {
|
|
274
|
-
repoURL: src.repoURL,
|
|
275
|
-
chart: src.type === "helm" ? src.chart : undefined,
|
|
276
|
-
path: src.path ?? ".",
|
|
277
|
-
targetRevision: src.targetRevision ?? "HEAD",
|
|
278
|
-
helm: src.type === "helm" ? {
|
|
279
|
-
//repo: src.chartRepoURL,
|
|
280
|
-
version: src.chartVersion,
|
|
281
|
-
valueFiles: src.valuesFile ? [src.valuesFile] : undefined,
|
|
282
|
-
values: src.values ?? undefined,
|
|
283
|
-
} : undefined,
|
|
284
|
-
},
|
|
285
|
-
destination: proj.destinations?.[0] ?? { server: "https://kubernetes.default.svc", namespace: "default" },
|
|
286
|
-
syncPolicy: proj.syncPolicy?.automated
|
|
287
|
-
? {
|
|
288
|
-
automated: {
|
|
289
|
-
prune: proj.syncPolicy.prune ?? true,
|
|
290
|
-
selfHeal: proj.syncPolicy.selfHeal ?? true,
|
|
291
|
-
},
|
|
292
|
-
syncOptions: proj.syncPolicy.syncOptions ?? [],
|
|
293
|
-
}
|
|
294
|
-
: undefined,
|
|
295
|
-
},
|
|
296
|
-
}, { provider, dependsOn: [projRes] });
|
|
297
|
-
this.applications.push(app);
|
|
298
|
-
if (src.vaultSecret) {
|
|
299
|
-
const extSecret = this.createExternalSecret(provider, src, app);
|
|
300
|
-
this.externalSecrets.push(extSecret);
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
createExternalSecret(provider, src, dependsOn) {
|
|
306
|
-
return new k8s.apiextensions.CustomResource(`argocd-external-secret-${src.repoURL}`, {
|
|
307
|
-
apiVersion: "external-secrets.io/v1",
|
|
308
|
-
kind: "ExternalSecret",
|
|
309
|
-
metadata: {
|
|
310
|
-
name: `${src.vaultSecret}-es`,
|
|
311
|
-
namespace: this.config.namespace,
|
|
312
|
-
},
|
|
313
|
-
spec: {
|
|
314
|
-
refreshInterval: "1h",
|
|
315
|
-
secretStoreRef: {
|
|
316
|
-
name: "oci-vault-cluster-secret-store", // tu ClusterSecretStore
|
|
317
|
-
kind: "ClusterSecretStore",
|
|
318
|
-
},
|
|
319
|
-
target: {
|
|
320
|
-
name: `${src.vaultSecret}-secret`,
|
|
321
|
-
creationPolicy: "Owner",
|
|
322
|
-
template: {
|
|
323
|
-
metadata: {
|
|
324
|
-
labels: {
|
|
325
|
-
"argocd.argoproj.io/secret-type": "repository",
|
|
326
|
-
},
|
|
327
|
-
},
|
|
328
|
-
},
|
|
329
|
-
},
|
|
330
|
-
data: [
|
|
331
|
-
{
|
|
332
|
-
secretKey: "url",
|
|
333
|
-
remoteRef: {
|
|
334
|
-
key: src.vaultSecret,
|
|
335
|
-
property: "url",
|
|
336
|
-
},
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
secretKey: "username",
|
|
340
|
-
remoteRef: {
|
|
341
|
-
key: src.vaultSecret,
|
|
342
|
-
property: "username",
|
|
343
|
-
},
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
secretKey: "password",
|
|
347
|
-
remoteRef: {
|
|
348
|
-
key: src.vaultSecret,
|
|
349
|
-
property: "password",
|
|
350
|
-
},
|
|
351
|
-
},
|
|
352
|
-
],
|
|
353
|
-
},
|
|
354
|
-
}, { provider, dependsOn: [dependsOn], ignoreChanges: ["spec.refreshInterval"] });
|
|
355
|
-
}
|
|
356
|
-
sanitizeName(name) {
|
|
357
|
-
return name.toLowerCase().replace(/[^a-z0-9.-]/g, "-").replace(/^-+|-+$/g, "").slice(0, 63);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
exports.ArgoCd = ArgoCd;
|
|
361
|
-
//# sourceMappingURL=argocd.js.map
|
|
1
|
+
'use strict';function a0_0x3d93(){const _0x3a6666=['\x20\x20\x20margin:','Namespace','t;\x0a\x20\x20\x20\x20\x20\x20\x20','CustomReso','\x20issuer:\x20h','argocd-app','ver.','kground-re','Apps','0|2|5|7|6|','ervice','dentials','l\x20.argo-bu','bottom:\x2020','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20bac','lumi','crets','Kqwnd','idth:\x20100%','cKGaH','eCJJO','\x20-->\x20Añadi','\x20\x20\x20height:','3215716hoPjgC','\x20\x20\x20\x20font-s','valuesFile','ound-size:','targetRevi','6867536BkIDov','ant;\x0a\x20\x20\x20\x20\x20','back\x0a\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20\x20\x20','clientId','lientSecre','nd-repeat:','clusterNam','display:\x20n','er-argocd-','vaultSecre','domain','!important','dentialVau','go\x20{\x0a\x20\x20\x20\x20\x20','178782jEXitP','g\x20span\x20{\x0a\x20','edentials','e\x20!importa','all','e:\x20url(\x22','s:\x20[\x22openi','one\x20!impor','meKey:\x20ema','config','syncPolicy','repoURL','-secret-','map','default',']\x0a\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20.lo','-es','list','normal\x20!im','ons','serviceTyp','apiextensi','values','le\x22,\x20\x22emai','createArgo','\x20}\x0a\x20\x20\x20\x20\x20\x20\x20','rojectsAnd','https://ku','o-helm','12svmyWE','argocd-vs-',';\x20}\x0a\x20\x20\x20\x20\x20\x20','\x20no-repeat','tton--xlg\x20','nt:\x20\x22','oci-vault-','ClusterSec','descriptio','azure','ize:\x2014px\x20','lay:\x20none\x20','ErdCH','ty:\x20visibl','1964988waDbwu','\x20\x20\x20\x20\x20.logi','sion','NdAgY','Applicatio','core','url','retStore','rnalSecret','IUqRT','el\x20claim\x20g','esourceWhi','\x20\x20\x20\x20\x20\x20.sid','type','opts','ICEkU','important;','ret','ar__versio','enter\x20!imp','nt;\x0a\x20\x20\x20\x20\x20\x20','automated','sClusterCr','HEAD','zfDvL','createExte','spec.refre','gin__logo\x20','v1beta1','https://ar','ame:\x20Azure','\x20\x20visibili','\x20en\x20un\x20fut','slice','gin__box_s','4356465MeUHBz','Release','space','ecret-','telist','vice','networking','\x20url(\x22','-secret','ont-size:\x20','prune','y:\x20block\x20!','CdVirtualS','round-size','ernal-secr','getCustomS','\x20\x20\x20margin-','button--xl',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20','https://','argocd-ext','pjvGE','createName','push','amos\x20proce','applicatio','\x20\x20\x20\x20backgr','er.local','EWQkP','img\x20{\x20disp','sourceRepo','oVkzZ','FoyNc','\x22);\x0a\x20\x20\x20\x20\x20\x20','clusterRes','il\x0a\x20\x20\x20\x20\x20\x20\x20','ogo-contai',':\x20none\x20!im','AD\x0a\x20\x20\x20\x20\x20\x20\x20','.login__lo','-spacing:\x20','ltSecret','eXkry','urce','\x20!importan','role:admin','ourceWhite','mos\x20estas\x20','QPaJy','om/','namespace','forEach','chartVersi','ortant;\x0a\x20\x20','username','onyFP','ckground-p','portant;}\x0a','tyles','tant;\x20}\x0a\x20\x20',':\x20contain\x20','\x20\x20\x20\x20\x20\x20\x20\x20he','\x20\x20\x20\x20\x20\x20\x20\x20\x20f','repository','\x20\x20\x20\x20\x20\x20\x20\x20\x20c','491904CRDOQt','sanitizeNa','GLMvW','createAppP','Opaque','r\x20permisos','und-positi','installArg','ssHNG','et-','s.\x20Habilit','oCdHelm','ExternalSe','shInterval','\x20\x20\x20\x20\x20\x20\x20\x20\x20n','YHqYW','\x20\x20\x20\x20\x20backg','\x20\x20\x20\x20\x20\x20}\x0a\x20\x20','deployToCl','cret-store','I:\x20https:/','apply','interpolat','@pulumi/ku','defineProp','span::befo','ecrets.io/','\x20\x20\x20\x20\x20conte','und-image:','o/v1alpha1','ate','\x20#groupsKe','px\x20!import','portant;\x0a\x20','gZITR','ID:\x20','bernetes.d','l\x22,\x20\x22offli','argocd-ns-','releases','replace','round-imag','em/gw-priv','goproj.git','hSuzT','estedScope','os\x20granula','helm','\x20\x20\x20\x20\x20\x20requ','\x20\x20\x20\x20\x20\x20\x20}\x0a\x20','clusterCre','customStyl','\x22\x20!importa','ArgoCd','hub.io/arg','mportant;\x0a','syncOption','appProject','JTtCb','oidc.azure','ight:\x2050px','HzZyd','cluster','ject-','usters','cxgNe','ebar__logo','argoproj.i','n\x20{display','sidebar__l','bernetes','nnvCC','istio-syst','\x20\x20\x20\x20\x20}\x0a\x20\x20\x20','clusters','Oidc','\x20\x20\x20backgro','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','argo-cd','externalSe','length','AppProject','ftonline.c','cret','.clientSec','mYENS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20','Merge','Owner','\x22)\x20!import','replicaCou','cBquF','0\x20!importa','n__box_sam','c-external','appVersion','ttps://log','argocd-','name','tSecret\x0a\x20\x20','selfHeal','y:\x20groups\x20','ARmCb','destinatio','external-s','AqVqc','.istio.io/','--insecure','25268SqVWtu','dos\x20por\x20si','\x20por\x20grupo','argocd-sec','split','cluster-se'];a0_0x3d93=function(){return _0x3a6666;};return a0_0x3d93();}const a0_0x2e6967=a0_0x4455;(function(_0x2e7354,_0x412810){const _0x3fc724=a0_0x4455,_0x26ff55=_0x2e7354();while(!![]){try{const _0x455130=parseInt(_0x3fc724(0x1d9))/(-0x10f1+-0x153d*-0x1+-0x44b)*(-parseInt(_0x3fc724(0x229))/(0x1*-0x1f83+-0x1e0c+-0x1*-0x3d91))+-parseInt(_0x3fc724(0x237))/(-0x543+-0x39d+-0x5*-0x1c7)+parseInt(_0x3fc724(0x29b))/(-0x1f5d+0x25c5+-0x664)+parseInt(_0x3fc724(0x25a))/(0x4d9*0x8+-0xb1d+-0x1ba6)+-parseInt(_0x3fc724(0x20b))/(-0x716+-0x1*0x7b1+0x9*0x1a5)+-parseInt(_0x3fc724(0x1f7))/(0x3d0*-0x5+-0x1da7*0x1+-0x11*-0x2de)+parseInt(_0x3fc724(0x1fc))/(0x1*-0xfaf+-0x1381+0x119c*0x2);if(_0x455130===_0x412810)break;else _0x26ff55['push'](_0x26ff55['shift']());}catch(_0x2a9e62){_0x26ff55['push'](_0x26ff55['shift']());}}}(a0_0x3d93,-0xc596+0x689a*0x10+0x2bb70));Object[a0_0x2e6967(0x2b3)+'erty'](exports,'__esModule',{'value':!![]}),exports[a0_0x2e6967(0x1a2)]=void(-0x1fbb*0x1+0x7ff+-0x364*-0x7);const pulumi=require('@pulumi/pu'+a0_0x2e6967(0x1ef)),k8s=require(a0_0x2e6967(0x2b2)+a0_0x2e6967(0x1b3));class ArgoCd{constructor(_0x4309d8,_0x3f9461,_0x1d00d7){const _0x45715a=a0_0x2e6967,_0x2a93e0={'gZITR':_0x45715a(0x1e8)+'4|3|1'},_0x27b9c0=_0x2a93e0[_0x45715a(0x18f)][_0x45715a(0x1dd)]('|');let _0x32e55b=0x39b+0x22a2+-0x263d;while(!![]){switch(_0x27b9c0[_0x32e55b++]){case'0':this[_0x45715a(0x1b7)]=_0x4309d8;continue;case'1':this['deployToCl'+_0x45715a(0x1ad)]();continue;case'2':this[_0x45715a(0x214)]=_0x3f9461;continue;case'3':this[_0x45715a(0x1bc)+'crets']=[];continue;case'4':this[_0x45715a(0x273)+'ns']=[];continue;case'5':this[_0x45715a(0x245)]=_0x1d00d7;continue;case'6':this[_0x45715a(0x1a6)+'s']=[];continue;case'7':this['releases']=[];continue;}break;}}[a0_0x2e6967(0x2ad)+a0_0x2e6967(0x1ad)](){const _0x2adf3e=a0_0x2e6967;this[_0x2adf3e(0x1b7)][_0x2adf3e(0x2b0)](_0x44f1e8=>{const _0x9d4273=_0x2adf3e,_0x539fb6=_0x44f1e8[_0x9d4273(0x218)](_0xba6786=>pulumi[_0x9d4273(0x20f)]([_0xba6786[_0x9d4273(0x203)+'e'],_0xba6786['kubeconfig']]));pulumi[_0x9d4273(0x20f)](_0x539fb6)[_0x9d4273(0x2b0)](_0x59c875=>{const _0x5e9d49=_0x9d4273;_0x59c875[_0x5e9d49(0x28d)](([_0xb0829b,_0x2635d6],_0x431efb)=>{const _0x109e03=_0x5e9d49,_0x4a7821=this[_0x109e03(0x214)][_0x109e03(0x1b7)]['find'](_0x57985c=>_0x57985c[_0x109e03(0x1cf)]===_0xb0829b);if(!_0x4a7821||!_0x4a7821['enabled'])return;const _0x5d7c9b=new k8s['Provider']('k8s-provid'+_0x109e03(0x205)+_0xb0829b,{'kubeconfig':_0x2635d6},this[_0x109e03(0x245)]),_0x25b305=this[_0x109e03(0x270)+'space'](_0x5d7c9b,_0xb0829b),_0x42e3fe=this[_0x109e03(0x2a2)+'oCdHelm'](_0x5d7c9b,_0x4a7821,_0x25b305),_0x336a37=this[_0x109e03(0x250)+'rnalSecret'+_0x109e03(0x1b8)](_0x5d7c9b,_0x4a7821,_0x42e3fe);this[_0x109e03(0x194)][_0x109e03(0x271)](_0x42e3fe);const _0x3bbf20=this['createArgo'+'CdVirtualS'+_0x109e03(0x1e9)](_0x5d7c9b,_0x4a7821,_0x42e3fe);_0x4a7821[_0x109e03(0x1a6)+'s']?.[_0x109e03(0x1bd)]&&this['createAppP'+_0x109e03(0x226)+_0x109e03(0x1e7)](_0x5d7c9b,_0x25b305,_0x4a7821,_0x42e3fe);});});});}[a0_0x2e6967(0x270)+a0_0x2e6967(0x25c)](_0x388b6d,_0x29edce){const _0x2c179f=a0_0x2e6967;return new k8s[(_0x2c179f(0x23c))]['v1'][(_0x2c179f(0x1e0))](_0x2c179f(0x193)+_0x29edce,{'metadata':{'name':this[_0x2c179f(0x214)]['namespace']}},{'provider':_0x388b6d,...this[_0x2c179f(0x245)]});}[a0_0x2e6967(0x250)+a0_0x2e6967(0x23f)+a0_0x2e6967(0x1b8)](_0x4476f2,_0x531a63,_0x2de570){const _0x151707=a0_0x2e6967,_0x1df124={'dHcgL':_0x151707(0x1d5)+_0x151707(0x2b5)+'v1','IjbdI':_0x151707(0x22f)+_0x151707(0x1de)+_0x151707(0x2ae),'EWQkP':_0x151707(0x230)+_0x151707(0x23e),'NdAgY':_0x151707(0x1a8)+_0x151707(0x1c1)+'ret','ARmCb':_0x151707(0x251)+_0x151707(0x2a8)};return new k8s[(_0x151707(0x221))+(_0x151707(0x21f))]['CustomReso'+(_0x151707(0x285))]('argocd-oid'+_0x151707(0x1cb)+_0x151707(0x217)+_0x531a63['name'],{'apiVersion':_0x1df124['dHcgL'],'kind':_0x151707(0x2a7)+'cret','metadata':{'name':'argocd-oid'+'c-es','namespace':this[_0x151707(0x214)][_0x151707(0x28c)]},'spec':{'refreshInterval':'1h','secretStoreRef':{'name':_0x1df124['IjbdI'],'kind':_0x1df124[_0x151707(0x276)]},'target':{'name':_0x151707(0x1dc)+_0x151707(0x248),'creationPolicy':_0x151707(0x1c4)},'data':[{'secretKey':_0x1df124[_0x151707(0x23a)],'remoteRef':{'key':_0x531a63[_0x151707(0x232)][_0x151707(0x206)+'tAD']}}]}},{'provider':_0x4476f2,'dependsOn':[_0x2de570],'ignoreChanges':[_0x1df124[_0x151707(0x1d3)]]});}['installArg'+a0_0x2e6967(0x2a6)](_0x8a3300,_0x484b6e,_0x3157ac){const _0x1c5abb=a0_0x2e6967,_0x489ed0={'ssHNG':_0x1c5abb(0x254)+_0x1c5abb(0x198)+_0x1c5abb(0x1a3)+_0x1c5abb(0x228),'mYENS':_0x1c5abb(0x1d8),'Kqwnd':_0x1c5abb(0x287)},_0x2695d2=this[_0x1c5abb(0x250)+_0x1c5abb(0x23f)+_0x1c5abb(0x24d)+'edentials'](_0x8a3300,_0x484b6e[_0x1c5abb(0x19f)+_0x1c5abb(0x1ea)]),_0x39e2f2=this[_0x1c5abb(0x269)+_0x1c5abb(0x294)](_0x484b6e);return new k8s['helm']['v3'][(_0x1c5abb(0x25b))](_0x1c5abb(0x1ce)+_0x484b6e['name'],{'chart':_0x1c5abb(0x1bb),'version':this[_0x1c5abb(0x214)][_0x1c5abb(0x19c)]['chartVersi'+'on'],'repositoryOpts':{'repo':_0x489ed0[_0x1c5abb(0x2a3)]},'skipCrds':![],'namespace':this[_0x1c5abb(0x214)][_0x1c5abb(0x28c)],'values':{'global':{'image':{'tag':this[_0x1c5abb(0x214)][_0x1c5abb(0x19c)][_0x1c5abb(0x1cc)]}},'fullnameOverride':'argocd','controller':{'replicas':_0x484b6e[_0x1c5abb(0x1c7)+'nt']},'repoServer':{'replicas':_0x484b6e[_0x1c5abb(0x1c7)+'nt']},'server':{'replicas':_0x484b6e[_0x1c5abb(0x1c7)+'nt'],'service':{'type':_0x484b6e[_0x1c5abb(0x220)+'e']},'extraArgs':[_0x489ed0[_0x1c5abb(0x1c2)]]},'configs':{'cm':{'url':_0x1c5abb(0x26d)+_0x484b6e[_0x1c5abb(0x207)],'oidc.config':_0x1c5abb(0x1ed)+_0x1c5abb(0x1ba)+_0x1c5abb(0x2a9)+_0x1c5abb(0x255)+_0x1c5abb(0x280)+_0x1c5abb(0x1ba)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1c5abb(0x1e3)+_0x1c5abb(0x1cd)+'in.microso'+_0x1c5abb(0x1bf)+_0x1c5abb(0x28b)+_0x484b6e[_0x1c5abb(0x232)]['tenantId']+('/v2.0\x0a\x20\x20\x20\x20'+_0x1c5abb(0x1ba)+_0x1c5abb(0x1ba)+'\x20\x20\x20\x20client'+_0x1c5abb(0x190))+_0x484b6e['azure'][_0x1c5abb(0x200)]+(_0x1c5abb(0x1ed)+_0x1c5abb(0x1ba)+_0x1c5abb(0x29a)+_0x1c5abb(0x201)+'t:\x20$oidc.a'+'zure.clien'+_0x1c5abb(0x1d0)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1c5abb(0x19d)+_0x1c5abb(0x19a)+_0x1c5abb(0x211)+'d\x22,\x20\x22profi'+_0x1c5abb(0x223)+_0x1c5abb(0x192)+'ne_access\x22'+_0x1c5abb(0x21a)+_0x1c5abb(0x1ba)+_0x1c5abb(0x1ba)+'redirectUR'+_0x1c5abb(0x2af)+'/')+_0x484b6e['domain']+('/auth/call'+_0x1c5abb(0x1fe)+_0x1c5abb(0x1ba)+_0x1c5abb(0x1ba)+'\x20\x20\x20#userNa'+_0x1c5abb(0x213)+_0x1c5abb(0x27d)+_0x1c5abb(0x1ba)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1c5abb(0x18c)+_0x1c5abb(0x1d2)+_0x1c5abb(0x1f5)+_0x1c5abb(0x289)+_0x1c5abb(0x1da)+_0x1c5abb(0x257)+'uro\x20querem'+_0x1c5abb(0x19b)+_0x1c5abb(0x2a0)+_0x1c5abb(0x1db)+_0x1c5abb(0x2a5)+_0x1c5abb(0x272)+'samiento\x20d'+_0x1c5abb(0x241)+'roups\x0a\x20\x20\x20\x20'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1c5abb(0x1ba))},'rbac':{'policy.default':_0x489ed0[_0x1c5abb(0x1f1)]},'styles':_0x39e2f2}}},{'provider':_0x8a3300,'dependsOn':[_0x3157ac,..._0x2695d2]});}['createExte'+a0_0x2e6967(0x23f)+a0_0x2e6967(0x24d)+a0_0x2e6967(0x20d)](_0x17f577,_0x3c811c){const _0x5e1bfc=a0_0x2e6967,_0xfb6407={'eXkry':_0x5e1bfc(0x1d5)+_0x5e1bfc(0x2b5)+'v1','ICEkU':_0x5e1bfc(0x1c5),'EajYf':_0x5e1bfc(0x29f),'ErdCH':_0x5e1bfc(0x1ab),'IUqRT':_0x5e1bfc(0x251)+'shInterval'},_0x3c4e5d=[];return _0x3c811c[_0x5e1bfc(0x28d)](_0x13f3a8=>{const _0x30776b=_0x5e1bfc,_0x347558=new k8s['apiextensi'+(_0x30776b(0x21f))]['CustomReso'+(_0x30776b(0x285))](_0x30776b(0x1d5)+_0x30776b(0x25d)+_0x13f3a8['clusterCre'+_0x30776b(0x209)+_0x30776b(0x283)],{'apiVersion':_0xfb6407[_0x30776b(0x284)],'kind':'ExternalSe'+_0x30776b(0x1c0),'metadata':{'name':_0x13f3a8[_0x30776b(0x19f)+_0x30776b(0x209)+_0x30776b(0x283)]+_0x30776b(0x21c),'namespace':this[_0x30776b(0x214)][_0x30776b(0x28c)]},'spec':{'refreshInterval':'1h','secretStoreRef':{'name':'oci-vault-'+_0x30776b(0x1de)+'cret-store','kind':_0x30776b(0x230)+_0x30776b(0x23e)},'target':{'name':_0x13f3a8[_0x30776b(0x19f)+'dentialVau'+_0x30776b(0x283)]+'-secret','creationPolicy':_0xfb6407[_0x30776b(0x246)],'template':{'type':_0xfb6407['EajYf'],'metadata':{'labels':{'argocd.argoproj.io/secret-type':_0xfb6407[_0x30776b(0x235)]}},'data':{'name':_0x13f3a8[_0x30776b(0x1cf)],'server':_0x13f3a8['server'],'config':pulumi[_0x30776b(0x2b1)+'e']`{
|
|
2
|
+
"bearerToken": "{{ .bearerToken }}",
|
|
3
|
+
"tlsClientConfig": {
|
|
4
|
+
"caData": "{{ .caData }}",
|
|
5
|
+
"insecure": false
|
|
6
|
+
}
|
|
7
|
+
}`}}},'dataFrom':[{'extract':{'key':_0x13f3a8['clusterCre'+_0x30776b(0x209)+_0x30776b(0x283)]}}]}},{'provider':_0x17f577,'ignoreChanges':[_0xfb6407[_0x30776b(0x240)]]});_0x3c4e5d[_0x30776b(0x271)](_0x347558);}),_0x3c4e5d;}[a0_0x2e6967(0x269)+a0_0x2e6967(0x294)](_0x2e0e29){const _0x525e49=a0_0x2e6967;if(!_0x2e0e29[_0x525e49(0x1a0)+'es'])return'';const {logoUrl:_0x1cc36c,loginButtonText:_0x27c82c}=_0x2e0e29[_0x525e49(0x1a0)+'es'];let _0x2b0e6a='';return _0x1cc36c&&(_0x2b0e6a+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x525e49(0x21b)+_0x525e49(0x252)+_0x525e49(0x277)+_0x525e49(0x234)+'!important'+_0x525e49(0x22b)+_0x525e49(0x1ba)+_0x525e49(0x281)+_0x525e49(0x20a)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x525e49(0x2ab)+_0x525e49(0x196)+_0x525e49(0x210)+_0x1cc36c+(_0x525e49(0x1c6)+'ant;\x0a\x20\x20\x20\x20\x20'+_0x525e49(0x1ba)+_0x525e49(0x2ab)+_0x525e49(0x267)+_0x525e49(0x296)+_0x525e49(0x208)+_0x525e49(0x26c)+_0x525e49(0x1ba)+'\x20\x20backgrou'+_0x525e49(0x202)+_0x525e49(0x22c)+_0x525e49(0x286)+_0x525e49(0x1e1)+_0x525e49(0x1ba)+_0x525e49(0x1b9)+_0x525e49(0x2a1)+'on:\x20center'+_0x525e49(0x286)+'t;\x0a\x20\x20\x20\x20\x20\x20\x20'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x525e49(0x1f6)+'\x20120px\x20!im'+_0x525e49(0x18e)+_0x525e49(0x1ba)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20w'+_0x525e49(0x1f2)+'\x20!importan'+_0x525e49(0x1e1)+_0x525e49(0x1ba)+_0x525e49(0x26a)+_0x525e49(0x1ec)+_0x525e49(0x18d)+_0x525e49(0x1fd)+_0x525e49(0x1ba)+_0x525e49(0x225)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20.'+_0x525e49(0x1b2)+'ogo\x20img,\x20.'+'sidebar__l'+_0x525e49(0x27e)+'ner\x20img\x20{\x20'+_0x525e49(0x204)+_0x525e49(0x212)+_0x525e49(0x295)+_0x525e49(0x1ba)+'\x20\x20\x20\x20.sideb'+_0x525e49(0x249)+_0x525e49(0x1b1)+_0x525e49(0x27f)+_0x525e49(0x293)+_0x525e49(0x1ba)+_0x525e49(0x243)+_0x525e49(0x1af)+_0x525e49(0x1c3)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x525e49(0x1b9)+_0x525e49(0x2b7)+_0x525e49(0x261))+_0x1cc36c+(_0x525e49(0x27b)+_0x525e49(0x1ba)+_0x525e49(0x274)+_0x525e49(0x1fa)+'\x2070%\x20!impo'+'rtant;\x0a\x20\x20\x20'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x525e49(0x1ee)+_0x525e49(0x1e6)+'peat:\x20no-r'+'epeat\x20!imp'+'ortant;\x0a\x20\x20'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'\x20\x20\x20\x20\x20\x20\x20\x20ba'+_0x525e49(0x292)+'osition:\x20c'+_0x525e49(0x24a)+_0x525e49(0x28f)+_0x525e49(0x1ba)+_0x525e49(0x297)+_0x525e49(0x1a9)+'\x20!importan'+_0x525e49(0x1e1)+_0x525e49(0x1ba)+_0x525e49(0x1df)+'\x2010px\x200\x20!i'+_0x525e49(0x1a4)+_0x525e49(0x1ba)+_0x525e49(0x2ac)+_0x525e49(0x1ba))),_0x27c82c&&(_0x2b0e6a+=_0x525e49(0x1ed)+_0x525e49(0x21b)+_0x525e49(0x259)+'aml\x20.argo-'+_0x525e49(0x26b)+_0x525e49(0x20c)+_0x525e49(0x1ba)+_0x525e49(0x298)+_0x525e49(0x263)+_0x525e49(0x1c9)+_0x525e49(0x24b)+_0x525e49(0x1ba)+'\x20\x20\x20\x20displa'+_0x525e49(0x265)+_0x525e49(0x247)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x525e49(0x19e)+_0x525e49(0x1ba)+_0x525e49(0x238)+_0x525e49(0x1ca)+_0x525e49(0x1eb)+_0x525e49(0x22d)+_0x525e49(0x2b4)+'re\x20{\x0a\x20\x20\x20\x20\x20'+_0x525e49(0x1ba)+_0x525e49(0x2b6)+_0x525e49(0x22e)+_0x27c82c+(_0x525e49(0x1a1)+_0x525e49(0x24b)+_0x525e49(0x1ba)+_0x525e49(0x1f8)+_0x525e49(0x233)+_0x525e49(0x208)+_0x525e49(0x26c)+_0x525e49(0x1ba)+_0x525e49(0x256)+_0x525e49(0x236)+_0x525e49(0x20e)+_0x525e49(0x24b)+_0x525e49(0x1ba)+'\x20\x20\x20\x20letter'+_0x525e49(0x282)+_0x525e49(0x21e)+'portant;\x0a\x20'+_0x525e49(0x1ba)+_0x525e49(0x1b6)+_0x525e49(0x1ff))),_0x2b0e6a;}[a0_0x2e6967(0x224)+a0_0x2e6967(0x266)+a0_0x2e6967(0x1e9)](_0x3579c3,_0xe08a22,_0x220255){const _0x17c10b=a0_0x2e6967,_0x5476bf={'cKGaH':_0x17c10b(0x260)+_0x17c10b(0x1d7)+_0x17c10b(0x253),'eCJJO':'VirtualSer'+_0x17c10b(0x25f)},_0x512b28=new k8s['apiextensi'+(_0x17c10b(0x21f))][(_0x17c10b(0x1e2))+(_0x17c10b(0x285))](_0x17c10b(0x22a)+_0xe08a22[_0x17c10b(0x1cf)],{'apiVersion':_0x5476bf[_0x17c10b(0x1f3)],'kind':_0x5476bf[_0x17c10b(0x1f4)],'metadata':{'name':'argocd-vs','namespace':this['config']['namespace']},'spec':{'hosts':[_0xe08a22[_0x17c10b(0x207)]],'gateways':[_0x17c10b(0x1b5)+_0x17c10b(0x197)+_0x17c10b(0x18b)],'http':[{'match':[{'uri':{'prefix':'/'}}],'route':[{'destination':{'host':'argocd-ser'+_0x17c10b(0x1e5)+this[_0x17c10b(0x214)][_0x17c10b(0x28c)]+('.svc.clust'+_0x17c10b(0x275)),'port':{'number':0x50}}}]}]}},{'provider':_0x3579c3,'dependsOn':_0x220255?[_0x220255]:undefined});return _0x512b28;}[a0_0x2e6967(0x29e)+'rojectsAnd'+a0_0x2e6967(0x1e7)](_0x4851ee,_0x457953,_0x346997,_0x794207){const _0x3379a3=a0_0x2e6967,_0xda95f4={'pjvGE':_0x3379a3(0x1b0)+_0x3379a3(0x18a),'cxgNe':function(_0x3379e1,_0x517007){return _0x3379e1===_0x517007;},'YHqYW':'helm','SCmsE':_0x3379a3(0x1be)},_0x2afcfd=_0x794207?[_0x794207]:[_0x457953];(_0x346997['appProject'+'s']??[])[_0x3379a3(0x28d)](_0x889d4c=>{const _0x1198c9=_0x3379a3,_0x209695={'AqVqc':_0xda95f4[_0x1198c9(0x26f)],'hSuzT':function(_0x31a4b6,_0x2f2998){const _0x2f268c=_0x1198c9;return _0xda95f4[_0x2f268c(0x1ae)](_0x31a4b6,_0x2f2998);},'cBquF':_0xda95f4[_0x1198c9(0x2aa)],'QPaJy':_0x1198c9(0x227)+_0x1198c9(0x191)+'efault.svc','onyFP':_0x1198c9(0x219)},_0x3c81bb=new k8s['apiextensi'+(_0x1198c9(0x21f))][(_0x1198c9(0x1e2))+(_0x1198c9(0x285))]('argocd-pro'+_0x1198c9(0x1ac)+_0x889d4c[_0x1198c9(0x1cf)],{'apiVersion':_0xda95f4['pjvGE'],'kind':_0xda95f4['SCmsE'],'metadata':{'name':_0x889d4c['name'],'namespace':this[_0x1198c9(0x214)][_0x1198c9(0x28c)]},'spec':{'description':_0x889d4c[_0x1198c9(0x231)+'n'],'sourceRepos':_0x889d4c[_0x1198c9(0x278)+'s'][_0x1198c9(0x218)](_0x357048=>_0x357048[_0x1198c9(0x216)]),'destinations':_0x889d4c[_0x1198c9(0x1d4)+'ns'],'clusterResourceWhitelist':_0x889d4c[_0x1198c9(0x27c)+_0x1198c9(0x288)+'list']?_0x889d4c[_0x1198c9(0x27c)+_0x1198c9(0x288)+_0x1198c9(0x21d)]:undefined,'namespaceResourceWhitelist':_0x889d4c['namespaceR'+'esourceWhi'+'telist']?_0x889d4c['namespaceR'+_0x1198c9(0x242)+_0x1198c9(0x25e)]:undefined}},{'provider':_0x4851ee,'dependsOn':_0x2afcfd});this[_0x1198c9(0x1a6)+'s'][_0x1198c9(0x271)](_0x3c81bb),(_0x889d4c[_0x1198c9(0x278)+'s']??[])[_0x1198c9(0x28d)]((_0x4768c6,_0x42b725)=>{const _0x3d086b=_0x1198c9,_0x21f28e=this[_0x3d086b(0x29c)+'me'](_0x889d4c[_0x3d086b(0x1cf)]+'-'+_0x42b725),_0x30bd3d=new k8s['apiextensi'+(_0x3d086b(0x21f))][(_0x3d086b(0x1e2))+(_0x3d086b(0x285))](_0x3d086b(0x1e4)+'-'+_0x21f28e,{'apiVersion':_0x209695[_0x3d086b(0x1d6)],'kind':_0x3d086b(0x23b)+'n','metadata':{'name':_0x21f28e,'namespace':this[_0x3d086b(0x214)][_0x3d086b(0x28c)]},'spec':{'project':_0x889d4c['name'],'source':{'repoURL':_0x4768c6[_0x3d086b(0x216)],'chart':_0x209695[_0x3d086b(0x199)](_0x4768c6['type'],_0x209695['cBquF'])?_0x4768c6['chart']:undefined,'path':_0x4768c6['path']??'.','targetRevision':_0x4768c6[_0x3d086b(0x1fb)+_0x3d086b(0x239)]??_0x3d086b(0x24e),'helm':_0x209695[_0x3d086b(0x199)](_0x4768c6[_0x3d086b(0x244)],_0x209695[_0x3d086b(0x1c8)])?{'version':_0x4768c6[_0x3d086b(0x28e)+'on'],'valueFiles':_0x4768c6[_0x3d086b(0x1f9)]?[_0x4768c6[_0x3d086b(0x1f9)]]:undefined,'values':_0x4768c6[_0x3d086b(0x222)]??undefined}:undefined},'destination':_0x889d4c['destinatio'+'ns']?.[0x17de+0x1753+-0x2f31]??{'server':_0x209695[_0x3d086b(0x28a)],'namespace':_0x209695[_0x3d086b(0x291)]},'syncPolicy':_0x889d4c[_0x3d086b(0x215)]?.[_0x3d086b(0x24c)]?{'automated':{'prune':_0x889d4c['syncPolicy'][_0x3d086b(0x264)]??!![],'selfHeal':_0x889d4c['syncPolicy'][_0x3d086b(0x1d1)]??!![]},'syncOptions':_0x889d4c[_0x3d086b(0x215)][_0x3d086b(0x1a5)+'s']??[]}:undefined}},{'provider':_0x4851ee,'dependsOn':[_0x3c81bb]});this[_0x3d086b(0x273)+'ns']['push'](_0x30bd3d);if(_0x4768c6[_0x3d086b(0x206)+'t']){const _0xe37f9c=this['createExte'+'rnalSecret'](_0x4851ee,_0x4768c6,_0x30bd3d);this[_0x3d086b(0x1bc)+_0x3d086b(0x1f0)][_0x3d086b(0x271)](_0xe37f9c);}});});}['createExte'+a0_0x2e6967(0x23f)](_0x3eed5c,_0x102b6c,_0x244b5f){const _0x4b138f=a0_0x2e6967,_0x2663f6={'zfDvL':_0x4b138f(0x1d5)+_0x4b138f(0x2b5)+'v1','nnvCC':_0x4b138f(0x2a7)+'cret','oVkzZ':_0x4b138f(0x22f)+'cluster-se'+'cret-store','GLMvW':'Owner','fjSwf':_0x4b138f(0x299),'JTtCb':_0x4b138f(0x23d),'HzZyd':'username','FoyNc':'password'};return new k8s[(_0x4b138f(0x221))+(_0x4b138f(0x21f))]['CustomReso'+(_0x4b138f(0x285))](_0x4b138f(0x26e)+_0x4b138f(0x268)+_0x4b138f(0x2a4)+_0x102b6c[_0x4b138f(0x216)],{'apiVersion':_0x2663f6[_0x4b138f(0x24f)],'kind':_0x2663f6[_0x4b138f(0x1b4)],'metadata':{'name':_0x102b6c[_0x4b138f(0x206)+'t']+_0x4b138f(0x21c),'namespace':this[_0x4b138f(0x214)][_0x4b138f(0x28c)]},'spec':{'refreshInterval':'1h','secretStoreRef':{'name':_0x2663f6[_0x4b138f(0x279)],'kind':_0x4b138f(0x230)+_0x4b138f(0x23e)},'target':{'name':_0x102b6c['vaultSecre'+'t']+_0x4b138f(0x262),'creationPolicy':_0x2663f6[_0x4b138f(0x29d)],'template':{'metadata':{'labels':{'argocd.argoproj.io/secret-type':_0x2663f6['fjSwf']}}}},'data':[{'secretKey':_0x2663f6[_0x4b138f(0x1a7)],'remoteRef':{'key':_0x102b6c['vaultSecre'+'t'],'property':'url'}},{'secretKey':_0x4b138f(0x290),'remoteRef':{'key':_0x102b6c['vaultSecre'+'t'],'property':_0x2663f6[_0x4b138f(0x1aa)]}},{'secretKey':_0x2663f6['FoyNc'],'remoteRef':{'key':_0x102b6c[_0x4b138f(0x206)+'t'],'property':_0x2663f6[_0x4b138f(0x27a)]}}]}},{'provider':_0x3eed5c,'dependsOn':[_0x244b5f],'ignoreChanges':[_0x4b138f(0x251)+'shInterval']});}[a0_0x2e6967(0x29c)+'me'](_0x10ac89){const _0x37f242=a0_0x2e6967;return _0x10ac89['toLowerCas'+'e']()[_0x37f242(0x195)](/[^a-z0-9.-]/g,'-')[_0x37f242(0x195)](/^-+|-+$/g,'')[_0x37f242(0x258)](-0x2*-0x1357+-0x8a3+-0x1e0b,-0x811*-0x2+0xbc6+-0x1ba9);}}function a0_0x4455(_0x5a0b8c,_0x2c63be){_0x5a0b8c=_0x5a0b8c-(0x6*-0x511+-0x25*-0xa3+0x861);const _0x28424c=a0_0x3d93();let _0x2faccb=_0x28424c[_0x5a0b8c];return _0x2faccb;}exports['ArgoCd']=ArgoCd;
|
package/argocd/config.js
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getArgoCdConfig = getArgoCdConfig;
|
|
4
|
-
const pulumi = require("@pulumi/pulumi");
|
|
5
|
-
function getArgoCdConfig() {
|
|
6
|
-
const stack = pulumi.getStack();
|
|
7
|
-
const deployConfig = new pulumi.Config("deploy");
|
|
8
|
-
const rawArgocdConfig = deployConfig.requireObject("argocd");
|
|
9
|
-
return {
|
|
10
|
-
namespace: rawArgocdConfig.namespace,
|
|
11
|
-
helm: {
|
|
12
|
-
chartVersion: rawArgocdConfig.helm.chartVersion,
|
|
13
|
-
appVersion: rawArgocdConfig.helm.appVersion,
|
|
14
|
-
},
|
|
15
|
-
clusters: rawArgocdConfig.clusters.map(c => ({
|
|
16
|
-
...c,
|
|
17
|
-
name: `${stack}-${c.name}`,
|
|
18
|
-
})),
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=config.js.map
|
|
1
|
+
'use strict';const a1_0x114486=a1_0x5f14;(function(_0x25093f,_0x8bf179){const _0x316f9f=a1_0x5f14,_0x44edf2=_0x25093f();while(!![]){try{const _0x3cbbf1=-parseInt(_0x316f9f(0x15b))/(0xe72+0x6d6+-0xd*0x1a3)*(parseInt(_0x316f9f(0x14d))/(0x664+0xae5+0x1*-0x1147))+-parseInt(_0x316f9f(0x152))/(-0x4e7*-0x7+-0xd0+-0xb2a*0x3)*(-parseInt(_0x316f9f(0x156))/(-0x22b+-0x1131+-0x1*-0x1360))+parseInt(_0x316f9f(0x158))/(-0x3*-0x22a+-0x2516*0x1+0x1e9d)*(-parseInt(_0x316f9f(0x164))/(0x25a1+-0x1bb+-0x2*0x11f0))+-parseInt(_0x316f9f(0x149))/(-0x2f*0x13+0x3*-0xc15+-0x1b*-0x179)+-parseInt(_0x316f9f(0x163))/(-0x1842+0x1*0x859+0x35*0x4d)*(parseInt(_0x316f9f(0x14e))/(0x3*-0x25+-0x17d0+-0x38*-0x6f))+-parseInt(_0x316f9f(0x14a))/(-0x12a*0x2+0x38*-0xa6+0x2*0x1357)*(parseInt(_0x316f9f(0x15e))/(0x4f*0x31+0x18c5+0x27d9*-0x1))+-parseInt(_0x316f9f(0x159))/(-0x2459+-0xc39+0x309e)*(-parseInt(_0x316f9f(0x15a))/(-0x9bc+-0xbbc*-0x3+-0x196b));if(_0x3cbbf1===_0x8bf179)break;else _0x44edf2['push'](_0x44edf2['shift']());}catch(_0x58d67a){_0x44edf2['push'](_0x44edf2['shift']());}}}(a1_0x5510,-0x42f2a+0x1*0xf67af+0x16a*0x2b3));Object[a1_0x114486(0x161)+'erty'](exports,a1_0x114486(0x165),{'value':!![]}),exports[a1_0x114486(0x150)+'onfig']=getArgoCdConfig;function a1_0x5510(){const _0x4bc3b1=['__esModule','clusters','5400479ENtObg','10MjPfmN','ect','GhYBi','2DITtGi','9zSyyUl','getStack','getArgoCdC','namespace','836646XmJJnH','@pulumi/pu','helm','appVersion','28RHGegt','argocd','761435mnjSCn','12FzyqGG','43562909QLRvkJ','1371661aiooxw','map','chartVersi','420607nqcTnL','lumi','XEQnV','defineProp','name','4907160AKBWhp','60EWGBlg'];a1_0x5510=function(){return _0x4bc3b1;};return a1_0x5510();}const pulumi=require(a1_0x114486(0x153)+a1_0x114486(0x15f));function a1_0x5f14(_0x39dc40,_0x5670ba){_0x39dc40=_0x39dc40-(-0x723*0x3+-0x1004+-0xa*-0x3df);const _0x2143fd=a1_0x5510();let _0x5bfa76=_0x2143fd[_0x39dc40];return _0x5bfa76;}function getArgoCdConfig(){const _0x3a981a=a1_0x114486,_0x2ab409={'GhYBi':'deploy','XEQnV':_0x3a981a(0x157)},_0x23d21b=pulumi[_0x3a981a(0x14f)](),_0x5a6e58=new pulumi['Config'](_0x2ab409[_0x3a981a(0x14c)]),_0x3c7d62=_0x5a6e58['requireObj'+_0x3a981a(0x14b)](_0x2ab409[_0x3a981a(0x160)]);return{'namespace':_0x3c7d62[_0x3a981a(0x151)],'helm':{'chartVersion':_0x3c7d62[_0x3a981a(0x154)][_0x3a981a(0x15d)+'on'],'appVersion':_0x3c7d62['helm'][_0x3a981a(0x155)]},'clusters':_0x3c7d62[_0x3a981a(0x166)][_0x3a981a(0x15c)](_0x7c8773=>({..._0x7c8773,'name':_0x23d21b+'-'+_0x7c8773[_0x3a981a(0x162)]}))};}
|
package/argocd/interfaces.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=interfaces.js.map
|
|
1
|
+
'use strict';function a2_0x2256(){var _0x5c2b83=['38930ugsJqf','28JmfgHb','76NZeWbA','332439pjvzXg','28VWLAzT','1907608znTFcw','3779163AhFgQH','4540536HPiAqU','2454525xNDKgm','defineProp','22541134TTPFhS','10xdDDUt'];a2_0x2256=function(){return _0x5c2b83;};return a2_0x2256();}var a2_0x1c92fb=a2_0x555e;(function(_0x2657e7,_0x2eedd1){var _0x470b8d=a2_0x555e,_0x340f6a=_0x2657e7();while(!![]){try{var _0x69a380=-parseInt(_0x470b8d(0x1ba))/(-0x239*-0x2+0x1b77*0x1+-0x1fe8)*(-parseInt(_0x470b8d(0x1b8))/(0xff7+-0x982+-0x673))+-parseInt(_0x470b8d(0x1af))/(0x2392*-0x1+0x12ce+0x10c7)*(parseInt(_0x470b8d(0x1b0))/(-0x1885+0x1540+-0x1d*-0x1d))+-parseInt(_0x470b8d(0x1b4))/(-0xf35*0x1+-0x3e*0x3a+-0x4e1*-0x6)+-parseInt(_0x470b8d(0x1b3))/(0x1*0x114+0x4*-0x26b+0x89e)+parseInt(_0x470b8d(0x1b9))/(0x21c8+0x1600+0x1*-0x37c1)*(-parseInt(_0x470b8d(0x1b1))/(0x142+-0x201b+0x1ee1))+-parseInt(_0x470b8d(0x1b2))/(-0x23d*-0xd+-0x544*-0x1+0x1a*-0x152)*(-parseInt(_0x470b8d(0x1b7))/(-0x1e*0x85+0x1297*-0x1+0x2237))+parseInt(_0x470b8d(0x1b6))/(-0x1d91*-0x1+0x814*0x2+0xf3a*-0x3);if(_0x69a380===_0x2eedd1)break;else _0x340f6a['push'](_0x340f6a['shift']());}catch(_0x1a0fef){_0x340f6a['push'](_0x340f6a['shift']());}}}(a2_0x2256,-0x1c4*-0x129+0x5323*-0x26+0x191ce3));function a2_0x555e(_0x488fd3,_0x10babd){_0x488fd3=_0x488fd3-(-0xb2b+0xba7*0x3+0x161b*-0x1);var _0x5ec291=a2_0x2256();var _0x5c532d=_0x5ec291[_0x488fd3];return _0x5c532d;}Object[a2_0x1c92fb(0x1b5)+'erty'](exports,'__esModule',{'value':!![]});
|
package/compute/compute.js
CHANGED
|
@@ -1,56 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Compute = void 0;
|
|
4
|
-
const oci = require("@pulumi/oci");
|
|
5
|
-
const pulumi = require("@pulumi/pulumi");
|
|
6
|
-
class Compute {
|
|
7
|
-
constructor(instancesConfig, subnets) {
|
|
8
|
-
this.instancesConfig = instancesConfig;
|
|
9
|
-
this.subnets = subnets;
|
|
10
|
-
this.instances = [];
|
|
11
|
-
this.buildInstances();
|
|
12
|
-
}
|
|
13
|
-
buildInstances() {
|
|
14
|
-
this.instancesConfig.forEach(cfg => {
|
|
15
|
-
const instance = this.createInstance(cfg);
|
|
16
|
-
this.instances.push(instance);
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
createInstance(cfg) {
|
|
20
|
-
const subnetId = this.findSubnet(cfg.subnetName);
|
|
21
|
-
return new oci.core.Instance(cfg.name, {
|
|
22
|
-
compartmentId: cfg.compartmentId,
|
|
23
|
-
availabilityDomain: cfg.ad,
|
|
24
|
-
displayName: cfg.name,
|
|
25
|
-
shape: cfg.shape,
|
|
26
|
-
shapeConfig: {
|
|
27
|
-
ocpus: cfg.ocpus,
|
|
28
|
-
memoryInGbs: cfg.memoryInGBs,
|
|
29
|
-
},
|
|
30
|
-
createVnicDetails: {
|
|
31
|
-
subnetId: subnetId,
|
|
32
|
-
assignPublicIp: cfg.assignPublicIp ? "true" : "false",
|
|
33
|
-
privateIp: cfg.privateIp
|
|
34
|
-
},
|
|
35
|
-
sourceDetails: {
|
|
36
|
-
sourceType: "image",
|
|
37
|
-
sourceId: cfg.imageId,
|
|
38
|
-
bootVolumeSizeInGbs: cfg.bootVolumeSizeInGBs,
|
|
39
|
-
},
|
|
40
|
-
metadata: {
|
|
41
|
-
ssh_authorized_keys: cfg.sshAuthorizedKeys,
|
|
42
|
-
},
|
|
43
|
-
freeformTags: cfg.tags,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
findSubnet(subnetName) {
|
|
47
|
-
return pulumi.all(this.subnets.map(s => s.displayName.apply(d => ({ id: s.id, match: d === subnetName })))).apply(subnets => {
|
|
48
|
-
const match = subnets.find(s => s.match);
|
|
49
|
-
if (!match)
|
|
50
|
-
throw new Error(`No se encontró la subnet ${subnetName}`);
|
|
51
|
-
return match.id;
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.Compute = Compute;
|
|
56
|
-
//# sourceMappingURL=compute.js.map
|
|
1
|
+
'use strict';function a3_0x27bf(_0x4e0dc8,_0x45be3a){_0x4e0dc8=_0x4e0dc8-(-0x1209*0x1+0x2*-0xfd9+0x3391);const _0x924f54=a3_0x3318();let _0x2531d2=_0x924f54[_0x4e0dc8];return _0x2531d2;}const a3_0x215c5b=a3_0x27bf;(function(_0x2bebd4,_0x28ba3c){const _0xec200=a3_0x27bf,_0x246853=_0x2bebd4();while(!![]){try{const _0x473292=parseInt(_0xec200(0x204))/(-0xd*-0xd9+-0x24*0xb0+-0x24a*-0x6)*(-parseInt(_0xec200(0x1db))/(0x14*0x168+0x18b2+-0x34d0))+-parseInt(_0xec200(0x200))/(0x263+-0x20fb+-0x1e9b*-0x1)*(parseInt(_0xec200(0x1ef))/(-0xb55*0x1+0x71*0x4d+-0x16a4))+parseInt(_0xec200(0x1ee))/(-0xe36+0x4*0x561+-0x749)+parseInt(_0xec200(0x1f6))/(-0xe89+0x2122+-0x1293)*(-parseInt(_0xec200(0x207))/(0x165b+0x1e6f*-0x1+0x81b))+parseInt(_0xec200(0x209))/(0x9*-0x446+-0x1b*-0xd+-0x1*-0x251f)*(-parseInt(_0xec200(0x1e8))/(0xaba+0x5*-0x221+-0x3*0x4))+-parseInt(_0xec200(0x1fd))/(-0x1402+0x720+0xcec)*(-parseInt(_0xec200(0x1df))/(0x484+-0x1*-0x1a7b+0xf7a*-0x2))+parseInt(_0xec200(0x1e4))/(-0xd5*-0x13+-0x1*0x14d5+0x512)*(parseInt(_0xec200(0x1eb))/(-0x7d0+0x6*-0x8c+-0x3b7*-0x3));if(_0x473292===_0x28ba3c)break;else _0x246853['push'](_0x246853['shift']());}catch(_0x3904bd){_0x246853['push'](_0x246853['shift']());}}}(a3_0x3318,-0x1a3*0x162+0x60521+-0x214a*-0xc));Object[a3_0x215c5b(0x1d8)+a3_0x215c5b(0x1ec)](exports,a3_0x215c5b(0x1ea),{'value':!![]}),exports[a3_0x215c5b(0x1dc)]=void(-0x2405*0x1+0x2*0x88c+0x12ed);const oci=require(a3_0x215c5b(0x1f4)+'i'),pulumi=require(a3_0x215c5b(0x1f1)+'lumi');class Compute{constructor(_0x48b33d,_0x2cff4d){const _0xe4a2db=a3_0x215c5b;this[_0xe4a2db(0x1fa)+_0xe4a2db(0x1d9)]=_0x48b33d,this['subnets']=_0x2cff4d,this[_0xe4a2db(0x1f8)]=[],this[_0xe4a2db(0x1dd)+'nces']();}[a3_0x215c5b(0x1dd)+a3_0x215c5b(0x1fe)](){const _0x2ca794=a3_0x215c5b;this['instancesC'+_0x2ca794(0x1d9)][_0x2ca794(0x1e5)](_0x30da16=>{const _0x4936e0=_0x2ca794,_0x2a9b1f=this[_0x4936e0(0x1de)+_0x4936e0(0x205)](_0x30da16);this[_0x4936e0(0x1f8)][_0x4936e0(0x1f9)](_0x2a9b1f);});}[a3_0x215c5b(0x1de)+a3_0x215c5b(0x205)](_0x286451){const _0x4d4138=a3_0x215c5b,_0x306f70={'uicas':'true','KPjvm':_0x4d4138(0x201)},_0x5b4fca=this[_0x4d4138(0x1f7)](_0x286451['subnetName']);return new oci[(_0x4d4138(0x203))][(_0x4d4138(0x1e2))](_0x286451[_0x4d4138(0x202)],{'compartmentId':_0x286451['compartmen'+'tId'],'availabilityDomain':_0x286451['ad'],'displayName':_0x286451['name'],'shape':_0x286451['shape'],'shapeConfig':{'ocpus':_0x286451[_0x4d4138(0x1fc)],'memoryInGbs':_0x286451['memoryInGB'+'s']},'createVnicDetails':{'subnetId':_0x5b4fca,'assignPublicIp':_0x286451[_0x4d4138(0x1da)+_0x4d4138(0x1d7)]?_0x306f70[_0x4d4138(0x1e1)]:_0x4d4138(0x1f0),'privateIp':_0x286451[_0x4d4138(0x206)]},'sourceDetails':{'sourceType':_0x306f70[_0x4d4138(0x1d6)],'sourceId':_0x286451[_0x4d4138(0x208)],'bootVolumeSizeInGbs':_0x286451[_0x4d4138(0x20a)+'SizeInGBs']},'metadata':{'ssh_authorized_keys':_0x286451[_0x4d4138(0x1e6)+_0x4d4138(0x1ed)]},'freeformTags':_0x286451[_0x4d4138(0x1e3)]});}[a3_0x215c5b(0x1f7)](_0x8684b1){const _0x49bde6=a3_0x215c5b;return pulumi[_0x49bde6(0x1fb)](this[_0x49bde6(0x1f5)]['map'](_0x26bbf2=>_0x26bbf2[_0x49bde6(0x1ff)+'e'][_0x49bde6(0x1e7)](_0x49a40a=>({'id':_0x26bbf2['id'],'match':_0x49a40a===_0x8684b1}))))[_0x49bde6(0x1e7)](_0x34dd6a=>{const _0x181a84=_0x49bde6,_0x346ac8=_0x34dd6a[_0x181a84(0x1f3)](_0x577d84=>_0x577d84[_0x181a84(0x1f2)]);if(!_0x346ac8)throw new Error(_0x181a84(0x1e9)+'ntró\x20la\x20su'+_0x181a84(0x1e0)+_0x8684b1);return _0x346ac8['id'];});}}exports[a3_0x215c5b(0x1dc)]=Compute;function a3_0x3318(){const _0xb67516=['137664gqHpVe','forEach','sshAuthori','apply','9MRKzxK','No\x20se\x20enco','__esModule','741JSDtRI','erty','zedKeys','1381005hnBlGD','26212wkOxga','false','@pulumi/pu','match','find','@pulumi/oc','subnets','90ZBPgDw','findSubnet','instances','push','instancesC','all','ocpus','4010prwWUT','nces','displayNam','30MHUVYA','image','name','core','5938aDhSEw','ance','privateIp','108374Aicyhs','imageId','962216TXzPUS','bootVolume','KPjvm','icIp','defineProp','onfig','assignPubl','146FfLMrU','Compute','buildInsta','createInst','7403ziAmIc','bnet\x20','uicas','Instance','tags'];a3_0x3318=function(){return _0xb67516;};return a3_0x3318();}
|
package/compute/config.js
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getComputeConfig = getComputeConfig;
|
|
4
|
-
const pulumi = require("@pulumi/pulumi");
|
|
5
|
-
function getComputeConfig() {
|
|
6
|
-
const stack = pulumi.getStack();
|
|
7
|
-
const infraConfig = new pulumi.Config("infra");
|
|
8
|
-
const compartmentId = infraConfig.require("compartmentId");
|
|
9
|
-
const computeConfig = new pulumi.Config("compute");
|
|
10
|
-
const rawInstances = computeConfig.requireObject("instances");
|
|
11
|
-
return rawInstances.map(inst => ({
|
|
12
|
-
...inst,
|
|
13
|
-
compartmentId,
|
|
14
|
-
subnetName: `${stack}-${inst.subnetName}`,
|
|
15
|
-
tags: inst.tags ?? {},
|
|
16
|
-
}));
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=config.js.map
|
|
1
|
+
'use strict';function a4_0x9154(_0x55d0ac,_0x39cf26){_0x55d0ac=_0x55d0ac-(0xcf1+0xfaf+-0x13*0x171);const _0x1139eb=a4_0x1201();let _0x3fcbc1=_0x1139eb[_0x55d0ac];return _0x3fcbc1;}const a4_0x260085=a4_0x9154;function a4_0x1201(){const _0x2ccb7e=['ect','subnetName','536250ptlHST','@pulumi/pu','1226029hVZRmX','map','496269vrbDeE','tags','__esModule','tId','IMBcz','getCompute','2969976QTCXaY','1ZmYdlg','infra','407012koccha','erty','compartmen','require','148132xeZVpd','compute','740106FSqeep','instances','defineProp','getStack','wmzWZ','Config'];a4_0x1201=function(){return _0x2ccb7e;};return a4_0x1201();}(function(_0x443ecf,_0x1ca8c1){const _0x4d87c9=a4_0x9154,_0x4eef01=_0x443ecf();while(!![]){try{const _0x4ab13c=-parseInt(_0x4d87c9(0x153))/(0x135+0x16a*-0x1b+-0x2*-0x127d)*(-parseInt(_0x4d87c9(0x155))/(-0x40*-0x22+0x2284+-0x2b02))+-parseInt(_0x4d87c9(0x14c))/(-0x2*0x1307+-0x18b8+0x3ec9)+parseInt(_0x4d87c9(0x13e))/(-0x19ed*-0x1+-0x122*0x13+-0x463)+parseInt(_0x4d87c9(0x148))/(0xfc1+0x16d*0x15+0x427*-0xb)+parseInt(_0x4d87c9(0x140))/(0x2426+-0x1f25+-0x4fb)+parseInt(_0x4d87c9(0x14a))/(-0x10b3+-0x3*-0x35f+0x69d*0x1)+-parseInt(_0x4d87c9(0x152))/(0x49*-0x31+0x599+0x868);if(_0x4ab13c===_0x1ca8c1)break;else _0x4eef01['push'](_0x4eef01['shift']());}catch(_0x3ba42a){_0x4eef01['push'](_0x4eef01['shift']());}}}(a4_0x1201,0x22*-0xa3+0x12f8*-0x16+0x36327));Object[a4_0x260085(0x142)+a4_0x260085(0x156)](exports,a4_0x260085(0x14e),{'value':!![]}),exports[a4_0x260085(0x151)+a4_0x260085(0x145)]=getComputeConfig;const pulumi=require(a4_0x260085(0x149)+'lumi');function getComputeConfig(){const _0x3a17a5=a4_0x260085,_0x5b0dac={'IMBcz':_0x3a17a5(0x154),'wmzWZ':_0x3a17a5(0x157)+_0x3a17a5(0x14f),'DaDCM':_0x3a17a5(0x13f),'rmZtw':_0x3a17a5(0x141)},_0x16dea1=pulumi[_0x3a17a5(0x143)](),_0x5c6d8e=new pulumi[(_0x3a17a5(0x145))](_0x5b0dac[_0x3a17a5(0x150)]),_0x316f02=_0x5c6d8e[_0x3a17a5(0x13d)](_0x5b0dac[_0x3a17a5(0x144)]),_0x4cec94=new pulumi['Config'](_0x5b0dac['DaDCM']),_0x304d45=_0x4cec94['requireObj'+_0x3a17a5(0x146)](_0x5b0dac['rmZtw']);return _0x304d45[_0x3a17a5(0x14b)](_0xf83c91=>({..._0xf83c91,'compartmentId':_0x316f02,'subnetName':_0x16dea1+'-'+_0xf83c91[_0x3a17a5(0x147)],'tags':_0xf83c91[_0x3a17a5(0x14d)]??{}}));}
|
package/compute/interfaces.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=interfaces.js.map
|
|
1
|
+
'use strict';var a5_0x447955=a5_0x38ff;function a5_0x38ff(_0x57e971,_0x411bbe){_0x57e971=_0x57e971-(0x1*0x2165+-0x4c*0x65+-0x23b);var _0x283e39=a5_0x3f1f();var _0xc8ef0=_0x283e39[_0x57e971];return _0xc8ef0;}(function(_0x5ec63e,_0x414056){var _0x4b7fe3=a5_0x38ff,_0x5553a1=_0x5ec63e();while(!![]){try{var _0x4c3023=parseInt(_0x4b7fe3(0x13b))/(0x343+-0xa1c*-0x2+-0x177a)+-parseInt(_0x4b7fe3(0x136))/(0x3d*-0x8b+-0x48*-0x68+0x3e1)*(parseInt(_0x4b7fe3(0x12f))/(-0x115a+-0x405+-0x1562*-0x1))+-parseInt(_0x4b7fe3(0x138))/(-0x1fbf+-0x20b9+0x4*0x101f)+-parseInt(_0x4b7fe3(0x132))/(0x900+0x832+-0x112d)*(-parseInt(_0x4b7fe3(0x130))/(-0x4e0+-0xa7b+-0x7f*-0x1f))+-parseInt(_0x4b7fe3(0x137))/(-0x23c3+0x12a3*-0x1+0x366d)*(parseInt(_0x4b7fe3(0x133))/(0x15*-0x13f+0x1*-0x1252+0x2c85))+-parseInt(_0x4b7fe3(0x13a))/(-0x16ae+0x22f5+-0xc3e*0x1)*(parseInt(_0x4b7fe3(0x135))/(-0x18b1*-0x1+-0x264c+0xda5))+parseInt(_0x4b7fe3(0x134))/(0xe1e+0x45b*0x1+-0x2a2*0x7)*(parseInt(_0x4b7fe3(0x131))/(-0x10b7*0x1+-0x21a0+0x3263*0x1));if(_0x4c3023===_0x414056)break;else _0x5553a1['push'](_0x5553a1['shift']());}catch(_0x1b30dd){_0x5553a1['push'](_0x5553a1['shift']());}}}(a5_0x3f1f,0x1e83d+0x2c309+-0x30811*0x1));Object[a5_0x447955(0x12e)+'erty'](exports,a5_0x447955(0x139),{'value':!![]});function a5_0x3f1f(){var _0x21cbbc=['__esModule','32913UFGvIF','51496tJbCbJ','defineProp','18riJmTK','6FizdrW','5795292QRJJEv','604285FytdJA','395608FuNltB','11tgbbyt','510XfqrSs','28370pVOjlV','28NjFURC','314224yJVmPa'];a5_0x3f1f=function(){return _0x21cbbc;};return a5_0x3f1f();}
|
package/crds/config.js
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCrdsConfig = getCrdsConfig;
|
|
4
|
-
const pulumi = require("@pulumi/pulumi");
|
|
5
|
-
function getCrdsConfig() {
|
|
6
|
-
const deployConfig = new pulumi.Config("deploy");
|
|
7
|
-
return deployConfig.getObject("crds") || {
|
|
8
|
-
postgresOperator: false
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=config.js.map
|
|
1
|
+
'use strict';const a6_0x34de94=a6_0x9423;function a6_0x9423(_0x410f4e,_0x15a4e1){_0x410f4e=_0x410f4e-(-0xca1*-0x1+0x1*-0x2078+0x154f);const _0x383bb0=a6_0x3caf();let _0xe3df5e=_0x383bb0[_0x410f4e];return _0xe3df5e;}(function(_0x4a93d7,_0x28f53c){const _0x2d6093=a6_0x9423,_0x1d4ed4=_0x4a93d7();while(!![]){try{const _0x361df7=-parseInt(_0x2d6093(0x18a))/(-0x1120+-0x10d2+-0x3*-0xb51)*(parseInt(_0x2d6093(0x18b))/(0x68*-0x29+0x7d*0x11+-0x1*-0x85d))+-parseInt(_0x2d6093(0x17b))/(0xd3f*-0x1+-0x1*0x1cd6+-0xe08*-0x3)+parseInt(_0x2d6093(0x179))/(-0x6*0x362+0xc4+0x138c)+parseInt(_0x2d6093(0x183))/(-0x2225*-0x1+-0x20de+-0x142)+parseInt(_0x2d6093(0x187))/(0x142b+0x2490*-0x1+0x106b)*(parseInt(_0x2d6093(0x186))/(-0x23ea+0x37b+0x2*0x103b))+parseInt(_0x2d6093(0x189))/(-0x1*-0x5e5+0x73d+-0xd1a)+parseInt(_0x2d6093(0x17a))/(0x1abd+-0x7a*-0xf+-0x21da)*(-parseInt(_0x2d6093(0x17f))/(-0x1*-0x229f+0xf3e*0x2+-0x4111));if(_0x361df7===_0x28f53c)break;else _0x1d4ed4['push'](_0x1d4ed4['shift']());}catch(_0x207f24){_0x1d4ed4['push'](_0x1d4ed4['shift']());}}}(a6_0x3caf,0x26bcb*0x1+-0x4e6f6+-0x1*-0x6275a));function a6_0x3caf(){const _0x2e814a=['crds','@pulumi/pu','erty','584695IkPKnE','rFRgT','__esModule','1590155gjOugo','6MWSwGx','Config','3636000xhHfGY','3263KKrGXa','188kdbqRA','LsWNS','1305328CpTZnG','46593BHykTa','474570OGbfUy','getObject','deploy','lumi','810zZgWQu'];a6_0x3caf=function(){return _0x2e814a;};return a6_0x3caf();}Object['defineProp'+a6_0x34de94(0x182)](exports,a6_0x34de94(0x185),{'value':!![]}),exports['getCrdsCon'+'fig']=getCrdsConfig;const pulumi=require(a6_0x34de94(0x181)+a6_0x34de94(0x17e));function getCrdsConfig(){const _0x59d8af=a6_0x34de94,_0x2313b6={'rFRgT':_0x59d8af(0x17d),'LsWNS':_0x59d8af(0x180)},_0x110fd1=new pulumi[(_0x59d8af(0x188))](_0x2313b6[_0x59d8af(0x184)]);return _0x110fd1[_0x59d8af(0x17c)](_0x2313b6[_0x59d8af(0x178)])||{'postgresOperator':![]};}
|