pulumi-harness 0.8.0a1755712204__py3-none-any.whl → 0.8.0a1755714852__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/__init__.py +67 -0
- pulumi_harness/add_user_to_group.py +4 -0
- pulumi_harness/application.py +4 -0
- pulumi_harness/application_git_sync.py +4 -0
- pulumi_harness/chaos/__init__.py +21 -0
- pulumi_harness/chaos/_inputs.py +2702 -0
- pulumi_harness/chaos/get_hub.py +324 -0
- pulumi_harness/chaos/get_image_registry.py +339 -0
- pulumi_harness/chaos/get_infrastructure_v2.py +684 -0
- pulumi_harness/chaos/get_security_governance_condition.py +261 -0
- pulumi_harness/chaos/get_security_governance_rule.py +261 -0
- pulumi_harness/chaos/hub.py +806 -0
- pulumi_harness/chaos/hub_sync.py +274 -0
- pulumi_harness/chaos/image_registry.py +730 -0
- pulumi_harness/chaos/infrastructure_v2.py +1670 -0
- pulumi_harness/chaos/outputs.py +2276 -0
- pulumi_harness/chaos/security_governance_condition.py +795 -0
- pulumi_harness/chaos/security_governance_rule.py +688 -0
- pulumi_harness/chaos_infrastructure.py +10 -4
- pulumi_harness/cloudprovider/aws.py +4 -0
- pulumi_harness/cloudprovider/azure.py +4 -0
- pulumi_harness/cloudprovider/datacenter.py +4 -0
- pulumi_harness/cloudprovider/kubernetes.py +4 -0
- pulumi_harness/cloudprovider/spot.py +4 -0
- pulumi_harness/cloudprovider/tanzu.py +4 -0
- pulumi_harness/cluster/_inputs.py +540 -0
- pulumi_harness/cluster/get_orchestrator_config.py +46 -6
- pulumi_harness/cluster/orchestrator.py +0 -16
- pulumi_harness/cluster/orchestrator_config.py +253 -5
- pulumi_harness/cluster/outputs.py +394 -0
- pulumi_harness/delegate_approval.py +4 -0
- pulumi_harness/encrypted_text.py +4 -0
- pulumi_harness/environment.py +4 -0
- pulumi_harness/get_current_account.py +3 -3
- pulumi_harness/git_connector.py +4 -0
- pulumi_harness/governance/rule.py +4 -0
- pulumi_harness/governance/rule_enforcement.py +4 -0
- pulumi_harness/infrastructure_definition.py +4 -0
- pulumi_harness/platform/_inputs.py +537 -469
- pulumi_harness/platform/app_dynamics_connector.py +4 -0
- pulumi_harness/platform/artifactory_connector.py +4 -0
- pulumi_harness/platform/aws_cc_connector.py +4 -0
- pulumi_harness/platform/aws_connector.py +11 -7
- pulumi_harness/platform/aws_kms_connector.py +70 -20
- pulumi_harness/platform/aws_secret_manager_connector.py +13 -9
- pulumi_harness/platform/azure_cloud_cost_connector.py +51 -0
- pulumi_harness/platform/azure_cloud_provider_connector.py +4 -0
- pulumi_harness/platform/azure_key_vault_connector.py +8 -0
- pulumi_harness/platform/bitbucket_connector.py +4 -0
- pulumi_harness/platform/connector_azure_artifacts.py +4 -2
- pulumi_harness/platform/connector_azure_repo.py +11 -16
- pulumi_harness/platform/connector_custom_secret_manager.py +51 -156
- pulumi_harness/platform/connector_customhealthsource.py +4 -0
- pulumi_harness/platform/connector_gcp_kms.py +4 -0
- pulumi_harness/platform/connector_jdbc.py +4 -0
- pulumi_harness/platform/connector_pdc.py +13 -13
- pulumi_harness/platform/connector_rancher.py +4 -0
- pulumi_harness/platform/dashboard_folders.py +2 -2
- pulumi_harness/platform/dashboards.py +10 -14
- pulumi_harness/platform/datadog_connector.py +4 -0
- pulumi_harness/platform/db_instance.py +4 -0
- pulumi_harness/platform/db_schema.py +25 -21
- pulumi_harness/platform/docker_connector.py +4 -4
- pulumi_harness/platform/dynatrace_connector.py +4 -0
- pulumi_harness/platform/elasticsearch_connector.py +19 -15
- pulumi_harness/platform/environment.py +25 -530
- pulumi_harness/platform/environment_clusters_mapping.py +8 -0
- pulumi_harness/platform/environment_group.py +13 -100
- pulumi_harness/platform/environment_service_overrides.py +20 -186
- pulumi_harness/platform/feature_flag_target_group.py +8 -8
- pulumi_harness/platform/file_store_file.py +11 -7
- pulumi_harness/platform/file_store_folder.py +11 -7
- pulumi_harness/platform/filters.py +8 -0
- pulumi_harness/platform/gcp_cloud_cost_connector.py +4 -0
- pulumi_harness/platform/gcp_connector.py +4 -0
- pulumi_harness/platform/gcp_secret_manager_connector.py +6 -92
- pulumi_harness/platform/get_api_key.py +8 -38
- pulumi_harness/platform/get_aws_kms_connector.py +16 -1
- pulumi_harness/platform/get_aws_secret_manager_connector.py +7 -3
- pulumi_harness/platform/get_azure_cloud_cost_connector.py +12 -1
- pulumi_harness/platform/get_connector_azure_repo.py +53 -2
- pulumi_harness/platform/get_connector_custom_secret_manager.py +28 -32
- pulumi_harness/platform/get_connector_pdc.py +3 -3
- pulumi_harness/platform/get_current_account.py +2 -20
- pulumi_harness/platform/get_dashboard_folders.py +16 -5
- pulumi_harness/platform/get_dashboards.py +15 -7
- pulumi_harness/platform/get_db_instance.py +5 -0
- pulumi_harness/platform/get_db_schema.py +12 -15
- pulumi_harness/platform/get_environment.py +5 -0
- pulumi_harness/platform/get_environment_list.py +12 -58
- pulumi_harness/platform/get_environment_service_overrides.py +6 -6
- pulumi_harness/platform/get_filters.py +4 -0
- pulumi_harness/platform/get_gcp_secret_manager_connector.py +4 -0
- pulumi_harness/platform/get_github_connector.py +3 -0
- pulumi_harness/platform/get_gitops_applications.py +8 -0
- pulumi_harness/platform/get_gitops_filters.py +25 -10
- pulumi_harness/platform/get_gitx_webhook.py +3 -3
- pulumi_harness/platform/get_har_registry.py +46 -10
- pulumi_harness/platform/get_iacm_default_pipeline.py +24 -0
- pulumi_harness/platform/get_infra_variable_set.py +34 -25
- pulumi_harness/platform/get_infrastructure.py +5 -0
- pulumi_harness/platform/get_manual_freeze.py +0 -24
- pulumi_harness/platform/get_monitored_service.py +22 -0
- pulumi_harness/platform/get_organization.py +4 -0
- pulumi_harness/platform/get_overrides.py +66 -2
- pulumi_harness/platform/get_pagerduty_connector.py +4 -0
- pulumi_harness/platform/get_pipeline_list.py +18 -63
- pulumi_harness/platform/get_project.py +4 -0
- pulumi_harness/platform/get_project_list.py +18 -63
- pulumi_harness/platform/get_provider.py +11 -2
- pulumi_harness/platform/get_resource_group.py +4 -0
- pulumi_harness/platform/get_role_assignments.py +6 -2
- pulumi_harness/platform/get_roles.py +4 -0
- pulumi_harness/platform/get_secret_file.py +4 -0
- pulumi_harness/platform/get_secret_sshkey.py +4 -0
- pulumi_harness/platform/get_service.py +5 -0
- pulumi_harness/platform/get_service_account.py +4 -0
- pulumi_harness/platform/get_service_list.py +22 -58
- pulumi_harness/platform/get_service_overrides_v2.py +42 -0
- pulumi_harness/platform/get_slo.py +22 -0
- pulumi_harness/platform/get_token.py +2 -0
- pulumi_harness/platform/get_user.py +4 -0
- pulumi_harness/platform/get_usergroup.py +4 -0
- pulumi_harness/platform/get_variables.py +4 -0
- pulumi_harness/platform/get_vault_connector.py +5 -1
- pulumi_harness/platform/get_workspace.py +8 -3
- pulumi_harness/platform/git_connector.py +4 -0
- pulumi_harness/platform/git_ops_agent.py +4 -0
- pulumi_harness/platform/git_ops_applications.py +4 -0
- pulumi_harness/platform/git_ops_cluster.py +51 -0
- pulumi_harness/platform/git_ops_gnupg.py +4 -0
- pulumi_harness/platform/git_ops_repo_cert.py +4 -0
- pulumi_harness/platform/git_ops_repo_cred.py +4 -0
- pulumi_harness/platform/git_ops_repository.py +4 -0
- pulumi_harness/platform/github_connector.py +11 -7
- pulumi_harness/platform/gitlab_connector.py +4 -0
- pulumi_harness/platform/gitops_app_project.py +4 -0
- pulumi_harness/platform/gitops_app_project_mapping.py +4 -0
- pulumi_harness/platform/gitops_applicationset.py +96 -0
- pulumi_harness/platform/gitops_filters.py +51 -179
- pulumi_harness/platform/gitx_webhook.py +4 -0
- pulumi_harness/platform/har_registry.py +42 -43
- pulumi_harness/platform/helm_connector.py +4 -0
- pulumi_harness/platform/iacm_default_pipeline.py +28 -0
- pulumi_harness/platform/infra_module.py +6 -2
- pulumi_harness/platform/infra_variable_set.py +38 -22
- pulumi_harness/platform/infrastructure.py +18 -240
- pulumi_harness/platform/input_set.py +4 -0
- pulumi_harness/platform/jenkins_connector.py +8 -0
- pulumi_harness/platform/jira_connector.py +4 -2
- pulumi_harness/platform/kubernetes_cloud_cost_connector.py +35 -11
- pulumi_harness/platform/kubernetes_connector.py +4 -0
- pulumi_harness/platform/manual_freeze.py +6 -154
- pulumi_harness/platform/monitored_service.py +16 -12
- pulumi_harness/platform/newrelic_connector.py +4 -0
- pulumi_harness/platform/nexus_connector.py +4 -4
- pulumi_harness/platform/notification_rule.py +4 -0
- pulumi_harness/platform/oci_helm_connector.py +4 -0
- pulumi_harness/platform/organization.py +8 -0
- pulumi_harness/platform/outputs.py +481 -219
- pulumi_harness/platform/overrides.py +48 -2
- pulumi_harness/platform/pagerduty_connector.py +8 -0
- pulumi_harness/platform/pipeline.py +18 -2
- pulumi_harness/platform/pipeline_filters.py +4 -0
- pulumi_harness/platform/policy.py +6 -26
- pulumi_harness/platform/policy_set.py +4 -0
- pulumi_harness/platform/project.py +8 -0
- pulumi_harness/platform/prometheus_connector.py +4 -0
- pulumi_harness/platform/provider.py +4 -2
- pulumi_harness/platform/repo.py +40 -0
- pulumi_harness/platform/resource_group.py +15 -7
- pulumi_harness/platform/role_assignments.py +20 -16
- pulumi_harness/platform/roles.py +8 -0
- pulumi_harness/platform/secret_file.py +8 -0
- pulumi_harness/platform/secret_sshkey.py +6 -2
- pulumi_harness/platform/secret_text.py +78 -0
- pulumi_harness/platform/service.py +13 -494
- pulumi_harness/platform/service_account.py +8 -0
- pulumi_harness/platform/service_now_connector.py +4 -2
- pulumi_harness/platform/service_overrides_v2.py +4 -204
- pulumi_harness/platform/slo.py +12 -18
- pulumi_harness/platform/splunk_connector.py +4 -0
- pulumi_harness/platform/spot_connector.py +4 -0
- pulumi_harness/platform/sumologic_connector.py +4 -0
- pulumi_harness/platform/tas_connector.py +4 -0
- pulumi_harness/platform/template.py +25 -21
- pulumi_harness/platform/template_filters.py +4 -0
- pulumi_harness/platform/terraform_cloud_connector.py +4 -0
- pulumi_harness/platform/token.py +6 -2
- pulumi_harness/platform/triggers.py +8 -0
- pulumi_harness/platform/user.py +13 -9
- pulumi_harness/platform/usergroup.py +71 -7
- pulumi_harness/platform/variables.py +8 -0
- pulumi_harness/platform/vault_connector.py +15 -7
- pulumi_harness/platform/workspace.py +19 -7
- pulumi_harness/platform_api_key.py +6 -66
- pulumi_harness/platform_ccm_filters.py +11 -7
- pulumi_harness/pulumi-plugin.json +1 -1
- pulumi_harness/service/__init__.py +4 -0
- pulumi_harness/service/_inputs.py +1729 -0
- pulumi_harness/service/ami.py +4 -0
- pulumi_harness/service/codedeploy.py +4 -0
- pulumi_harness/service/discovery_agent.py +1211 -0
- pulumi_harness/service/discovery_setting.py +384 -0
- pulumi_harness/service/ecs.py +4 -0
- pulumi_harness/service/get_discovery_agent.py +443 -0
- pulumi_harness/service/get_discovery_setting.py +199 -0
- pulumi_harness/service/helm.py +4 -0
- pulumi_harness/service/kubernetes.py +4 -0
- pulumi_harness/service/lambda_.py +4 -0
- pulumi_harness/service/outputs.py +2367 -117
- pulumi_harness/service/ssh.py +4 -0
- pulumi_harness/service/tanzu.py +4 -0
- pulumi_harness/service/winrm.py +4 -0
- pulumi_harness/ssh_credential.py +4 -0
- pulumi_harness/user.py +4 -0
- pulumi_harness/user_group.py +4 -0
- pulumi_harness/yaml_config.py +4 -0
- {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.0a1755714852.dist-info}/METADATA +1 -1
- pulumi_harness-0.8.0a1755714852.dist-info/RECORD +355 -0
- pulumi_harness-0.8.0a1755712204.dist-info/RECORD +0 -337
- {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.0a1755714852.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.8.0a1755712204.dist-info → pulumi_harness-0.8.0a1755714852.dist-info}/top_level.txt +0 -0
|
@@ -28,10 +28,13 @@ class GetOrchestratorConfigResult:
|
|
|
28
28
|
"""
|
|
29
29
|
A collection of values returned by getOrchestratorConfig.
|
|
30
30
|
"""
|
|
31
|
-
def __init__(__self__, binpacking=None, distribution=None, id=None, node_preferences=None, orchestrator_id=None):
|
|
31
|
+
def __init__(__self__, binpacking=None, commitment_integration=None, distribution=None, id=None, node_preferences=None, orchestrator_id=None, replacement_schedule=None):
|
|
32
32
|
if binpacking and not isinstance(binpacking, dict):
|
|
33
33
|
raise TypeError("Expected argument 'binpacking' to be a dict")
|
|
34
34
|
pulumi.set(__self__, "binpacking", binpacking)
|
|
35
|
+
if commitment_integration and not isinstance(commitment_integration, dict):
|
|
36
|
+
raise TypeError("Expected argument 'commitment_integration' to be a dict")
|
|
37
|
+
pulumi.set(__self__, "commitment_integration", commitment_integration)
|
|
35
38
|
if distribution and not isinstance(distribution, dict):
|
|
36
39
|
raise TypeError("Expected argument 'distribution' to be a dict")
|
|
37
40
|
pulumi.set(__self__, "distribution", distribution)
|
|
@@ -44,6 +47,9 @@ class GetOrchestratorConfigResult:
|
|
|
44
47
|
if orchestrator_id and not isinstance(orchestrator_id, str):
|
|
45
48
|
raise TypeError("Expected argument 'orchestrator_id' to be a str")
|
|
46
49
|
pulumi.set(__self__, "orchestrator_id", orchestrator_id)
|
|
50
|
+
if replacement_schedule and not isinstance(replacement_schedule, dict):
|
|
51
|
+
raise TypeError("Expected argument 'replacement_schedule' to be a dict")
|
|
52
|
+
pulumi.set(__self__, "replacement_schedule", replacement_schedule)
|
|
47
53
|
|
|
48
54
|
@_builtins.property
|
|
49
55
|
@pulumi.getter
|
|
@@ -53,6 +59,14 @@ class GetOrchestratorConfigResult:
|
|
|
53
59
|
"""
|
|
54
60
|
return pulumi.get(self, "binpacking")
|
|
55
61
|
|
|
62
|
+
@_builtins.property
|
|
63
|
+
@pulumi.getter(name="commitmentIntegration")
|
|
64
|
+
def commitment_integration(self) -> Optional['outputs.GetOrchestratorConfigCommitmentIntegrationResult']:
|
|
65
|
+
"""
|
|
66
|
+
Commitment integration configuration for Cluster Orchestrator
|
|
67
|
+
"""
|
|
68
|
+
return pulumi.get(self, "commitment_integration")
|
|
69
|
+
|
|
56
70
|
@_builtins.property
|
|
57
71
|
@pulumi.getter
|
|
58
72
|
def distribution(self) -> Optional['outputs.GetOrchestratorConfigDistributionResult']:
|
|
@@ -85,6 +99,14 @@ class GetOrchestratorConfigResult:
|
|
|
85
99
|
"""
|
|
86
100
|
return pulumi.get(self, "orchestrator_id")
|
|
87
101
|
|
|
102
|
+
@_builtins.property
|
|
103
|
+
@pulumi.getter(name="replacementSchedule")
|
|
104
|
+
def replacement_schedule(self) -> Optional['outputs.GetOrchestratorConfigReplacementScheduleResult']:
|
|
105
|
+
"""
|
|
106
|
+
Replacement schedule for Cluster Orchestrator
|
|
107
|
+
"""
|
|
108
|
+
return pulumi.get(self, "replacement_schedule")
|
|
109
|
+
|
|
88
110
|
|
|
89
111
|
class AwaitableGetOrchestratorConfigResult(GetOrchestratorConfigResult):
|
|
90
112
|
# pylint: disable=using-constant-test
|
|
@@ -93,19 +115,23 @@ class AwaitableGetOrchestratorConfigResult(GetOrchestratorConfigResult):
|
|
|
93
115
|
yield self
|
|
94
116
|
return GetOrchestratorConfigResult(
|
|
95
117
|
binpacking=self.binpacking,
|
|
118
|
+
commitment_integration=self.commitment_integration,
|
|
96
119
|
distribution=self.distribution,
|
|
97
120
|
id=self.id,
|
|
98
121
|
node_preferences=self.node_preferences,
|
|
99
|
-
orchestrator_id=self.orchestrator_id
|
|
122
|
+
orchestrator_id=self.orchestrator_id,
|
|
123
|
+
replacement_schedule=self.replacement_schedule)
|
|
100
124
|
|
|
101
125
|
|
|
102
126
|
def get_orchestrator_config(binpacking: Optional[Union['GetOrchestratorConfigBinpackingArgs', 'GetOrchestratorConfigBinpackingArgsDict']] = None,
|
|
127
|
+
commitment_integration: Optional[Union['GetOrchestratorConfigCommitmentIntegrationArgs', 'GetOrchestratorConfigCommitmentIntegrationArgsDict']] = None,
|
|
103
128
|
distribution: Optional[Union['GetOrchestratorConfigDistributionArgs', 'GetOrchestratorConfigDistributionArgsDict']] = None,
|
|
104
129
|
node_preferences: Optional[Union['GetOrchestratorConfigNodePreferencesArgs', 'GetOrchestratorConfigNodePreferencesArgsDict']] = None,
|
|
105
130
|
orchestrator_id: Optional[_builtins.str] = None,
|
|
131
|
+
replacement_schedule: Optional[Union['GetOrchestratorConfigReplacementScheduleArgs', 'GetOrchestratorConfigReplacementScheduleArgsDict']] = None,
|
|
106
132
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrchestratorConfigResult:
|
|
107
133
|
"""
|
|
108
|
-
|
|
134
|
+
Data Source for retrieving Harness CCM ClusterOrchestrator Config.
|
|
109
135
|
|
|
110
136
|
## Example Usage
|
|
111
137
|
|
|
@@ -118,31 +144,39 @@ def get_orchestrator_config(binpacking: Optional[Union['GetOrchestratorConfigBin
|
|
|
118
144
|
|
|
119
145
|
|
|
120
146
|
:param Union['GetOrchestratorConfigBinpackingArgs', 'GetOrchestratorConfigBinpackingArgsDict'] binpacking: Binpacking preferences for Cluster Orchestrator
|
|
147
|
+
:param Union['GetOrchestratorConfigCommitmentIntegrationArgs', 'GetOrchestratorConfigCommitmentIntegrationArgsDict'] commitment_integration: Commitment integration configuration for Cluster Orchestrator
|
|
121
148
|
:param Union['GetOrchestratorConfigDistributionArgs', 'GetOrchestratorConfigDistributionArgsDict'] distribution: Spot and Ondemand Distribution Preferences for workload replicas
|
|
122
149
|
:param Union['GetOrchestratorConfigNodePreferencesArgs', 'GetOrchestratorConfigNodePreferencesArgsDict'] node_preferences: Node preferences for Cluster Orchestrator
|
|
123
150
|
:param _builtins.str orchestrator_id: ID of the Cluster Orchestrator Object
|
|
151
|
+
:param Union['GetOrchestratorConfigReplacementScheduleArgs', 'GetOrchestratorConfigReplacementScheduleArgsDict'] replacement_schedule: Replacement schedule for Cluster Orchestrator
|
|
124
152
|
"""
|
|
125
153
|
__args__ = dict()
|
|
126
154
|
__args__['binpacking'] = binpacking
|
|
155
|
+
__args__['commitmentIntegration'] = commitment_integration
|
|
127
156
|
__args__['distribution'] = distribution
|
|
128
157
|
__args__['nodePreferences'] = node_preferences
|
|
129
158
|
__args__['orchestratorId'] = orchestrator_id
|
|
159
|
+
__args__['replacementSchedule'] = replacement_schedule
|
|
130
160
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
131
161
|
__ret__ = pulumi.runtime.invoke('harness:cluster/getOrchestratorConfig:getOrchestratorConfig', __args__, opts=opts, typ=GetOrchestratorConfigResult).value
|
|
132
162
|
|
|
133
163
|
return AwaitableGetOrchestratorConfigResult(
|
|
134
164
|
binpacking=pulumi.get(__ret__, 'binpacking'),
|
|
165
|
+
commitment_integration=pulumi.get(__ret__, 'commitment_integration'),
|
|
135
166
|
distribution=pulumi.get(__ret__, 'distribution'),
|
|
136
167
|
id=pulumi.get(__ret__, 'id'),
|
|
137
168
|
node_preferences=pulumi.get(__ret__, 'node_preferences'),
|
|
138
|
-
orchestrator_id=pulumi.get(__ret__, 'orchestrator_id')
|
|
169
|
+
orchestrator_id=pulumi.get(__ret__, 'orchestrator_id'),
|
|
170
|
+
replacement_schedule=pulumi.get(__ret__, 'replacement_schedule'))
|
|
139
171
|
def get_orchestrator_config_output(binpacking: Optional[pulumi.Input[Optional[Union['GetOrchestratorConfigBinpackingArgs', 'GetOrchestratorConfigBinpackingArgsDict']]]] = None,
|
|
172
|
+
commitment_integration: Optional[pulumi.Input[Optional[Union['GetOrchestratorConfigCommitmentIntegrationArgs', 'GetOrchestratorConfigCommitmentIntegrationArgsDict']]]] = None,
|
|
140
173
|
distribution: Optional[pulumi.Input[Optional[Union['GetOrchestratorConfigDistributionArgs', 'GetOrchestratorConfigDistributionArgsDict']]]] = None,
|
|
141
174
|
node_preferences: Optional[pulumi.Input[Optional[Union['GetOrchestratorConfigNodePreferencesArgs', 'GetOrchestratorConfigNodePreferencesArgsDict']]]] = None,
|
|
142
175
|
orchestrator_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
176
|
+
replacement_schedule: Optional[pulumi.Input[Optional[Union['GetOrchestratorConfigReplacementScheduleArgs', 'GetOrchestratorConfigReplacementScheduleArgsDict']]]] = None,
|
|
143
177
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrchestratorConfigResult]:
|
|
144
178
|
"""
|
|
145
|
-
|
|
179
|
+
Data Source for retrieving Harness CCM ClusterOrchestrator Config.
|
|
146
180
|
|
|
147
181
|
## Example Usage
|
|
148
182
|
|
|
@@ -155,20 +189,26 @@ def get_orchestrator_config_output(binpacking: Optional[pulumi.Input[Optional[Un
|
|
|
155
189
|
|
|
156
190
|
|
|
157
191
|
:param Union['GetOrchestratorConfigBinpackingArgs', 'GetOrchestratorConfigBinpackingArgsDict'] binpacking: Binpacking preferences for Cluster Orchestrator
|
|
192
|
+
:param Union['GetOrchestratorConfigCommitmentIntegrationArgs', 'GetOrchestratorConfigCommitmentIntegrationArgsDict'] commitment_integration: Commitment integration configuration for Cluster Orchestrator
|
|
158
193
|
:param Union['GetOrchestratorConfigDistributionArgs', 'GetOrchestratorConfigDistributionArgsDict'] distribution: Spot and Ondemand Distribution Preferences for workload replicas
|
|
159
194
|
:param Union['GetOrchestratorConfigNodePreferencesArgs', 'GetOrchestratorConfigNodePreferencesArgsDict'] node_preferences: Node preferences for Cluster Orchestrator
|
|
160
195
|
:param _builtins.str orchestrator_id: ID of the Cluster Orchestrator Object
|
|
196
|
+
:param Union['GetOrchestratorConfigReplacementScheduleArgs', 'GetOrchestratorConfigReplacementScheduleArgsDict'] replacement_schedule: Replacement schedule for Cluster Orchestrator
|
|
161
197
|
"""
|
|
162
198
|
__args__ = dict()
|
|
163
199
|
__args__['binpacking'] = binpacking
|
|
200
|
+
__args__['commitmentIntegration'] = commitment_integration
|
|
164
201
|
__args__['distribution'] = distribution
|
|
165
202
|
__args__['nodePreferences'] = node_preferences
|
|
166
203
|
__args__['orchestratorId'] = orchestrator_id
|
|
204
|
+
__args__['replacementSchedule'] = replacement_schedule
|
|
167
205
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
168
206
|
__ret__ = pulumi.runtime.invoke_output('harness:cluster/getOrchestratorConfig:getOrchestratorConfig', __args__, opts=opts, typ=GetOrchestratorConfigResult)
|
|
169
207
|
return __ret__.apply(lambda __response__: GetOrchestratorConfigResult(
|
|
170
208
|
binpacking=pulumi.get(__response__, 'binpacking'),
|
|
209
|
+
commitment_integration=pulumi.get(__response__, 'commitment_integration'),
|
|
171
210
|
distribution=pulumi.get(__response__, 'distribution'),
|
|
172
211
|
id=pulumi.get(__response__, 'id'),
|
|
173
212
|
node_preferences=pulumi.get(__response__, 'node_preferences'),
|
|
174
|
-
orchestrator_id=pulumi.get(__response__, 'orchestrator_id')
|
|
213
|
+
orchestrator_id=pulumi.get(__response__, 'orchestrator_id'),
|
|
214
|
+
replacement_schedule=pulumi.get(__response__, 'replacement_schedule')))
|
|
@@ -151,14 +151,6 @@ class Orchestrator(pulumi.CustomResource):
|
|
|
151
151
|
k8s_connector_id="test")
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
## Import
|
|
155
|
-
|
|
156
|
-
Import using the Harness aws cloud provider id.
|
|
157
|
-
|
|
158
|
-
```sh
|
|
159
|
-
$ pulumi import harness:cluster/orchestrator:Orchestrator example <provider_id>
|
|
160
|
-
```
|
|
161
|
-
|
|
162
154
|
:param str resource_name: The name of the resource.
|
|
163
155
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
164
156
|
:param pulumi.Input[_builtins.str] cluster_endpoint: Endpoint of the k8s cluster being onboarded under the orchestrator
|
|
@@ -186,14 +178,6 @@ class Orchestrator(pulumi.CustomResource):
|
|
|
186
178
|
k8s_connector_id="test")
|
|
187
179
|
```
|
|
188
180
|
|
|
189
|
-
## Import
|
|
190
|
-
|
|
191
|
-
Import using the Harness aws cloud provider id.
|
|
192
|
-
|
|
193
|
-
```sh
|
|
194
|
-
$ pulumi import harness:cluster/orchestrator:Orchestrator example <provider_id>
|
|
195
|
-
```
|
|
196
|
-
|
|
197
181
|
:param str resource_name: The name of the resource.
|
|
198
182
|
:param OrchestratorArgs args: The arguments to use to populate this resource's properties.
|
|
199
183
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -24,20 +24,28 @@ class OrchestratorConfigArgs:
|
|
|
24
24
|
distribution: pulumi.Input['OrchestratorConfigDistributionArgs'],
|
|
25
25
|
orchestrator_id: pulumi.Input[_builtins.str],
|
|
26
26
|
binpacking: Optional[pulumi.Input['OrchestratorConfigBinpackingArgs']] = None,
|
|
27
|
-
|
|
27
|
+
commitment_integration: Optional[pulumi.Input['OrchestratorConfigCommitmentIntegrationArgs']] = None,
|
|
28
|
+
node_preferences: Optional[pulumi.Input['OrchestratorConfigNodePreferencesArgs']] = None,
|
|
29
|
+
replacement_schedule: Optional[pulumi.Input['OrchestratorConfigReplacementScheduleArgs']] = None):
|
|
28
30
|
"""
|
|
29
31
|
The set of arguments for constructing a OrchestratorConfig resource.
|
|
30
32
|
:param pulumi.Input['OrchestratorConfigDistributionArgs'] distribution: Spot and Ondemand Distribution Preferences for workload replicas
|
|
31
33
|
:param pulumi.Input[_builtins.str] orchestrator_id: ID of the Cluster Orchestrator Object
|
|
32
34
|
:param pulumi.Input['OrchestratorConfigBinpackingArgs'] binpacking: Binpacking preferences for Cluster Orchestrator
|
|
35
|
+
:param pulumi.Input['OrchestratorConfigCommitmentIntegrationArgs'] commitment_integration: Commitment integration configuration for Cluster Orchestrator
|
|
33
36
|
:param pulumi.Input['OrchestratorConfigNodePreferencesArgs'] node_preferences: Node preferences for Cluster Orchestrator
|
|
37
|
+
:param pulumi.Input['OrchestratorConfigReplacementScheduleArgs'] replacement_schedule: Replacement schedule for Cluster Orchestrator
|
|
34
38
|
"""
|
|
35
39
|
pulumi.set(__self__, "distribution", distribution)
|
|
36
40
|
pulumi.set(__self__, "orchestrator_id", orchestrator_id)
|
|
37
41
|
if binpacking is not None:
|
|
38
42
|
pulumi.set(__self__, "binpacking", binpacking)
|
|
43
|
+
if commitment_integration is not None:
|
|
44
|
+
pulumi.set(__self__, "commitment_integration", commitment_integration)
|
|
39
45
|
if node_preferences is not None:
|
|
40
46
|
pulumi.set(__self__, "node_preferences", node_preferences)
|
|
47
|
+
if replacement_schedule is not None:
|
|
48
|
+
pulumi.set(__self__, "replacement_schedule", replacement_schedule)
|
|
41
49
|
|
|
42
50
|
@_builtins.property
|
|
43
51
|
@pulumi.getter
|
|
@@ -75,6 +83,18 @@ class OrchestratorConfigArgs:
|
|
|
75
83
|
def binpacking(self, value: Optional[pulumi.Input['OrchestratorConfigBinpackingArgs']]):
|
|
76
84
|
pulumi.set(self, "binpacking", value)
|
|
77
85
|
|
|
86
|
+
@_builtins.property
|
|
87
|
+
@pulumi.getter(name="commitmentIntegration")
|
|
88
|
+
def commitment_integration(self) -> Optional[pulumi.Input['OrchestratorConfigCommitmentIntegrationArgs']]:
|
|
89
|
+
"""
|
|
90
|
+
Commitment integration configuration for Cluster Orchestrator
|
|
91
|
+
"""
|
|
92
|
+
return pulumi.get(self, "commitment_integration")
|
|
93
|
+
|
|
94
|
+
@commitment_integration.setter
|
|
95
|
+
def commitment_integration(self, value: Optional[pulumi.Input['OrchestratorConfigCommitmentIntegrationArgs']]):
|
|
96
|
+
pulumi.set(self, "commitment_integration", value)
|
|
97
|
+
|
|
78
98
|
@_builtins.property
|
|
79
99
|
@pulumi.getter(name="nodePreferences")
|
|
80
100
|
def node_preferences(self) -> Optional[pulumi.Input['OrchestratorConfigNodePreferencesArgs']]:
|
|
@@ -87,29 +107,49 @@ class OrchestratorConfigArgs:
|
|
|
87
107
|
def node_preferences(self, value: Optional[pulumi.Input['OrchestratorConfigNodePreferencesArgs']]):
|
|
88
108
|
pulumi.set(self, "node_preferences", value)
|
|
89
109
|
|
|
110
|
+
@_builtins.property
|
|
111
|
+
@pulumi.getter(name="replacementSchedule")
|
|
112
|
+
def replacement_schedule(self) -> Optional[pulumi.Input['OrchestratorConfigReplacementScheduleArgs']]:
|
|
113
|
+
"""
|
|
114
|
+
Replacement schedule for Cluster Orchestrator
|
|
115
|
+
"""
|
|
116
|
+
return pulumi.get(self, "replacement_schedule")
|
|
117
|
+
|
|
118
|
+
@replacement_schedule.setter
|
|
119
|
+
def replacement_schedule(self, value: Optional[pulumi.Input['OrchestratorConfigReplacementScheduleArgs']]):
|
|
120
|
+
pulumi.set(self, "replacement_schedule", value)
|
|
121
|
+
|
|
90
122
|
|
|
91
123
|
@pulumi.input_type
|
|
92
124
|
class _OrchestratorConfigState:
|
|
93
125
|
def __init__(__self__, *,
|
|
94
126
|
binpacking: Optional[pulumi.Input['OrchestratorConfigBinpackingArgs']] = None,
|
|
127
|
+
commitment_integration: Optional[pulumi.Input['OrchestratorConfigCommitmentIntegrationArgs']] = None,
|
|
95
128
|
distribution: Optional[pulumi.Input['OrchestratorConfigDistributionArgs']] = None,
|
|
96
129
|
node_preferences: Optional[pulumi.Input['OrchestratorConfigNodePreferencesArgs']] = None,
|
|
97
|
-
orchestrator_id: Optional[pulumi.Input[_builtins.str]] = None
|
|
130
|
+
orchestrator_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
131
|
+
replacement_schedule: Optional[pulumi.Input['OrchestratorConfigReplacementScheduleArgs']] = None):
|
|
98
132
|
"""
|
|
99
133
|
Input properties used for looking up and filtering OrchestratorConfig resources.
|
|
100
134
|
:param pulumi.Input['OrchestratorConfigBinpackingArgs'] binpacking: Binpacking preferences for Cluster Orchestrator
|
|
135
|
+
:param pulumi.Input['OrchestratorConfigCommitmentIntegrationArgs'] commitment_integration: Commitment integration configuration for Cluster Orchestrator
|
|
101
136
|
:param pulumi.Input['OrchestratorConfigDistributionArgs'] distribution: Spot and Ondemand Distribution Preferences for workload replicas
|
|
102
137
|
:param pulumi.Input['OrchestratorConfigNodePreferencesArgs'] node_preferences: Node preferences for Cluster Orchestrator
|
|
103
138
|
:param pulumi.Input[_builtins.str] orchestrator_id: ID of the Cluster Orchestrator Object
|
|
139
|
+
:param pulumi.Input['OrchestratorConfigReplacementScheduleArgs'] replacement_schedule: Replacement schedule for Cluster Orchestrator
|
|
104
140
|
"""
|
|
105
141
|
if binpacking is not None:
|
|
106
142
|
pulumi.set(__self__, "binpacking", binpacking)
|
|
143
|
+
if commitment_integration is not None:
|
|
144
|
+
pulumi.set(__self__, "commitment_integration", commitment_integration)
|
|
107
145
|
if distribution is not None:
|
|
108
146
|
pulumi.set(__self__, "distribution", distribution)
|
|
109
147
|
if node_preferences is not None:
|
|
110
148
|
pulumi.set(__self__, "node_preferences", node_preferences)
|
|
111
149
|
if orchestrator_id is not None:
|
|
112
150
|
pulumi.set(__self__, "orchestrator_id", orchestrator_id)
|
|
151
|
+
if replacement_schedule is not None:
|
|
152
|
+
pulumi.set(__self__, "replacement_schedule", replacement_schedule)
|
|
113
153
|
|
|
114
154
|
@_builtins.property
|
|
115
155
|
@pulumi.getter
|
|
@@ -123,6 +163,18 @@ class _OrchestratorConfigState:
|
|
|
123
163
|
def binpacking(self, value: Optional[pulumi.Input['OrchestratorConfigBinpackingArgs']]):
|
|
124
164
|
pulumi.set(self, "binpacking", value)
|
|
125
165
|
|
|
166
|
+
@_builtins.property
|
|
167
|
+
@pulumi.getter(name="commitmentIntegration")
|
|
168
|
+
def commitment_integration(self) -> Optional[pulumi.Input['OrchestratorConfigCommitmentIntegrationArgs']]:
|
|
169
|
+
"""
|
|
170
|
+
Commitment integration configuration for Cluster Orchestrator
|
|
171
|
+
"""
|
|
172
|
+
return pulumi.get(self, "commitment_integration")
|
|
173
|
+
|
|
174
|
+
@commitment_integration.setter
|
|
175
|
+
def commitment_integration(self, value: Optional[pulumi.Input['OrchestratorConfigCommitmentIntegrationArgs']]):
|
|
176
|
+
pulumi.set(self, "commitment_integration", value)
|
|
177
|
+
|
|
126
178
|
@_builtins.property
|
|
127
179
|
@pulumi.getter
|
|
128
180
|
def distribution(self) -> Optional[pulumi.Input['OrchestratorConfigDistributionArgs']]:
|
|
@@ -159,6 +211,18 @@ class _OrchestratorConfigState:
|
|
|
159
211
|
def orchestrator_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
160
212
|
pulumi.set(self, "orchestrator_id", value)
|
|
161
213
|
|
|
214
|
+
@_builtins.property
|
|
215
|
+
@pulumi.getter(name="replacementSchedule")
|
|
216
|
+
def replacement_schedule(self) -> Optional[pulumi.Input['OrchestratorConfigReplacementScheduleArgs']]:
|
|
217
|
+
"""
|
|
218
|
+
Replacement schedule for Cluster Orchestrator
|
|
219
|
+
"""
|
|
220
|
+
return pulumi.get(self, "replacement_schedule")
|
|
221
|
+
|
|
222
|
+
@replacement_schedule.setter
|
|
223
|
+
def replacement_schedule(self, value: Optional[pulumi.Input['OrchestratorConfigReplacementScheduleArgs']]):
|
|
224
|
+
pulumi.set(self, "replacement_schedule", value)
|
|
225
|
+
|
|
162
226
|
|
|
163
227
|
@pulumi.type_token("harness:cluster/orchestratorConfig:OrchestratorConfig")
|
|
164
228
|
class OrchestratorConfig(pulumi.CustomResource):
|
|
@@ -167,18 +231,99 @@ class OrchestratorConfig(pulumi.CustomResource):
|
|
|
167
231
|
resource_name: str,
|
|
168
232
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
169
233
|
binpacking: Optional[pulumi.Input[Union['OrchestratorConfigBinpackingArgs', 'OrchestratorConfigBinpackingArgsDict']]] = None,
|
|
234
|
+
commitment_integration: Optional[pulumi.Input[Union['OrchestratorConfigCommitmentIntegrationArgs', 'OrchestratorConfigCommitmentIntegrationArgsDict']]] = None,
|
|
170
235
|
distribution: Optional[pulumi.Input[Union['OrchestratorConfigDistributionArgs', 'OrchestratorConfigDistributionArgsDict']]] = None,
|
|
171
236
|
node_preferences: Optional[pulumi.Input[Union['OrchestratorConfigNodePreferencesArgs', 'OrchestratorConfigNodePreferencesArgsDict']]] = None,
|
|
172
237
|
orchestrator_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
238
|
+
replacement_schedule: Optional[pulumi.Input[Union['OrchestratorConfigReplacementScheduleArgs', 'OrchestratorConfigReplacementScheduleArgsDict']]] = None,
|
|
173
239
|
__props__=None):
|
|
174
240
|
"""
|
|
175
|
-
|
|
241
|
+
Resource for ClusterOrchestrator Config.
|
|
242
|
+
|
|
243
|
+
## Example Usage
|
|
244
|
+
|
|
245
|
+
```python
|
|
246
|
+
import pulumi
|
|
247
|
+
import pulumi_harness as harness
|
|
248
|
+
|
|
249
|
+
example = harness.cluster.OrchestratorConfig("example",
|
|
250
|
+
orchestrator_id="orch-cvifpfl9rbg8neldj97g",
|
|
251
|
+
distribution={
|
|
252
|
+
"base_ondemand_capacity": 2,
|
|
253
|
+
"ondemand_replica_percentage": 50,
|
|
254
|
+
"selector": "ALL",
|
|
255
|
+
"strategy": "CostOptimized",
|
|
256
|
+
},
|
|
257
|
+
binpacking={
|
|
258
|
+
"pod_eviction": {
|
|
259
|
+
"threshold": {
|
|
260
|
+
"cpu": 60,
|
|
261
|
+
"memory": 80,
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
"disruption": {
|
|
265
|
+
"criteria": "WhenEmpty",
|
|
266
|
+
"delay": "10m",
|
|
267
|
+
"budgets": [
|
|
268
|
+
{
|
|
269
|
+
"reasons": [
|
|
270
|
+
"Drifted",
|
|
271
|
+
"Underutilized",
|
|
272
|
+
"Empty",
|
|
273
|
+
],
|
|
274
|
+
"nodes": "20",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"reasons": [
|
|
278
|
+
"Drifted",
|
|
279
|
+
"Empty",
|
|
280
|
+
],
|
|
281
|
+
"nodes": "1",
|
|
282
|
+
"schedule": {
|
|
283
|
+
"frequency": "@monthly",
|
|
284
|
+
"duration": "10m",
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
],
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
node_preferences={
|
|
291
|
+
"ttl": "Never",
|
|
292
|
+
"reverse_fallback_interval": "6h",
|
|
293
|
+
},
|
|
294
|
+
commitment_integration={
|
|
295
|
+
"enabled": True,
|
|
296
|
+
"master_account_id": "dummyAccountId",
|
|
297
|
+
},
|
|
298
|
+
replacement_schedule={
|
|
299
|
+
"window_type": "Custom",
|
|
300
|
+
"applies_to": {
|
|
301
|
+
"consolidation": True,
|
|
302
|
+
"harness_pod_eviction": True,
|
|
303
|
+
"reverse_fallback": True,
|
|
304
|
+
},
|
|
305
|
+
"window_details": {
|
|
306
|
+
"days": [
|
|
307
|
+
"SUN",
|
|
308
|
+
"WED",
|
|
309
|
+
"SAT",
|
|
310
|
+
],
|
|
311
|
+
"time_zone": "Asia/Calcutta",
|
|
312
|
+
"all_day": False,
|
|
313
|
+
"start_time": "10:30",
|
|
314
|
+
"end_time": "11:30",
|
|
315
|
+
},
|
|
316
|
+
})
|
|
317
|
+
```
|
|
318
|
+
|
|
176
319
|
:param str resource_name: The name of the resource.
|
|
177
320
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
178
321
|
:param pulumi.Input[Union['OrchestratorConfigBinpackingArgs', 'OrchestratorConfigBinpackingArgsDict']] binpacking: Binpacking preferences for Cluster Orchestrator
|
|
322
|
+
:param pulumi.Input[Union['OrchestratorConfigCommitmentIntegrationArgs', 'OrchestratorConfigCommitmentIntegrationArgsDict']] commitment_integration: Commitment integration configuration for Cluster Orchestrator
|
|
179
323
|
:param pulumi.Input[Union['OrchestratorConfigDistributionArgs', 'OrchestratorConfigDistributionArgsDict']] distribution: Spot and Ondemand Distribution Preferences for workload replicas
|
|
180
324
|
:param pulumi.Input[Union['OrchestratorConfigNodePreferencesArgs', 'OrchestratorConfigNodePreferencesArgsDict']] node_preferences: Node preferences for Cluster Orchestrator
|
|
181
325
|
:param pulumi.Input[_builtins.str] orchestrator_id: ID of the Cluster Orchestrator Object
|
|
326
|
+
:param pulumi.Input[Union['OrchestratorConfigReplacementScheduleArgs', 'OrchestratorConfigReplacementScheduleArgsDict']] replacement_schedule: Replacement schedule for Cluster Orchestrator
|
|
182
327
|
"""
|
|
183
328
|
...
|
|
184
329
|
@overload
|
|
@@ -187,7 +332,84 @@ class OrchestratorConfig(pulumi.CustomResource):
|
|
|
187
332
|
args: OrchestratorConfigArgs,
|
|
188
333
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
189
334
|
"""
|
|
190
|
-
|
|
335
|
+
Resource for ClusterOrchestrator Config.
|
|
336
|
+
|
|
337
|
+
## Example Usage
|
|
338
|
+
|
|
339
|
+
```python
|
|
340
|
+
import pulumi
|
|
341
|
+
import pulumi_harness as harness
|
|
342
|
+
|
|
343
|
+
example = harness.cluster.OrchestratorConfig("example",
|
|
344
|
+
orchestrator_id="orch-cvifpfl9rbg8neldj97g",
|
|
345
|
+
distribution={
|
|
346
|
+
"base_ondemand_capacity": 2,
|
|
347
|
+
"ondemand_replica_percentage": 50,
|
|
348
|
+
"selector": "ALL",
|
|
349
|
+
"strategy": "CostOptimized",
|
|
350
|
+
},
|
|
351
|
+
binpacking={
|
|
352
|
+
"pod_eviction": {
|
|
353
|
+
"threshold": {
|
|
354
|
+
"cpu": 60,
|
|
355
|
+
"memory": 80,
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
"disruption": {
|
|
359
|
+
"criteria": "WhenEmpty",
|
|
360
|
+
"delay": "10m",
|
|
361
|
+
"budgets": [
|
|
362
|
+
{
|
|
363
|
+
"reasons": [
|
|
364
|
+
"Drifted",
|
|
365
|
+
"Underutilized",
|
|
366
|
+
"Empty",
|
|
367
|
+
],
|
|
368
|
+
"nodes": "20",
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"reasons": [
|
|
372
|
+
"Drifted",
|
|
373
|
+
"Empty",
|
|
374
|
+
],
|
|
375
|
+
"nodes": "1",
|
|
376
|
+
"schedule": {
|
|
377
|
+
"frequency": "@monthly",
|
|
378
|
+
"duration": "10m",
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
],
|
|
382
|
+
},
|
|
383
|
+
},
|
|
384
|
+
node_preferences={
|
|
385
|
+
"ttl": "Never",
|
|
386
|
+
"reverse_fallback_interval": "6h",
|
|
387
|
+
},
|
|
388
|
+
commitment_integration={
|
|
389
|
+
"enabled": True,
|
|
390
|
+
"master_account_id": "dummyAccountId",
|
|
391
|
+
},
|
|
392
|
+
replacement_schedule={
|
|
393
|
+
"window_type": "Custom",
|
|
394
|
+
"applies_to": {
|
|
395
|
+
"consolidation": True,
|
|
396
|
+
"harness_pod_eviction": True,
|
|
397
|
+
"reverse_fallback": True,
|
|
398
|
+
},
|
|
399
|
+
"window_details": {
|
|
400
|
+
"days": [
|
|
401
|
+
"SUN",
|
|
402
|
+
"WED",
|
|
403
|
+
"SAT",
|
|
404
|
+
],
|
|
405
|
+
"time_zone": "Asia/Calcutta",
|
|
406
|
+
"all_day": False,
|
|
407
|
+
"start_time": "10:30",
|
|
408
|
+
"end_time": "11:30",
|
|
409
|
+
},
|
|
410
|
+
})
|
|
411
|
+
```
|
|
412
|
+
|
|
191
413
|
:param str resource_name: The name of the resource.
|
|
192
414
|
:param OrchestratorConfigArgs args: The arguments to use to populate this resource's properties.
|
|
193
415
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -204,9 +426,11 @@ class OrchestratorConfig(pulumi.CustomResource):
|
|
|
204
426
|
resource_name: str,
|
|
205
427
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
206
428
|
binpacking: Optional[pulumi.Input[Union['OrchestratorConfigBinpackingArgs', 'OrchestratorConfigBinpackingArgsDict']]] = None,
|
|
429
|
+
commitment_integration: Optional[pulumi.Input[Union['OrchestratorConfigCommitmentIntegrationArgs', 'OrchestratorConfigCommitmentIntegrationArgsDict']]] = None,
|
|
207
430
|
distribution: Optional[pulumi.Input[Union['OrchestratorConfigDistributionArgs', 'OrchestratorConfigDistributionArgsDict']]] = None,
|
|
208
431
|
node_preferences: Optional[pulumi.Input[Union['OrchestratorConfigNodePreferencesArgs', 'OrchestratorConfigNodePreferencesArgsDict']]] = None,
|
|
209
432
|
orchestrator_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
433
|
+
replacement_schedule: Optional[pulumi.Input[Union['OrchestratorConfigReplacementScheduleArgs', 'OrchestratorConfigReplacementScheduleArgsDict']]] = None,
|
|
210
434
|
__props__=None):
|
|
211
435
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
212
436
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -217,6 +441,7 @@ class OrchestratorConfig(pulumi.CustomResource):
|
|
|
217
441
|
__props__ = OrchestratorConfigArgs.__new__(OrchestratorConfigArgs)
|
|
218
442
|
|
|
219
443
|
__props__.__dict__["binpacking"] = binpacking
|
|
444
|
+
__props__.__dict__["commitment_integration"] = commitment_integration
|
|
220
445
|
if distribution is None and not opts.urn:
|
|
221
446
|
raise TypeError("Missing required property 'distribution'")
|
|
222
447
|
__props__.__dict__["distribution"] = distribution
|
|
@@ -224,6 +449,7 @@ class OrchestratorConfig(pulumi.CustomResource):
|
|
|
224
449
|
if orchestrator_id is None and not opts.urn:
|
|
225
450
|
raise TypeError("Missing required property 'orchestrator_id'")
|
|
226
451
|
__props__.__dict__["orchestrator_id"] = orchestrator_id
|
|
452
|
+
__props__.__dict__["replacement_schedule"] = replacement_schedule
|
|
227
453
|
super(OrchestratorConfig, __self__).__init__(
|
|
228
454
|
'harness:cluster/orchestratorConfig:OrchestratorConfig',
|
|
229
455
|
resource_name,
|
|
@@ -235,9 +461,11 @@ class OrchestratorConfig(pulumi.CustomResource):
|
|
|
235
461
|
id: pulumi.Input[str],
|
|
236
462
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
237
463
|
binpacking: Optional[pulumi.Input[Union['OrchestratorConfigBinpackingArgs', 'OrchestratorConfigBinpackingArgsDict']]] = None,
|
|
464
|
+
commitment_integration: Optional[pulumi.Input[Union['OrchestratorConfigCommitmentIntegrationArgs', 'OrchestratorConfigCommitmentIntegrationArgsDict']]] = None,
|
|
238
465
|
distribution: Optional[pulumi.Input[Union['OrchestratorConfigDistributionArgs', 'OrchestratorConfigDistributionArgsDict']]] = None,
|
|
239
466
|
node_preferences: Optional[pulumi.Input[Union['OrchestratorConfigNodePreferencesArgs', 'OrchestratorConfigNodePreferencesArgsDict']]] = None,
|
|
240
|
-
orchestrator_id: Optional[pulumi.Input[_builtins.str]] = None
|
|
467
|
+
orchestrator_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
468
|
+
replacement_schedule: Optional[pulumi.Input[Union['OrchestratorConfigReplacementScheduleArgs', 'OrchestratorConfigReplacementScheduleArgsDict']]] = None) -> 'OrchestratorConfig':
|
|
241
469
|
"""
|
|
242
470
|
Get an existing OrchestratorConfig resource's state with the given name, id, and optional extra
|
|
243
471
|
properties used to qualify the lookup.
|
|
@@ -246,18 +474,22 @@ class OrchestratorConfig(pulumi.CustomResource):
|
|
|
246
474
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
247
475
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
248
476
|
:param pulumi.Input[Union['OrchestratorConfigBinpackingArgs', 'OrchestratorConfigBinpackingArgsDict']] binpacking: Binpacking preferences for Cluster Orchestrator
|
|
477
|
+
:param pulumi.Input[Union['OrchestratorConfigCommitmentIntegrationArgs', 'OrchestratorConfigCommitmentIntegrationArgsDict']] commitment_integration: Commitment integration configuration for Cluster Orchestrator
|
|
249
478
|
:param pulumi.Input[Union['OrchestratorConfigDistributionArgs', 'OrchestratorConfigDistributionArgsDict']] distribution: Spot and Ondemand Distribution Preferences for workload replicas
|
|
250
479
|
:param pulumi.Input[Union['OrchestratorConfigNodePreferencesArgs', 'OrchestratorConfigNodePreferencesArgsDict']] node_preferences: Node preferences for Cluster Orchestrator
|
|
251
480
|
:param pulumi.Input[_builtins.str] orchestrator_id: ID of the Cluster Orchestrator Object
|
|
481
|
+
:param pulumi.Input[Union['OrchestratorConfigReplacementScheduleArgs', 'OrchestratorConfigReplacementScheduleArgsDict']] replacement_schedule: Replacement schedule for Cluster Orchestrator
|
|
252
482
|
"""
|
|
253
483
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
254
484
|
|
|
255
485
|
__props__ = _OrchestratorConfigState.__new__(_OrchestratorConfigState)
|
|
256
486
|
|
|
257
487
|
__props__.__dict__["binpacking"] = binpacking
|
|
488
|
+
__props__.__dict__["commitment_integration"] = commitment_integration
|
|
258
489
|
__props__.__dict__["distribution"] = distribution
|
|
259
490
|
__props__.__dict__["node_preferences"] = node_preferences
|
|
260
491
|
__props__.__dict__["orchestrator_id"] = orchestrator_id
|
|
492
|
+
__props__.__dict__["replacement_schedule"] = replacement_schedule
|
|
261
493
|
return OrchestratorConfig(resource_name, opts=opts, __props__=__props__)
|
|
262
494
|
|
|
263
495
|
@_builtins.property
|
|
@@ -268,6 +500,14 @@ class OrchestratorConfig(pulumi.CustomResource):
|
|
|
268
500
|
"""
|
|
269
501
|
return pulumi.get(self, "binpacking")
|
|
270
502
|
|
|
503
|
+
@_builtins.property
|
|
504
|
+
@pulumi.getter(name="commitmentIntegration")
|
|
505
|
+
def commitment_integration(self) -> pulumi.Output[Optional['outputs.OrchestratorConfigCommitmentIntegration']]:
|
|
506
|
+
"""
|
|
507
|
+
Commitment integration configuration for Cluster Orchestrator
|
|
508
|
+
"""
|
|
509
|
+
return pulumi.get(self, "commitment_integration")
|
|
510
|
+
|
|
271
511
|
@_builtins.property
|
|
272
512
|
@pulumi.getter
|
|
273
513
|
def distribution(self) -> pulumi.Output['outputs.OrchestratorConfigDistribution']:
|
|
@@ -292,3 +532,11 @@ class OrchestratorConfig(pulumi.CustomResource):
|
|
|
292
532
|
"""
|
|
293
533
|
return pulumi.get(self, "orchestrator_id")
|
|
294
534
|
|
|
535
|
+
@_builtins.property
|
|
536
|
+
@pulumi.getter(name="replacementSchedule")
|
|
537
|
+
def replacement_schedule(self) -> pulumi.Output[Optional['outputs.OrchestratorConfigReplacementSchedule']]:
|
|
538
|
+
"""
|
|
539
|
+
Replacement schedule for Cluster Orchestrator
|
|
540
|
+
"""
|
|
541
|
+
return pulumi.get(self, "replacement_schedule")
|
|
542
|
+
|