Skip to content

Commit

Permalink
Initial nextgen implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
micahlmartin committed Nov 3, 2021
1 parent 2288081 commit d56613b
Show file tree
Hide file tree
Showing 143 changed files with 4,904 additions and 641 deletions.
55 changes: 55 additions & 0 deletions docs/data-sources/connector.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "harness_connector Data Source - terraform-provider-harness"
subcategory: ""
description: |-
Data source for retrieving a Harness connector This resource is part of the Harness nextgen platform.
---

# harness_connector (Data Source)

Data source for retrieving a Harness connector This resource is part of the Harness nextgen platform.



<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **branch** (String) The specified branch of the connector.
- **ccm_connector_filter** (Block List, Max: 1) The ccm connector filter. (see [below for nested schema](#nestedblock--ccm_connector_filter))
- **connectivity_statuses** (List of String) The connectivity status of the connector. Available options are SUCCESS, FAILURE, PARTIAL, UNKNOWN
- **first_result** (Boolean) When set to true if the query returns more than one result the first item will be selected. When set to false (default) this will return an error.
- **get_default_from_other_repo** (Boolean) Whether to get default from other repo.
- **get_distinct_from_branches** (Boolean) Whether to get distinct from branches.
- **id** (String) The ID of this resource.
- **identifier** (String) Unique identifier of the connector.
- **include_all_connectors_available_at_scope** (Boolean) Whether to include all connectors available at scope.
- **inheriting_credentials_from_delegate** (Boolean) Whether the connector inherits credentials from the delegate.
- **org_id** (String) Unique identifier of the organization.
- **project_id** (String) Unique identifier of the project.
- **repo_id** (String) Unique identifier of the repository.
- **search_term** (String) The search term used to find the connector.
- **tags** (List of String) The tags of the connector.

### Read-Only

- **description** (String) The description of the connector.
- **name** (String) The name of the connector.
- **type** (String) The type of the selected connector.
- **types** (List of String) The type of the connector. Available values are K8sCluster, Git, Splunk, AppDynamics, Prometheus, Dynatrace, Vault, AzureKeyVault, DockerRegistry, Local, AwsKms, GcpKms, AwsSecretManager, Gcp, Aws, Artifactory, Jira, Nexus, Github, Gitlab, Bitbucket, Codecommit, CEAws, CEAzure, GcpCloudCost, CEK8sCluster, HttpHelmRepo, NewRelic, Datadog, SumoLogic, PagerDuty

<a id="nestedblock--ccm_connector_filter"></a>
### Nested Schema for `ccm_connector_filter`

Optional:

- **aws_account_id** (String) The AWS account identifier.
- **azure_subscription_id** (String) The Azure subscription identifier.
- **azure_tenant_id** (String) The Azure tenant identifier.
- **features_enabled** (List of String) The CCM features that are enabled. Valid options are BILLING, OPTIMIZATION, VISIBILITY.
- **gcp_project_id** (String) The GCP project identifier.
- **k8s_connector_ref** (String) The Kubernetes connector reference.


31 changes: 31 additions & 0 deletions docs/data-sources/organization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "harness_organization Data Source - terraform-provider-harness"
subcategory: ""
description: |-
Data source for retrieving a Harness organization This resource is part of the Harness nextgen platform.
---

# harness_organization (Data Source)

Data source for retrieving a Harness organization This resource is part of the Harness nextgen platform.



<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **first_result** (Boolean) When set to true if the query returns more than one result the first item will be selected. When set to false (default) this will return an error.
- **id** (String) The ID of this resource.
- **identifier** (String) Unique identifier of the organization.
- **search_term** (String) Search term used to find the organization.

### Read-Only

- **description** (String) Description of the organization.
- **name** (String) Name of the organization.
- **tags** (Set of String) Tags associated with the project.


35 changes: 35 additions & 0 deletions docs/data-sources/project.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "harness_project Data Source - terraform-provider-harness"
subcategory: ""
description: |-
Data source for retrieving a Harness project. This resource is part of the Harness nextgen platform.
---

# harness_project (Data Source)

Data source for retrieving a Harness project. This resource is part of the Harness nextgen platform.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- **identifier** (String) Unique identifier of the project.
- **org_id** (String) Unique identifier of the organization.

### Optional

- **id** (String) The ID of this resource.

### Read-Only

- **color** (String) Color of the project.
- **description** (String) Description of the project.
- **modules** (Set of String) Modules in the project.
- **name** (String) Name of the project.
- **tags** (Set of String) Tags associated with the project.


4 changes: 3 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ provider "harness" {
### Required

- **account_id** (String) The Harness account id. This can also be set using the `HARNESS_ACCOUNT_ID` environment variable.
- **api_key** (String) The Harness api key. This can also be set using the `HARNESS_API_KEY` environment variable.

### Optional

- **api_key** (String) The Harness API key. This can also be set using the `HARNESS_API_KEY` environment variable.
- **endpoint** (String) The URL of the Harness API endpoint. The default is `https://app.harness.io`. This can also be set using the `HARNESS_ENDPOINT` environment variable.
- **ng_api_key** (String) The Harness nextgen API key. This can also be set using the `HARNESS_NG_API_KEY` environment variable.
- **ng_endpoint** (String) The URL of the Harness nextgen API. The default is `https://app.harness.io/gateway/ng/api`. This can also be set using the `HARNESS_NG_ENDPOINT` environment variable.
4 changes: 2 additions & 2 deletions docs/resources/cloudprovider_aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "harness_cloudprovider_aws Resource - terraform-provider-harness"
subcategory: ""
description: |-
Resource for creating an AWS cloud provider. This object uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
Resource for creating an AWS cloud provider. This resource uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
---

# harness_cloudprovider_aws (Resource)

Resource for creating an AWS cloud provider. This object uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.
Resource for creating an AWS cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/cloudprovider_azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "harness_cloudprovider_azure Resource - terraform-provider-harness"
subcategory: ""
description: |-
Resource for creating an Azure cloud provider. This object uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
Resource for creating an Azure cloud provider. This resource uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
---

# harness_cloudprovider_azure (Resource)

Resource for creating an Azure cloud provider. This object uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.
Resource for creating an Azure cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/cloudprovider_datacenter.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "harness_cloudprovider_datacenter Resource - terraform-provider-harness"
subcategory: ""
description: |-
Resource for creating a physical data center cloud provider. This object uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
Resource for creating a physical data center cloud provider. This resource uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
---

# harness_cloudprovider_datacenter (Resource)

Resource for creating a physical data center cloud provider. This object uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.
Resource for creating a physical data center cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/cloudprovider_gcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "harness_cloudprovider_gcp Resource - terraform-provider-harness"
subcategory: ""
description: |-
Resource for creating a GCP cloud provider. This object uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
Resource for creating a GCP cloud provider. This resource uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
---

# harness_cloudprovider_gcp (Resource)

Resource for creating a GCP cloud provider. This object uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.
Resource for creating a GCP cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.



Expand Down
4 changes: 2 additions & 2 deletions docs/resources/cloudprovider_kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "harness_cloudprovider_kubernetes Resource - terraform-provider-harness"
subcategory: ""
description: |-
Resource for creating a Kubernetes cloud provider. This object uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
Resource for creating a Kubernetes cloud provider. This resource uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
---

# harness_cloudprovider_kubernetes (Resource)

Resource for creating a Kubernetes cloud provider. This object uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.
Resource for creating a Kubernetes cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/cloudprovider_spot.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "harness_cloudprovider_spot Resource - terraform-provider-harness"
subcategory: ""
description: |-
Resource for creating a Spot cloud provider. This object uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
Resource for creating a Spot cloud provider. This resource uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
---

# harness_cloudprovider_spot (Resource)

Resource for creating a Spot cloud provider. This object uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.
Resource for creating a Spot cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/cloudprovider_tanzu.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "harness_cloudprovider_tanzu Resource - terraform-provider-harness"
subcategory: ""
description: |-
Resource for creating a Tanzu cloud provider. This object uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
Resource for creating a Tanzu cloud provider. This resource uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
---

# harness_cloudprovider_tanzu (Resource)

Resource for creating a Tanzu cloud provider. This object uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.
Resource for creating a Tanzu cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.

## Example Usage

Expand Down
109 changes: 109 additions & 0 deletions docs/resources/connector.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "harness_connector Resource - terraform-provider-harness"
subcategory: ""
description: |-
Resource for creating a connector. This resource is part of the Harness nextgen platform.
---

# harness_connector (Resource)

Resource for creating a connector. This resource is part of the Harness nextgen platform.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- **identifier** (String) The unique identifier for the connector.
- **name** (String) The name of the connector.

### Optional

- **branch** (String) The branch to use for the connector.
- **description** (String) The description of the connector.
- **id** (String) The ID of this resource.
- **k8s_cluster** (Block List, Max: 1) Kubernetes cluster connector config. (see [below for nested schema](#nestedblock--k8s_cluster))
- **org_id** (String) The unique identifier for the organization.
- **project_id** (String) The unique identifier for the project.
- **repo_id** (String) The unique identifier for the repository.
- **tags** (Set of String) Tags associated with the connector.

<a id="nestedblock--k8s_cluster"></a>
### Nested Schema for `k8s_cluster`

Optional:

- **client_key_cert** (Block List, Max: 1) Client key and certificate config for the connector. (see [below for nested schema](#nestedblock--k8s_cluster--client_key_cert))
- **inherit_from_delegate** (Block List, Max: 1) Credentials are inherited from the delegate. (see [below for nested schema](#nestedblock--k8s_cluster--inherit_from_delegate))
- **openid_connect** (Block List, Max: 1) OpenID configuration for the connector. (see [below for nested schema](#nestedblock--k8s_cluster--openid_connect))
- **service_account** (Block List, Max: 1) Service account for the connector. (see [below for nested schema](#nestedblock--k8s_cluster--service_account))
- **username_password** (Block List, Max: 1) Username and password for the connector. (see [below for nested schema](#nestedblock--k8s_cluster--username_password))

<a id="nestedblock--k8s_cluster--client_key_cert"></a>
### Nested Schema for `k8s_cluster.client_key_cert`

Required:

- **client_cert_ref** (String) Reference to the secret containing the client certificate for the connector.
- **client_key_algorithm** (String) The algorithm used to generate the client key for the connector. Valid values are RSA, EC
- **client_key_ref** (String) Reference to the secret containing the client key for the connector.
- **master_url** (String) The URL of the Kubernetes cluster.

Optional:

- **ca_cert_ref** (String) Reference to the secret containing the CA certificate for the connector.
- **client_key_passphrase_ref** (String) Reference to the secret containing the client key passphrase for the connector.


<a id="nestedblock--k8s_cluster--inherit_from_delegate"></a>
### Nested Schema for `k8s_cluster.inherit_from_delegate`

Required:

- **delegate_selectors** (Set of String) Selectors to use for the delegate.


<a id="nestedblock--k8s_cluster--openid_connect"></a>
### Nested Schema for `k8s_cluster.openid_connect`

Required:

- **client_id_ref** (String) Reference to the secret containing the client ID for the connector.
- **issuer_url** (String) The URL of the OpenID Connect issuer.
- **master_url** (String) The URL of the Kubernetes cluster.
- **password_ref** (String) Reference to the secret containing the password for the connector.

Optional:

- **scopes** (List of String) Scopes to request for the connector.
- **secret_ref** (String) Reference to the secret containing the client secret for the connector.
- **username** (String) Username for the connector.
- **username_ref** (String) Reference to the secret containing the username for the connector.


<a id="nestedblock--k8s_cluster--service_account"></a>
### Nested Schema for `k8s_cluster.service_account`

Required:

- **master_url** (String) The URL of the Kubernetes cluster.
- **service_account_token_ref** (String) Reference to the secret containing the service account token for the connector.


<a id="nestedblock--k8s_cluster--username_password"></a>
### Nested Schema for `k8s_cluster.username_password`

Required:

- **master_url** (String) The URL of the Kubernetes cluster.
- **password_ref** (String) Reference to the secret containing the password for the connector.

Optional:

- **username** (String) Username for the connector.
- **username_ref** (String) Reference to the secret containing the username for the connector.


4 changes: 2 additions & 2 deletions docs/resources/infrastructure_definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "harness_infrastructure_definition Resource - terraform-provider-harness"
subcategory: ""
description: |-
Resource for creating am infrastructure definition. This object uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
Resource for creating am infrastructure definition. This resource uses the config-as-code API's. When updating the name or path of this resource you should typically also set the create_before_destroy = true lifecycle setting.
---

# harness_infrastructure_definition (Resource)

Resource for creating am infrastructure definition. This object uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.
Resource for creating am infrastructure definition. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `create_before_destroy = true` lifecycle setting.

## Example Usage

Expand Down
29 changes: 29 additions & 0 deletions docs/resources/organization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "harness_organization Resource - terraform-provider-harness"
subcategory: ""
description: |-
Resource for creating a Harness organization. This resource is part of the Harness nextgen platform.
---

# harness_organization (Resource)

Resource for creating a Harness organization. This resource is part of the Harness nextgen platform.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- **identifier** (String) Unique identifier of the organization.
- **name** (String) Name of the organization.

### Optional

- **description** (String) Description of the organization.
- **id** (String) The ID of this resource.
- **tags** (Set of String) Tags associated with the organization.


Loading

0 comments on commit d56613b

Please sign in to comment.