pulumi-harness 0.9.0a1760076204__py3-none-any.whl → 0.10.0a1764049859__py3-none-any.whl
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.
- pulumi_harness/__init__.py +24 -0
- pulumi_harness/autostopping/__init__.py +2 -0
- pulumi_harness/autostopping/_inputs.py +1698 -622
- pulumi_harness/autostopping/get_aws_alb.py +4 -0
- pulumi_harness/autostopping/get_aws_proxy.py +4 -0
- pulumi_harness/autostopping/get_azure_gateway.py +4 -0
- pulumi_harness/autostopping/get_azure_proxy.py +4 -0
- pulumi_harness/autostopping/get_gcp_proxy.py +4 -0
- pulumi_harness/autostopping/get_rule_ecs.py +4 -0
- pulumi_harness/autostopping/get_rule_rds.py +4 -0
- pulumi_harness/autostopping/get_rule_scale_group.py +254 -0
- pulumi_harness/autostopping/get_rule_vm.py +4 -0
- pulumi_harness/autostopping/outputs.py +727 -0
- pulumi_harness/autostopping/rule_ecs.py +58 -0
- pulumi_harness/autostopping/rule_scale_group.py +592 -0
- pulumi_harness/cluster/get_orchestrator.py +4 -0
- pulumi_harness/cluster/get_orchestrator_config.py +21 -1
- pulumi_harness/cluster/orchestrator.py +2 -28
- pulumi_harness/cluster/orchestrator_config.py +49 -0
- pulumi_harness/platform/__init__.py +5 -0
- pulumi_harness/platform/_inputs.py +5804 -371
- pulumi_harness/platform/connector_rancher.py +36 -0
- pulumi_harness/platform/db_instance.py +49 -49
- pulumi_harness/platform/db_schema.py +243 -0
- pulumi_harness/platform/environment.py +166 -0
- pulumi_harness/platform/environment_group.py +10 -10
- pulumi_harness/platform/gcp_secret_manager_connector.py +94 -0
- pulumi_harness/platform/get_db_instance.py +21 -21
- pulumi_harness/platform/get_db_schema.py +21 -1
- pulumi_harness/platform/get_default_notification_template_set.py +31 -1
- pulumi_harness/platform/get_gitops_agent_operator_yaml.py +4 -0
- pulumi_harness/platform/get_gitops_app_project_mapping.py +4 -0
- pulumi_harness/platform/get_gitops_applications.py +4 -0
- pulumi_harness/platform/get_gitops_repo_cert.py +4 -0
- pulumi_harness/platform/get_infra_module.py +192 -6
- pulumi_harness/platform/get_infra_module_testing.py +521 -0
- pulumi_harness/platform/get_infra_modules.py +103 -0
- pulumi_harness/platform/get_manual_freeze.py +4 -0
- pulumi_harness/platform/get_pipeline_central_notification_rule.py +2 -26
- pulumi_harness/platform/get_secret_winrm.py +263 -0
- pulumi_harness/platform/git_ops_applications.py +0 -4
- pulumi_harness/platform/gitops_applicationset.py +308 -6
- pulumi_harness/platform/infra_module_testing.py +1134 -0
- pulumi_harness/platform/infrastructure.py +82 -0
- pulumi_harness/platform/outputs.py +4467 -251
- pulumi_harness/platform/pipeline.py +2 -2
- pulumi_harness/platform/pipeline_central_notification_rule.py +187 -0
- pulumi_harness/platform/secret_winrm.py +1082 -0
- pulumi_harness/platform/service.py +150 -0
- pulumi_harness/platform/triggers.py +6 -4
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/METADATA +1 -1
- {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/RECORD +55 -48
- {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/top_level.txt +0 -0
|
@@ -227,14 +227,15 @@ class GitopsApplicationset(pulumi.CustomResource):
|
|
|
227
227
|
import pulumi
|
|
228
228
|
import pulumi_harness as harness
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
# Example 1: Cluster Generator
|
|
231
|
+
cluster_generator = harness.platform.GitopsApplicationset("cluster_generator",
|
|
231
232
|
org_id="default",
|
|
232
233
|
project_id="projectId",
|
|
233
234
|
agent_id="account.agentuseast1",
|
|
234
235
|
upsert=True,
|
|
235
236
|
applicationset={
|
|
236
237
|
"metadata": {
|
|
237
|
-
"name": "
|
|
238
|
+
"name": "cluster-appset",
|
|
238
239
|
"namespace": "argocd",
|
|
239
240
|
},
|
|
240
241
|
"spec": {
|
|
@@ -250,7 +251,6 @@ class GitopsApplicationset(pulumi.CustomResource):
|
|
|
250
251
|
"name": "{{.name}}-guestbook",
|
|
251
252
|
"labels": {
|
|
252
253
|
"env": "dev",
|
|
253
|
-
"harness.io/serviceRef": "svc1",
|
|
254
254
|
},
|
|
255
255
|
},
|
|
256
256
|
"spec": {
|
|
@@ -268,6 +268,157 @@ class GitopsApplicationset(pulumi.CustomResource):
|
|
|
268
268
|
},
|
|
269
269
|
},
|
|
270
270
|
})
|
|
271
|
+
# Example 2: List Generator
|
|
272
|
+
list_generator = harness.platform.GitopsApplicationset("list_generator",
|
|
273
|
+
org_id="default",
|
|
274
|
+
project_id="projectId",
|
|
275
|
+
agent_id="account.agentuseast1",
|
|
276
|
+
upsert=True,
|
|
277
|
+
applicationset={
|
|
278
|
+
"metadata": {
|
|
279
|
+
"name": "list-appset",
|
|
280
|
+
},
|
|
281
|
+
"spec": {
|
|
282
|
+
"go_template": True,
|
|
283
|
+
"go_template_options": ["missingkey=error"],
|
|
284
|
+
"generators": [{
|
|
285
|
+
"lists": [{
|
|
286
|
+
"elements": [
|
|
287
|
+
{
|
|
288
|
+
"cluster": "engineering-dev",
|
|
289
|
+
"url": "https://kubernetes.default.svc",
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"cluster": "engineering-prod",
|
|
293
|
+
"url": "https://kubernetes.prod.svc",
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
}],
|
|
297
|
+
}],
|
|
298
|
+
"template": {
|
|
299
|
+
"metadata": {
|
|
300
|
+
"name": "{{.cluster}}-guestbook",
|
|
301
|
+
},
|
|
302
|
+
"spec": {
|
|
303
|
+
"project": "default",
|
|
304
|
+
"sources": [{
|
|
305
|
+
"repo_url": "https://github.com/argoproj/argocd-example-apps.git",
|
|
306
|
+
"path": "helm-guestbook",
|
|
307
|
+
"target_revision": "HEAD",
|
|
308
|
+
}],
|
|
309
|
+
"destination": {
|
|
310
|
+
"server": "{{.url}}",
|
|
311
|
+
"namespace": "default",
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
})
|
|
317
|
+
# Example 3: Git Generator with Files
|
|
318
|
+
git_files = harness.platform.GitopsApplicationset("git_files",
|
|
319
|
+
org_id="default",
|
|
320
|
+
project_id="projectId",
|
|
321
|
+
agent_id="account.agentuseast1",
|
|
322
|
+
upsert=True,
|
|
323
|
+
applicationset={
|
|
324
|
+
"metadata": {
|
|
325
|
+
"name": "git-files-appset",
|
|
326
|
+
},
|
|
327
|
+
"spec": {
|
|
328
|
+
"generators": [{
|
|
329
|
+
"gits": [{
|
|
330
|
+
"repo_url": "https://github.com/example/config-repo",
|
|
331
|
+
"revision": "main",
|
|
332
|
+
"files": [{
|
|
333
|
+
"path": "apps/*/config.json",
|
|
334
|
+
}],
|
|
335
|
+
}],
|
|
336
|
+
}],
|
|
337
|
+
"template": {
|
|
338
|
+
"metadata": {
|
|
339
|
+
"name": "{{.path.basename}}-app",
|
|
340
|
+
},
|
|
341
|
+
"spec": {
|
|
342
|
+
"project": "default",
|
|
343
|
+
"sources": [{
|
|
344
|
+
"repo_url": "https://github.com/example/app-repo",
|
|
345
|
+
"path": "{{.path.path}}",
|
|
346
|
+
"target_revision": "main",
|
|
347
|
+
}],
|
|
348
|
+
"destination": {
|
|
349
|
+
"server": "https://kubernetes.default.svc",
|
|
350
|
+
"namespace": "{{.path.basename}}",
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
})
|
|
356
|
+
# Example 4: Git Generator with Directories
|
|
357
|
+
git_directories = harness.platform.GitopsApplicationset("git_directories",
|
|
358
|
+
org_id="default",
|
|
359
|
+
project_id="projectId",
|
|
360
|
+
agent_id="account.agentuseast1",
|
|
361
|
+
upsert=True,
|
|
362
|
+
applicationset={
|
|
363
|
+
"metadata": {
|
|
364
|
+
"name": "git-directories-appset",
|
|
365
|
+
},
|
|
366
|
+
"spec": {
|
|
367
|
+
"generators": [{
|
|
368
|
+
"gits": [{
|
|
369
|
+
"repo_url": "https://github.com/argoproj/argo-cd.git",
|
|
370
|
+
"revision": "HEAD",
|
|
371
|
+
"directories": [{
|
|
372
|
+
"path": "applicationset/examples/git-generator-directory/cluster-addons/*",
|
|
373
|
+
"exclude": False,
|
|
374
|
+
}],
|
|
375
|
+
}],
|
|
376
|
+
}],
|
|
377
|
+
"template": {
|
|
378
|
+
"metadata": {
|
|
379
|
+
"name": "{{.path.basename}}-addon",
|
|
380
|
+
},
|
|
381
|
+
"spec": {
|
|
382
|
+
"project": "default",
|
|
383
|
+
"sources": [{
|
|
384
|
+
"repo_url": "https://github.com/argoproj/argo-cd.git",
|
|
385
|
+
"path": "{{.path.path}}",
|
|
386
|
+
"target_revision": "HEAD",
|
|
387
|
+
}],
|
|
388
|
+
"destination": {
|
|
389
|
+
"server": "https://kubernetes.default.svc",
|
|
390
|
+
"namespace": "{{.path.basename}}",
|
|
391
|
+
},
|
|
392
|
+
"sync_policy": {
|
|
393
|
+
"automated": {
|
|
394
|
+
"prune": True,
|
|
395
|
+
"self_heal": True,
|
|
396
|
+
},
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
},
|
|
401
|
+
})
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
## Import
|
|
405
|
+
|
|
406
|
+
Import gitOps applicationset with account level agent, agent id has account prefix #
|
|
407
|
+
|
|
408
|
+
```sh
|
|
409
|
+
$ pulumi import harness:platform/gitopsApplicationset:GitopsApplicationset example <organization_id>/<project_id>/<agent_id>/<identifier>
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
Import gitOps applicationset with org level agent, agent id has org prefix #
|
|
413
|
+
|
|
414
|
+
```sh
|
|
415
|
+
$ pulumi import harness:platform/gitopsApplicationset:GitopsApplicationset example <organization_id>/<project_id>/<agent_id>/<identifier>
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
Import gitOps applicationset with project level agent #
|
|
419
|
+
|
|
420
|
+
```sh
|
|
421
|
+
$ pulumi import harness:platform/gitopsApplicationset:GitopsApplicationset example <organization_id>/<project_id>/<agent_id>/<identifier>
|
|
271
422
|
```
|
|
272
423
|
|
|
273
424
|
:param str resource_name: The name of the resource.
|
|
@@ -293,14 +444,15 @@ class GitopsApplicationset(pulumi.CustomResource):
|
|
|
293
444
|
import pulumi
|
|
294
445
|
import pulumi_harness as harness
|
|
295
446
|
|
|
296
|
-
|
|
447
|
+
# Example 1: Cluster Generator
|
|
448
|
+
cluster_generator = harness.platform.GitopsApplicationset("cluster_generator",
|
|
297
449
|
org_id="default",
|
|
298
450
|
project_id="projectId",
|
|
299
451
|
agent_id="account.agentuseast1",
|
|
300
452
|
upsert=True,
|
|
301
453
|
applicationset={
|
|
302
454
|
"metadata": {
|
|
303
|
-
"name": "
|
|
455
|
+
"name": "cluster-appset",
|
|
304
456
|
"namespace": "argocd",
|
|
305
457
|
},
|
|
306
458
|
"spec": {
|
|
@@ -316,7 +468,6 @@ class GitopsApplicationset(pulumi.CustomResource):
|
|
|
316
468
|
"name": "{{.name}}-guestbook",
|
|
317
469
|
"labels": {
|
|
318
470
|
"env": "dev",
|
|
319
|
-
"harness.io/serviceRef": "svc1",
|
|
320
471
|
},
|
|
321
472
|
},
|
|
322
473
|
"spec": {
|
|
@@ -334,6 +485,157 @@ class GitopsApplicationset(pulumi.CustomResource):
|
|
|
334
485
|
},
|
|
335
486
|
},
|
|
336
487
|
})
|
|
488
|
+
# Example 2: List Generator
|
|
489
|
+
list_generator = harness.platform.GitopsApplicationset("list_generator",
|
|
490
|
+
org_id="default",
|
|
491
|
+
project_id="projectId",
|
|
492
|
+
agent_id="account.agentuseast1",
|
|
493
|
+
upsert=True,
|
|
494
|
+
applicationset={
|
|
495
|
+
"metadata": {
|
|
496
|
+
"name": "list-appset",
|
|
497
|
+
},
|
|
498
|
+
"spec": {
|
|
499
|
+
"go_template": True,
|
|
500
|
+
"go_template_options": ["missingkey=error"],
|
|
501
|
+
"generators": [{
|
|
502
|
+
"lists": [{
|
|
503
|
+
"elements": [
|
|
504
|
+
{
|
|
505
|
+
"cluster": "engineering-dev",
|
|
506
|
+
"url": "https://kubernetes.default.svc",
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"cluster": "engineering-prod",
|
|
510
|
+
"url": "https://kubernetes.prod.svc",
|
|
511
|
+
},
|
|
512
|
+
],
|
|
513
|
+
}],
|
|
514
|
+
}],
|
|
515
|
+
"template": {
|
|
516
|
+
"metadata": {
|
|
517
|
+
"name": "{{.cluster}}-guestbook",
|
|
518
|
+
},
|
|
519
|
+
"spec": {
|
|
520
|
+
"project": "default",
|
|
521
|
+
"sources": [{
|
|
522
|
+
"repo_url": "https://github.com/argoproj/argocd-example-apps.git",
|
|
523
|
+
"path": "helm-guestbook",
|
|
524
|
+
"target_revision": "HEAD",
|
|
525
|
+
}],
|
|
526
|
+
"destination": {
|
|
527
|
+
"server": "{{.url}}",
|
|
528
|
+
"namespace": "default",
|
|
529
|
+
},
|
|
530
|
+
},
|
|
531
|
+
},
|
|
532
|
+
},
|
|
533
|
+
})
|
|
534
|
+
# Example 3: Git Generator with Files
|
|
535
|
+
git_files = harness.platform.GitopsApplicationset("git_files",
|
|
536
|
+
org_id="default",
|
|
537
|
+
project_id="projectId",
|
|
538
|
+
agent_id="account.agentuseast1",
|
|
539
|
+
upsert=True,
|
|
540
|
+
applicationset={
|
|
541
|
+
"metadata": {
|
|
542
|
+
"name": "git-files-appset",
|
|
543
|
+
},
|
|
544
|
+
"spec": {
|
|
545
|
+
"generators": [{
|
|
546
|
+
"gits": [{
|
|
547
|
+
"repo_url": "https://github.com/example/config-repo",
|
|
548
|
+
"revision": "main",
|
|
549
|
+
"files": [{
|
|
550
|
+
"path": "apps/*/config.json",
|
|
551
|
+
}],
|
|
552
|
+
}],
|
|
553
|
+
}],
|
|
554
|
+
"template": {
|
|
555
|
+
"metadata": {
|
|
556
|
+
"name": "{{.path.basename}}-app",
|
|
557
|
+
},
|
|
558
|
+
"spec": {
|
|
559
|
+
"project": "default",
|
|
560
|
+
"sources": [{
|
|
561
|
+
"repo_url": "https://github.com/example/app-repo",
|
|
562
|
+
"path": "{{.path.path}}",
|
|
563
|
+
"target_revision": "main",
|
|
564
|
+
}],
|
|
565
|
+
"destination": {
|
|
566
|
+
"server": "https://kubernetes.default.svc",
|
|
567
|
+
"namespace": "{{.path.basename}}",
|
|
568
|
+
},
|
|
569
|
+
},
|
|
570
|
+
},
|
|
571
|
+
},
|
|
572
|
+
})
|
|
573
|
+
# Example 4: Git Generator with Directories
|
|
574
|
+
git_directories = harness.platform.GitopsApplicationset("git_directories",
|
|
575
|
+
org_id="default",
|
|
576
|
+
project_id="projectId",
|
|
577
|
+
agent_id="account.agentuseast1",
|
|
578
|
+
upsert=True,
|
|
579
|
+
applicationset={
|
|
580
|
+
"metadata": {
|
|
581
|
+
"name": "git-directories-appset",
|
|
582
|
+
},
|
|
583
|
+
"spec": {
|
|
584
|
+
"generators": [{
|
|
585
|
+
"gits": [{
|
|
586
|
+
"repo_url": "https://github.com/argoproj/argo-cd.git",
|
|
587
|
+
"revision": "HEAD",
|
|
588
|
+
"directories": [{
|
|
589
|
+
"path": "applicationset/examples/git-generator-directory/cluster-addons/*",
|
|
590
|
+
"exclude": False,
|
|
591
|
+
}],
|
|
592
|
+
}],
|
|
593
|
+
}],
|
|
594
|
+
"template": {
|
|
595
|
+
"metadata": {
|
|
596
|
+
"name": "{{.path.basename}}-addon",
|
|
597
|
+
},
|
|
598
|
+
"spec": {
|
|
599
|
+
"project": "default",
|
|
600
|
+
"sources": [{
|
|
601
|
+
"repo_url": "https://github.com/argoproj/argo-cd.git",
|
|
602
|
+
"path": "{{.path.path}}",
|
|
603
|
+
"target_revision": "HEAD",
|
|
604
|
+
}],
|
|
605
|
+
"destination": {
|
|
606
|
+
"server": "https://kubernetes.default.svc",
|
|
607
|
+
"namespace": "{{.path.basename}}",
|
|
608
|
+
},
|
|
609
|
+
"sync_policy": {
|
|
610
|
+
"automated": {
|
|
611
|
+
"prune": True,
|
|
612
|
+
"self_heal": True,
|
|
613
|
+
},
|
|
614
|
+
},
|
|
615
|
+
},
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
})
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
## Import
|
|
622
|
+
|
|
623
|
+
Import gitOps applicationset with account level agent, agent id has account prefix #
|
|
624
|
+
|
|
625
|
+
```sh
|
|
626
|
+
$ pulumi import harness:platform/gitopsApplicationset:GitopsApplicationset example <organization_id>/<project_id>/<agent_id>/<identifier>
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
Import gitOps applicationset with org level agent, agent id has org prefix #
|
|
630
|
+
|
|
631
|
+
```sh
|
|
632
|
+
$ pulumi import harness:platform/gitopsApplicationset:GitopsApplicationset example <organization_id>/<project_id>/<agent_id>/<identifier>
|
|
633
|
+
```
|
|
634
|
+
|
|
635
|
+
Import gitOps applicationset with project level agent #
|
|
636
|
+
|
|
637
|
+
```sh
|
|
638
|
+
$ pulumi import harness:platform/gitopsApplicationset:GitopsApplicationset example <organization_id>/<project_id>/<agent_id>/<identifier>
|
|
337
639
|
```
|
|
338
640
|
|
|
339
641
|
:param str resource_name: The name of the resource.
|