pulumi-harness 0.6.0a1741326556__py3-none-any.whl → 0.6.0a1741413027__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.
Potentially problematic release.
This version of pulumi-harness might be problematic. Click here for more details.
- pulumi_harness/platform/__init__.py +1 -0
- pulumi_harness/platform/_inputs.py +182 -101
- pulumi_harness/platform/environment.py +17 -17
- pulumi_harness/platform/environment_group.py +14 -14
- pulumi_harness/platform/feature_flag.py +47 -0
- pulumi_harness/platform/get_gitops_agent_operator_yaml.py +250 -0
- pulumi_harness/platform/get_vault_connector.py +57 -1
- pulumi_harness/platform/har_registry.py +105 -56
- pulumi_harness/platform/infrastructure.py +17 -17
- pulumi_harness/platform/outputs.py +134 -85
- pulumi_harness/platform/service.py +14 -14
- pulumi_harness/platform/template.py +17 -17
- pulumi_harness/platform/terraform_cloud_connector.py +47 -0
- pulumi_harness/platform/vault_connector.py +254 -10
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.6.0a1741326556.dist-info → pulumi_harness-0.6.0a1741413027.dist-info}/METADATA +1 -1
- {pulumi_harness-0.6.0a1741326556.dist-info → pulumi_harness-0.6.0a1741413027.dist-info}/RECORD +19 -18
- {pulumi_harness-0.6.0a1741326556.dist-info → pulumi_harness-0.6.0a1741413027.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.6.0a1741326556.dist-info → pulumi_harness-0.6.0a1741413027.dist-info}/top_level.txt +0 -0
|
@@ -29,6 +29,7 @@ class FeatureFlagArgs:
|
|
|
29
29
|
permanent: pulumi.Input[bool],
|
|
30
30
|
project_id: pulumi.Input[str],
|
|
31
31
|
variations: pulumi.Input[Sequence[pulumi.Input['FeatureFlagVariationArgs']]],
|
|
32
|
+
archived: Optional[pulumi.Input[bool]] = None,
|
|
32
33
|
description: Optional[pulumi.Input[str]] = None,
|
|
33
34
|
environments: Optional[pulumi.Input[Sequence[pulumi.Input['FeatureFlagEnvironmentArgs']]]] = None,
|
|
34
35
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -44,6 +45,7 @@ class FeatureFlagArgs:
|
|
|
44
45
|
:param pulumi.Input[bool] permanent: Whether or not the flag is permanent. If it is, it will never be flagged as stale
|
|
45
46
|
:param pulumi.Input[str] project_id: Project Identifier
|
|
46
47
|
:param pulumi.Input[Sequence[pulumi.Input['FeatureFlagVariationArgs']]] variations: The options available for your flag
|
|
48
|
+
:param pulumi.Input[bool] archived: Whether or not the flag is archived.
|
|
47
49
|
:param pulumi.Input[str] description: Description of the Feature Flag
|
|
48
50
|
:param pulumi.Input[Sequence[pulumi.Input['FeatureFlagEnvironmentArgs']]] environments: Environment Identifier
|
|
49
51
|
:param pulumi.Input[str] name: Name of the Feature Flag
|
|
@@ -58,6 +60,8 @@ class FeatureFlagArgs:
|
|
|
58
60
|
pulumi.set(__self__, "permanent", permanent)
|
|
59
61
|
pulumi.set(__self__, "project_id", project_id)
|
|
60
62
|
pulumi.set(__self__, "variations", variations)
|
|
63
|
+
if archived is not None:
|
|
64
|
+
pulumi.set(__self__, "archived", archived)
|
|
61
65
|
if description is not None:
|
|
62
66
|
pulumi.set(__self__, "description", description)
|
|
63
67
|
if environments is not None:
|
|
@@ -165,6 +169,18 @@ class FeatureFlagArgs:
|
|
|
165
169
|
def variations(self, value: pulumi.Input[Sequence[pulumi.Input['FeatureFlagVariationArgs']]]):
|
|
166
170
|
pulumi.set(self, "variations", value)
|
|
167
171
|
|
|
172
|
+
@property
|
|
173
|
+
@pulumi.getter
|
|
174
|
+
def archived(self) -> Optional[pulumi.Input[bool]]:
|
|
175
|
+
"""
|
|
176
|
+
Whether or not the flag is archived.
|
|
177
|
+
"""
|
|
178
|
+
return pulumi.get(self, "archived")
|
|
179
|
+
|
|
180
|
+
@archived.setter
|
|
181
|
+
def archived(self, value: Optional[pulumi.Input[bool]]):
|
|
182
|
+
pulumi.set(self, "archived", value)
|
|
183
|
+
|
|
168
184
|
@property
|
|
169
185
|
@pulumi.getter
|
|
170
186
|
def description(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -229,6 +245,7 @@ class FeatureFlagArgs:
|
|
|
229
245
|
@pulumi.input_type
|
|
230
246
|
class _FeatureFlagState:
|
|
231
247
|
def __init__(__self__, *,
|
|
248
|
+
archived: Optional[pulumi.Input[bool]] = None,
|
|
232
249
|
default_off_variation: Optional[pulumi.Input[str]] = None,
|
|
233
250
|
default_on_variation: Optional[pulumi.Input[str]] = None,
|
|
234
251
|
description: Optional[pulumi.Input[str]] = None,
|
|
@@ -244,6 +261,7 @@ class _FeatureFlagState:
|
|
|
244
261
|
variations: Optional[pulumi.Input[Sequence[pulumi.Input['FeatureFlagVariationArgs']]]] = None):
|
|
245
262
|
"""
|
|
246
263
|
Input properties used for looking up and filtering FeatureFlag resources.
|
|
264
|
+
:param pulumi.Input[bool] archived: Whether or not the flag is archived.
|
|
247
265
|
:param pulumi.Input[str] default_off_variation: Which of the variations to use when the flag is toggled to off state
|
|
248
266
|
:param pulumi.Input[str] default_on_variation: Which of the variations to use when the flag is toggled to on state
|
|
249
267
|
:param pulumi.Input[str] description: Description of the Feature Flag
|
|
@@ -258,6 +276,8 @@ class _FeatureFlagState:
|
|
|
258
276
|
:param pulumi.Input[Sequence[pulumi.Input['FeatureFlagTagArgs']]] tags: The tags for the flag
|
|
259
277
|
:param pulumi.Input[Sequence[pulumi.Input['FeatureFlagVariationArgs']]] variations: The options available for your flag
|
|
260
278
|
"""
|
|
279
|
+
if archived is not None:
|
|
280
|
+
pulumi.set(__self__, "archived", archived)
|
|
261
281
|
if default_off_variation is not None:
|
|
262
282
|
pulumi.set(__self__, "default_off_variation", default_off_variation)
|
|
263
283
|
if default_on_variation is not None:
|
|
@@ -285,6 +305,18 @@ class _FeatureFlagState:
|
|
|
285
305
|
if variations is not None:
|
|
286
306
|
pulumi.set(__self__, "variations", variations)
|
|
287
307
|
|
|
308
|
+
@property
|
|
309
|
+
@pulumi.getter
|
|
310
|
+
def archived(self) -> Optional[pulumi.Input[bool]]:
|
|
311
|
+
"""
|
|
312
|
+
Whether or not the flag is archived.
|
|
313
|
+
"""
|
|
314
|
+
return pulumi.get(self, "archived")
|
|
315
|
+
|
|
316
|
+
@archived.setter
|
|
317
|
+
def archived(self, value: Optional[pulumi.Input[bool]]):
|
|
318
|
+
pulumi.set(self, "archived", value)
|
|
319
|
+
|
|
288
320
|
@property
|
|
289
321
|
@pulumi.getter(name="defaultOffVariation")
|
|
290
322
|
def default_off_variation(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -447,6 +479,7 @@ class FeatureFlag(pulumi.CustomResource):
|
|
|
447
479
|
def __init__(__self__,
|
|
448
480
|
resource_name: str,
|
|
449
481
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
482
|
+
archived: Optional[pulumi.Input[bool]] = None,
|
|
450
483
|
default_off_variation: Optional[pulumi.Input[str]] = None,
|
|
451
484
|
default_on_variation: Optional[pulumi.Input[str]] = None,
|
|
452
485
|
description: Optional[pulumi.Input[str]] = None,
|
|
@@ -466,6 +499,7 @@ class FeatureFlag(pulumi.CustomResource):
|
|
|
466
499
|
|
|
467
500
|
:param str resource_name: The name of the resource.
|
|
468
501
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
502
|
+
:param pulumi.Input[bool] archived: Whether or not the flag is archived.
|
|
469
503
|
:param pulumi.Input[str] default_off_variation: Which of the variations to use when the flag is toggled to off state
|
|
470
504
|
:param pulumi.Input[str] default_on_variation: Which of the variations to use when the flag is toggled to on state
|
|
471
505
|
:param pulumi.Input[str] description: Description of the Feature Flag
|
|
@@ -504,6 +538,7 @@ class FeatureFlag(pulumi.CustomResource):
|
|
|
504
538
|
def _internal_init(__self__,
|
|
505
539
|
resource_name: str,
|
|
506
540
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
541
|
+
archived: Optional[pulumi.Input[bool]] = None,
|
|
507
542
|
default_off_variation: Optional[pulumi.Input[str]] = None,
|
|
508
543
|
default_on_variation: Optional[pulumi.Input[str]] = None,
|
|
509
544
|
description: Optional[pulumi.Input[str]] = None,
|
|
@@ -526,6 +561,7 @@ class FeatureFlag(pulumi.CustomResource):
|
|
|
526
561
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
527
562
|
__props__ = FeatureFlagArgs.__new__(FeatureFlagArgs)
|
|
528
563
|
|
|
564
|
+
__props__.__dict__["archived"] = archived
|
|
529
565
|
if default_off_variation is None and not opts.urn:
|
|
530
566
|
raise TypeError("Missing required property 'default_off_variation'")
|
|
531
567
|
__props__.__dict__["default_off_variation"] = default_off_variation
|
|
@@ -565,6 +601,7 @@ class FeatureFlag(pulumi.CustomResource):
|
|
|
565
601
|
def get(resource_name: str,
|
|
566
602
|
id: pulumi.Input[str],
|
|
567
603
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
604
|
+
archived: Optional[pulumi.Input[bool]] = None,
|
|
568
605
|
default_off_variation: Optional[pulumi.Input[str]] = None,
|
|
569
606
|
default_on_variation: Optional[pulumi.Input[str]] = None,
|
|
570
607
|
description: Optional[pulumi.Input[str]] = None,
|
|
@@ -585,6 +622,7 @@ class FeatureFlag(pulumi.CustomResource):
|
|
|
585
622
|
:param str resource_name: The unique name of the resulting resource.
|
|
586
623
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
587
624
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
625
|
+
:param pulumi.Input[bool] archived: Whether or not the flag is archived.
|
|
588
626
|
:param pulumi.Input[str] default_off_variation: Which of the variations to use when the flag is toggled to off state
|
|
589
627
|
:param pulumi.Input[str] default_on_variation: Which of the variations to use when the flag is toggled to on state
|
|
590
628
|
:param pulumi.Input[str] description: Description of the Feature Flag
|
|
@@ -603,6 +641,7 @@ class FeatureFlag(pulumi.CustomResource):
|
|
|
603
641
|
|
|
604
642
|
__props__ = _FeatureFlagState.__new__(_FeatureFlagState)
|
|
605
643
|
|
|
644
|
+
__props__.__dict__["archived"] = archived
|
|
606
645
|
__props__.__dict__["default_off_variation"] = default_off_variation
|
|
607
646
|
__props__.__dict__["default_on_variation"] = default_on_variation
|
|
608
647
|
__props__.__dict__["description"] = description
|
|
@@ -618,6 +657,14 @@ class FeatureFlag(pulumi.CustomResource):
|
|
|
618
657
|
__props__.__dict__["variations"] = variations
|
|
619
658
|
return FeatureFlag(resource_name, opts=opts, __props__=__props__)
|
|
620
659
|
|
|
660
|
+
@property
|
|
661
|
+
@pulumi.getter
|
|
662
|
+
def archived(self) -> pulumi.Output[Optional[bool]]:
|
|
663
|
+
"""
|
|
664
|
+
Whether or not the flag is archived.
|
|
665
|
+
"""
|
|
666
|
+
return pulumi.get(self, "archived")
|
|
667
|
+
|
|
621
668
|
@property
|
|
622
669
|
@pulumi.getter(name="defaultOffVariation")
|
|
623
670
|
def default_off_variation(self) -> pulumi.Output[str]:
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
# coding=utf-8
|
|
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
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
'GetGitopsAgentOperatorYamlResult',
|
|
21
|
+
'AwaitableGetGitopsAgentOperatorYamlResult',
|
|
22
|
+
'get_gitops_agent_operator_yaml',
|
|
23
|
+
'get_gitops_agent_operator_yaml_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetGitopsAgentOperatorYamlResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getGitopsAgentOperatorYaml.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, ca_data=None, id=None, identifier=None, namespace=None, org_id=None, private_key=None, project_id=None, proxies=None, skip_crds=None, yaml=None):
|
|
32
|
+
if ca_data and not isinstance(ca_data, str):
|
|
33
|
+
raise TypeError("Expected argument 'ca_data' to be a str")
|
|
34
|
+
pulumi.set(__self__, "ca_data", ca_data)
|
|
35
|
+
if id and not isinstance(id, str):
|
|
36
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
37
|
+
pulumi.set(__self__, "id", id)
|
|
38
|
+
if identifier and not isinstance(identifier, str):
|
|
39
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
40
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
41
|
+
if namespace and not isinstance(namespace, str):
|
|
42
|
+
raise TypeError("Expected argument 'namespace' to be a str")
|
|
43
|
+
pulumi.set(__self__, "namespace", namespace)
|
|
44
|
+
if org_id and not isinstance(org_id, str):
|
|
45
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
46
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
47
|
+
if private_key and not isinstance(private_key, str):
|
|
48
|
+
raise TypeError("Expected argument 'private_key' to be a str")
|
|
49
|
+
pulumi.set(__self__, "private_key", private_key)
|
|
50
|
+
if project_id and not isinstance(project_id, str):
|
|
51
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
52
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
53
|
+
if proxies and not isinstance(proxies, list):
|
|
54
|
+
raise TypeError("Expected argument 'proxies' to be a list")
|
|
55
|
+
pulumi.set(__self__, "proxies", proxies)
|
|
56
|
+
if skip_crds and not isinstance(skip_crds, bool):
|
|
57
|
+
raise TypeError("Expected argument 'skip_crds' to be a bool")
|
|
58
|
+
pulumi.set(__self__, "skip_crds", skip_crds)
|
|
59
|
+
if yaml and not isinstance(yaml, str):
|
|
60
|
+
raise TypeError("Expected argument 'yaml' to be a str")
|
|
61
|
+
pulumi.set(__self__, "yaml", yaml)
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
@pulumi.getter(name="caData")
|
|
65
|
+
def ca_data(self) -> Optional[str]:
|
|
66
|
+
"""
|
|
67
|
+
CA data of the GitOps agent, base64 encoded content of ca chain.
|
|
68
|
+
"""
|
|
69
|
+
return pulumi.get(self, "ca_data")
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
@pulumi.getter
|
|
73
|
+
def id(self) -> str:
|
|
74
|
+
"""
|
|
75
|
+
The provider-assigned unique ID for this managed resource.
|
|
76
|
+
"""
|
|
77
|
+
return pulumi.get(self, "id")
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
@pulumi.getter
|
|
81
|
+
def identifier(self) -> str:
|
|
82
|
+
"""
|
|
83
|
+
Identifier of the GitOps agent.
|
|
84
|
+
"""
|
|
85
|
+
return pulumi.get(self, "identifier")
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
@pulumi.getter
|
|
89
|
+
def namespace(self) -> str:
|
|
90
|
+
"""
|
|
91
|
+
The kubernetes namespace where the agent is installed.
|
|
92
|
+
"""
|
|
93
|
+
return pulumi.get(self, "namespace")
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
@pulumi.getter(name="orgId")
|
|
97
|
+
def org_id(self) -> Optional[str]:
|
|
98
|
+
"""
|
|
99
|
+
Organization identifier of the GitOps agent.
|
|
100
|
+
"""
|
|
101
|
+
return pulumi.get(self, "org_id")
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
@pulumi.getter(name="privateKey")
|
|
105
|
+
def private_key(self) -> Optional[str]:
|
|
106
|
+
"""
|
|
107
|
+
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
|
|
108
|
+
"""
|
|
109
|
+
return pulumi.get(self, "private_key")
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
@pulumi.getter(name="projectId")
|
|
113
|
+
def project_id(self) -> Optional[str]:
|
|
114
|
+
"""
|
|
115
|
+
Project identifier of the GitOps agent.
|
|
116
|
+
"""
|
|
117
|
+
return pulumi.get(self, "project_id")
|
|
118
|
+
|
|
119
|
+
@property
|
|
120
|
+
@pulumi.getter
|
|
121
|
+
def proxies(self) -> Optional[Sequence['outputs.GetGitopsAgentOperatorYamlProxyResult']]:
|
|
122
|
+
"""
|
|
123
|
+
Proxy settings for the GitOps agent.
|
|
124
|
+
"""
|
|
125
|
+
return pulumi.get(self, "proxies")
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
@pulumi.getter(name="skipCrds")
|
|
129
|
+
def skip_crds(self) -> Optional[bool]:
|
|
130
|
+
"""
|
|
131
|
+
Skip CRDs for the GitOps agent.
|
|
132
|
+
"""
|
|
133
|
+
return pulumi.get(self, "skip_crds")
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
@pulumi.getter
|
|
137
|
+
def yaml(self) -> str:
|
|
138
|
+
"""
|
|
139
|
+
The operator manifest YAML of the GitOps agent.
|
|
140
|
+
"""
|
|
141
|
+
return pulumi.get(self, "yaml")
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
class AwaitableGetGitopsAgentOperatorYamlResult(GetGitopsAgentOperatorYamlResult):
|
|
145
|
+
# pylint: disable=using-constant-test
|
|
146
|
+
def __await__(self):
|
|
147
|
+
if False:
|
|
148
|
+
yield self
|
|
149
|
+
return GetGitopsAgentOperatorYamlResult(
|
|
150
|
+
ca_data=self.ca_data,
|
|
151
|
+
id=self.id,
|
|
152
|
+
identifier=self.identifier,
|
|
153
|
+
namespace=self.namespace,
|
|
154
|
+
org_id=self.org_id,
|
|
155
|
+
private_key=self.private_key,
|
|
156
|
+
project_id=self.project_id,
|
|
157
|
+
proxies=self.proxies,
|
|
158
|
+
skip_crds=self.skip_crds,
|
|
159
|
+
yaml=self.yaml)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
def get_gitops_agent_operator_yaml(ca_data: Optional[str] = None,
|
|
163
|
+
identifier: Optional[str] = None,
|
|
164
|
+
namespace: Optional[str] = None,
|
|
165
|
+
org_id: Optional[str] = None,
|
|
166
|
+
private_key: Optional[str] = None,
|
|
167
|
+
project_id: Optional[str] = None,
|
|
168
|
+
proxies: Optional[Sequence[Union['GetGitopsAgentOperatorYamlProxyArgs', 'GetGitopsAgentOperatorYamlProxyArgsDict']]] = None,
|
|
169
|
+
skip_crds: Optional[bool] = None,
|
|
170
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGitopsAgentOperatorYamlResult:
|
|
171
|
+
"""
|
|
172
|
+
Datasource for fetching a Harness Gitops Agent operator manifest YAML.
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
:param str ca_data: CA data of the GitOps agent, base64 encoded content of ca chain.
|
|
176
|
+
:param str identifier: Identifier of the GitOps agent.
|
|
177
|
+
:param str namespace: The kubernetes namespace where the agent is installed.
|
|
178
|
+
:param str org_id: Organization identifier of the GitOps agent.
|
|
179
|
+
:param str private_key: Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
|
|
180
|
+
:param str project_id: Project identifier of the GitOps agent.
|
|
181
|
+
:param Sequence[Union['GetGitopsAgentOperatorYamlProxyArgs', 'GetGitopsAgentOperatorYamlProxyArgsDict']] proxies: Proxy settings for the GitOps agent.
|
|
182
|
+
:param bool skip_crds: Skip CRDs for the GitOps agent.
|
|
183
|
+
"""
|
|
184
|
+
__args__ = dict()
|
|
185
|
+
__args__['caData'] = ca_data
|
|
186
|
+
__args__['identifier'] = identifier
|
|
187
|
+
__args__['namespace'] = namespace
|
|
188
|
+
__args__['orgId'] = org_id
|
|
189
|
+
__args__['privateKey'] = private_key
|
|
190
|
+
__args__['projectId'] = project_id
|
|
191
|
+
__args__['proxies'] = proxies
|
|
192
|
+
__args__['skipCrds'] = skip_crds
|
|
193
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
194
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getGitopsAgentOperatorYaml:getGitopsAgentOperatorYaml', __args__, opts=opts, typ=GetGitopsAgentOperatorYamlResult).value
|
|
195
|
+
|
|
196
|
+
return AwaitableGetGitopsAgentOperatorYamlResult(
|
|
197
|
+
ca_data=pulumi.get(__ret__, 'ca_data'),
|
|
198
|
+
id=pulumi.get(__ret__, 'id'),
|
|
199
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
200
|
+
namespace=pulumi.get(__ret__, 'namespace'),
|
|
201
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
202
|
+
private_key=pulumi.get(__ret__, 'private_key'),
|
|
203
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
204
|
+
proxies=pulumi.get(__ret__, 'proxies'),
|
|
205
|
+
skip_crds=pulumi.get(__ret__, 'skip_crds'),
|
|
206
|
+
yaml=pulumi.get(__ret__, 'yaml'))
|
|
207
|
+
def get_gitops_agent_operator_yaml_output(ca_data: Optional[pulumi.Input[Optional[str]]] = None,
|
|
208
|
+
identifier: Optional[pulumi.Input[str]] = None,
|
|
209
|
+
namespace: Optional[pulumi.Input[str]] = None,
|
|
210
|
+
org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
211
|
+
private_key: Optional[pulumi.Input[Optional[str]]] = None,
|
|
212
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
213
|
+
proxies: Optional[pulumi.Input[Optional[Sequence[Union['GetGitopsAgentOperatorYamlProxyArgs', 'GetGitopsAgentOperatorYamlProxyArgsDict']]]]] = None,
|
|
214
|
+
skip_crds: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
215
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGitopsAgentOperatorYamlResult]:
|
|
216
|
+
"""
|
|
217
|
+
Datasource for fetching a Harness Gitops Agent operator manifest YAML.
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
:param str ca_data: CA data of the GitOps agent, base64 encoded content of ca chain.
|
|
221
|
+
:param str identifier: Identifier of the GitOps agent.
|
|
222
|
+
:param str namespace: The kubernetes namespace where the agent is installed.
|
|
223
|
+
:param str org_id: Organization identifier of the GitOps agent.
|
|
224
|
+
:param str private_key: Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
|
|
225
|
+
:param str project_id: Project identifier of the GitOps agent.
|
|
226
|
+
:param Sequence[Union['GetGitopsAgentOperatorYamlProxyArgs', 'GetGitopsAgentOperatorYamlProxyArgsDict']] proxies: Proxy settings for the GitOps agent.
|
|
227
|
+
:param bool skip_crds: Skip CRDs for the GitOps agent.
|
|
228
|
+
"""
|
|
229
|
+
__args__ = dict()
|
|
230
|
+
__args__['caData'] = ca_data
|
|
231
|
+
__args__['identifier'] = identifier
|
|
232
|
+
__args__['namespace'] = namespace
|
|
233
|
+
__args__['orgId'] = org_id
|
|
234
|
+
__args__['privateKey'] = private_key
|
|
235
|
+
__args__['projectId'] = project_id
|
|
236
|
+
__args__['proxies'] = proxies
|
|
237
|
+
__args__['skipCrds'] = skip_crds
|
|
238
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
239
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getGitopsAgentOperatorYaml:getGitopsAgentOperatorYaml', __args__, opts=opts, typ=GetGitopsAgentOperatorYamlResult)
|
|
240
|
+
return __ret__.apply(lambda __response__: GetGitopsAgentOperatorYamlResult(
|
|
241
|
+
ca_data=pulumi.get(__response__, 'ca_data'),
|
|
242
|
+
id=pulumi.get(__response__, 'id'),
|
|
243
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
244
|
+
namespace=pulumi.get(__response__, 'namespace'),
|
|
245
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
246
|
+
private_key=pulumi.get(__response__, 'private_key'),
|
|
247
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
248
|
+
proxies=pulumi.get(__response__, 'proxies'),
|
|
249
|
+
skip_crds=pulumi.get(__response__, 'skip_crds'),
|
|
250
|
+
yaml=pulumi.get(__response__, 'yaml')))
|
|
@@ -26,7 +26,7 @@ class GetVaultConnectorResult:
|
|
|
26
26
|
"""
|
|
27
27
|
A collection of values returned by getVaultConnector.
|
|
28
28
|
"""
|
|
29
|
-
def __init__(__self__, access_type=None, app_role_id=None, auth_token=None, aws_region=None, base_path=None, default=None, delegate_selectors=None, description=None, id=None, identifier=None, is_default=None, is_read_only=None, k8s_auth_endpoint=None, name=None, namespace=None, org_id=None, project_id=None, read_only=None, renew_app_role_token=None, renewal_interval_minutes=None, secret_engine_manually_configured=None, secret_engine_name=None, secret_engine_version=None, secret_id=None, service_account_token_path=None, sink_path=None, tags=None, use_aws_iam=None, use_k8s_auth=None, use_vault_agent=None, vault_aws_iam_role=None, vault_k8s_auth_role=None, vault_url=None, xvault_aws_iam_server_id=None):
|
|
29
|
+
def __init__(__self__, access_type=None, app_role_id=None, auth_token=None, aws_region=None, base_path=None, default=None, delegate_selectors=None, description=None, execute_on_delegate=None, id=None, identifier=None, is_default=None, is_read_only=None, k8s_auth_endpoint=None, name=None, namespace=None, org_id=None, project_id=None, read_only=None, renew_app_role_token=None, renewal_interval_minutes=None, secret_engine_manually_configured=None, secret_engine_name=None, secret_engine_version=None, secret_id=None, service_account_token_path=None, sink_path=None, tags=None, use_aws_iam=None, use_jwt_auth=None, use_k8s_auth=None, use_vault_agent=None, vault_aws_iam_role=None, vault_jwt_auth_path=None, vault_jwt_auth_role=None, vault_k8s_auth_role=None, vault_url=None, xvault_aws_iam_server_id=None):
|
|
30
30
|
if access_type and not isinstance(access_type, str):
|
|
31
31
|
raise TypeError("Expected argument 'access_type' to be a str")
|
|
32
32
|
pulumi.set(__self__, "access_type", access_type)
|
|
@@ -51,6 +51,9 @@ class GetVaultConnectorResult:
|
|
|
51
51
|
if description and not isinstance(description, str):
|
|
52
52
|
raise TypeError("Expected argument 'description' to be a str")
|
|
53
53
|
pulumi.set(__self__, "description", description)
|
|
54
|
+
if execute_on_delegate and not isinstance(execute_on_delegate, bool):
|
|
55
|
+
raise TypeError("Expected argument 'execute_on_delegate' to be a bool")
|
|
56
|
+
pulumi.set(__self__, "execute_on_delegate", execute_on_delegate)
|
|
54
57
|
if id and not isinstance(id, str):
|
|
55
58
|
raise TypeError("Expected argument 'id' to be a str")
|
|
56
59
|
pulumi.set(__self__, "id", id)
|
|
@@ -111,6 +114,9 @@ class GetVaultConnectorResult:
|
|
|
111
114
|
if use_aws_iam and not isinstance(use_aws_iam, bool):
|
|
112
115
|
raise TypeError("Expected argument 'use_aws_iam' to be a bool")
|
|
113
116
|
pulumi.set(__self__, "use_aws_iam", use_aws_iam)
|
|
117
|
+
if use_jwt_auth and not isinstance(use_jwt_auth, bool):
|
|
118
|
+
raise TypeError("Expected argument 'use_jwt_auth' to be a bool")
|
|
119
|
+
pulumi.set(__self__, "use_jwt_auth", use_jwt_auth)
|
|
114
120
|
if use_k8s_auth and not isinstance(use_k8s_auth, bool):
|
|
115
121
|
raise TypeError("Expected argument 'use_k8s_auth' to be a bool")
|
|
116
122
|
pulumi.set(__self__, "use_k8s_auth", use_k8s_auth)
|
|
@@ -120,6 +126,12 @@ class GetVaultConnectorResult:
|
|
|
120
126
|
if vault_aws_iam_role and not isinstance(vault_aws_iam_role, str):
|
|
121
127
|
raise TypeError("Expected argument 'vault_aws_iam_role' to be a str")
|
|
122
128
|
pulumi.set(__self__, "vault_aws_iam_role", vault_aws_iam_role)
|
|
129
|
+
if vault_jwt_auth_path and not isinstance(vault_jwt_auth_path, str):
|
|
130
|
+
raise TypeError("Expected argument 'vault_jwt_auth_path' to be a str")
|
|
131
|
+
pulumi.set(__self__, "vault_jwt_auth_path", vault_jwt_auth_path)
|
|
132
|
+
if vault_jwt_auth_role and not isinstance(vault_jwt_auth_role, str):
|
|
133
|
+
raise TypeError("Expected argument 'vault_jwt_auth_role' to be a str")
|
|
134
|
+
pulumi.set(__self__, "vault_jwt_auth_role", vault_jwt_auth_role)
|
|
123
135
|
if vault_k8s_auth_role and not isinstance(vault_k8s_auth_role, str):
|
|
124
136
|
raise TypeError("Expected argument 'vault_k8s_auth_role' to be a str")
|
|
125
137
|
pulumi.set(__self__, "vault_k8s_auth_role", vault_k8s_auth_role)
|
|
@@ -194,6 +206,14 @@ class GetVaultConnectorResult:
|
|
|
194
206
|
"""
|
|
195
207
|
return pulumi.get(self, "description")
|
|
196
208
|
|
|
209
|
+
@property
|
|
210
|
+
@pulumi.getter(name="executeOnDelegate")
|
|
211
|
+
def execute_on_delegate(self) -> bool:
|
|
212
|
+
"""
|
|
213
|
+
Execute on delegate or not.
|
|
214
|
+
"""
|
|
215
|
+
return pulumi.get(self, "execute_on_delegate")
|
|
216
|
+
|
|
197
217
|
@property
|
|
198
218
|
@pulumi.getter
|
|
199
219
|
def id(self) -> str:
|
|
@@ -354,6 +374,14 @@ class GetVaultConnectorResult:
|
|
|
354
374
|
"""
|
|
355
375
|
return pulumi.get(self, "use_aws_iam")
|
|
356
376
|
|
|
377
|
+
@property
|
|
378
|
+
@pulumi.getter(name="useJwtAuth")
|
|
379
|
+
def use_jwt_auth(self) -> bool:
|
|
380
|
+
"""
|
|
381
|
+
Boolean value to indicate if JWT is used for authentication.
|
|
382
|
+
"""
|
|
383
|
+
return pulumi.get(self, "use_jwt_auth")
|
|
384
|
+
|
|
357
385
|
@property
|
|
358
386
|
@pulumi.getter(name="useK8sAuth")
|
|
359
387
|
def use_k8s_auth(self) -> bool:
|
|
@@ -378,6 +406,22 @@ class GetVaultConnectorResult:
|
|
|
378
406
|
"""
|
|
379
407
|
return pulumi.get(self, "vault_aws_iam_role")
|
|
380
408
|
|
|
409
|
+
@property
|
|
410
|
+
@pulumi.getter(name="vaultJwtAuthPath")
|
|
411
|
+
def vault_jwt_auth_path(self) -> str:
|
|
412
|
+
"""
|
|
413
|
+
Custom path at with JWT auth in enabled for Vault.
|
|
414
|
+
"""
|
|
415
|
+
return pulumi.get(self, "vault_jwt_auth_path")
|
|
416
|
+
|
|
417
|
+
@property
|
|
418
|
+
@pulumi.getter(name="vaultJwtAuthRole")
|
|
419
|
+
def vault_jwt_auth_role(self) -> str:
|
|
420
|
+
"""
|
|
421
|
+
The Vault role defined with JWT auth type for accessing Vault as per policies binded.
|
|
422
|
+
"""
|
|
423
|
+
return pulumi.get(self, "vault_jwt_auth_role")
|
|
424
|
+
|
|
381
425
|
@property
|
|
382
426
|
@pulumi.getter(name="vaultK8sAuthRole")
|
|
383
427
|
def vault_k8s_auth_role(self) -> str:
|
|
@@ -417,6 +461,7 @@ class AwaitableGetVaultConnectorResult(GetVaultConnectorResult):
|
|
|
417
461
|
default=self.default,
|
|
418
462
|
delegate_selectors=self.delegate_selectors,
|
|
419
463
|
description=self.description,
|
|
464
|
+
execute_on_delegate=self.execute_on_delegate,
|
|
420
465
|
id=self.id,
|
|
421
466
|
identifier=self.identifier,
|
|
422
467
|
is_default=self.is_default,
|
|
@@ -437,9 +482,12 @@ class AwaitableGetVaultConnectorResult(GetVaultConnectorResult):
|
|
|
437
482
|
sink_path=self.sink_path,
|
|
438
483
|
tags=self.tags,
|
|
439
484
|
use_aws_iam=self.use_aws_iam,
|
|
485
|
+
use_jwt_auth=self.use_jwt_auth,
|
|
440
486
|
use_k8s_auth=self.use_k8s_auth,
|
|
441
487
|
use_vault_agent=self.use_vault_agent,
|
|
442
488
|
vault_aws_iam_role=self.vault_aws_iam_role,
|
|
489
|
+
vault_jwt_auth_path=self.vault_jwt_auth_path,
|
|
490
|
+
vault_jwt_auth_role=self.vault_jwt_auth_role,
|
|
443
491
|
vault_k8s_auth_role=self.vault_k8s_auth_role,
|
|
444
492
|
vault_url=self.vault_url,
|
|
445
493
|
xvault_aws_iam_server_id=self.xvault_aws_iam_server_id)
|
|
@@ -483,6 +531,7 @@ def get_vault_connector(identifier: Optional[str] = None,
|
|
|
483
531
|
default=pulumi.get(__ret__, 'default'),
|
|
484
532
|
delegate_selectors=pulumi.get(__ret__, 'delegate_selectors'),
|
|
485
533
|
description=pulumi.get(__ret__, 'description'),
|
|
534
|
+
execute_on_delegate=pulumi.get(__ret__, 'execute_on_delegate'),
|
|
486
535
|
id=pulumi.get(__ret__, 'id'),
|
|
487
536
|
identifier=pulumi.get(__ret__, 'identifier'),
|
|
488
537
|
is_default=pulumi.get(__ret__, 'is_default'),
|
|
@@ -503,9 +552,12 @@ def get_vault_connector(identifier: Optional[str] = None,
|
|
|
503
552
|
sink_path=pulumi.get(__ret__, 'sink_path'),
|
|
504
553
|
tags=pulumi.get(__ret__, 'tags'),
|
|
505
554
|
use_aws_iam=pulumi.get(__ret__, 'use_aws_iam'),
|
|
555
|
+
use_jwt_auth=pulumi.get(__ret__, 'use_jwt_auth'),
|
|
506
556
|
use_k8s_auth=pulumi.get(__ret__, 'use_k8s_auth'),
|
|
507
557
|
use_vault_agent=pulumi.get(__ret__, 'use_vault_agent'),
|
|
508
558
|
vault_aws_iam_role=pulumi.get(__ret__, 'vault_aws_iam_role'),
|
|
559
|
+
vault_jwt_auth_path=pulumi.get(__ret__, 'vault_jwt_auth_path'),
|
|
560
|
+
vault_jwt_auth_role=pulumi.get(__ret__, 'vault_jwt_auth_role'),
|
|
509
561
|
vault_k8s_auth_role=pulumi.get(__ret__, 'vault_k8s_auth_role'),
|
|
510
562
|
vault_url=pulumi.get(__ret__, 'vault_url'),
|
|
511
563
|
xvault_aws_iam_server_id=pulumi.get(__ret__, 'xvault_aws_iam_server_id'))
|
|
@@ -546,6 +598,7 @@ def get_vault_connector_output(identifier: Optional[pulumi.Input[str]] = None,
|
|
|
546
598
|
default=pulumi.get(__response__, 'default'),
|
|
547
599
|
delegate_selectors=pulumi.get(__response__, 'delegate_selectors'),
|
|
548
600
|
description=pulumi.get(__response__, 'description'),
|
|
601
|
+
execute_on_delegate=pulumi.get(__response__, 'execute_on_delegate'),
|
|
549
602
|
id=pulumi.get(__response__, 'id'),
|
|
550
603
|
identifier=pulumi.get(__response__, 'identifier'),
|
|
551
604
|
is_default=pulumi.get(__response__, 'is_default'),
|
|
@@ -566,9 +619,12 @@ def get_vault_connector_output(identifier: Optional[pulumi.Input[str]] = None,
|
|
|
566
619
|
sink_path=pulumi.get(__response__, 'sink_path'),
|
|
567
620
|
tags=pulumi.get(__response__, 'tags'),
|
|
568
621
|
use_aws_iam=pulumi.get(__response__, 'use_aws_iam'),
|
|
622
|
+
use_jwt_auth=pulumi.get(__response__, 'use_jwt_auth'),
|
|
569
623
|
use_k8s_auth=pulumi.get(__response__, 'use_k8s_auth'),
|
|
570
624
|
use_vault_agent=pulumi.get(__response__, 'use_vault_agent'),
|
|
571
625
|
vault_aws_iam_role=pulumi.get(__response__, 'vault_aws_iam_role'),
|
|
626
|
+
vault_jwt_auth_path=pulumi.get(__response__, 'vault_jwt_auth_path'),
|
|
627
|
+
vault_jwt_auth_role=pulumi.get(__response__, 'vault_jwt_auth_role'),
|
|
572
628
|
vault_k8s_auth_role=pulumi.get(__response__, 'vault_k8s_auth_role'),
|
|
573
629
|
vault_url=pulumi.get(__response__, 'vault_url'),
|
|
574
630
|
xvault_aws_iam_server_id=pulumi.get(__response__, 'xvault_aws_iam_server_id')))
|