Skip to content

Commit

Permalink
feat: [CDS-102254]: add new argocd proto fields for applications, rep…
Browse files Browse the repository at this point in the history
…ositories and clusters (#1152)

* feat: [CDS-102254]: update source helm options in gitops application resource

* techdebt: [CDS-102254]: add new fields to terraform resources gitops

* Update go.mod

* Create 1152.txt

* Update go.sum

* docs
  • Loading branch information
ashinsabu3 authored Jan 28, 2025
1 parent 63d129c commit 4d2e615
Show file tree
Hide file tree
Showing 11 changed files with 212 additions and 76 deletions.
7 changes: 7 additions & 0 deletions .changelog/1152.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:feat
For gitops applications, clusters and argoprojects (appprojects) newly added important options to the API are added as part of the
corresponding terraform resources and data sources. The following options are added:
gitops_application: 4 new helm options 'ignore_missing_value_files', 'skip_crds', 'skip_tests' and 'skip_schema_validation'.
gitops_cluster: ArgoCD cluster config has 2 new options: 'disable_compression' and 'proxy_url'
gitops_app_project: The appproject spec has 2 new options: 'source_namespaces' and 'permit_only_project_scoped_clusters'
```
119 changes: 61 additions & 58 deletions docs/data-sources/platform_gitops_applications.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ data "harness_platform_gitops_applications" "example" {

### Read-Only

- `account_id` (String, Deprecated) Account identifier of the GitOps application.
- `application` (List of Object) Definition of the GitOps application resource. (see [below for nested schema](#nestedatt--application))
- `cluster_id` (String) Cluster identifier of the GitOps application.
- `id` (String) The ID of this resource.
Expand Down Expand Up @@ -128,26 +127,26 @@ Read-Only:
- `target_revision` (String)

<a id="nestedobjatt--application--spec--source--directory"></a>
### Nested Schema for `application.spec.source.target_revision`
### Nested Schema for `application.spec.source.directory`

Read-Only:

- `exclude` (String)
- `include` (String)
- `jsonnet` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--jsonnet))
- `jsonnet` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--directory--jsonnet))
- `recurse` (Boolean)

<a id="nestedobjatt--application--spec--source--target_revision--jsonnet"></a>
### Nested Schema for `application.spec.source.target_revision.jsonnet`
<a id="nestedobjatt--application--spec--source--directory--jsonnet"></a>
### Nested Schema for `application.spec.source.directory.jsonnet`

Read-Only:

- `ext_vars` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--jsonnet--ext_vars))
- `ext_vars` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--directory--jsonnet--ext_vars))
- `libs` (List of String)
- `tlas` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--jsonnet--tlas))
- `tlas` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--directory--jsonnet--tlas))

<a id="nestedobjatt--application--spec--source--target_revision--jsonnet--ext_vars"></a>
### Nested Schema for `application.spec.source.target_revision.jsonnet.tlas`
<a id="nestedobjatt--application--spec--source--directory--jsonnet--ext_vars"></a>
### Nested Schema for `application.spec.source.directory.jsonnet.ext_vars`

Read-Only:

Expand All @@ -156,8 +155,8 @@ Read-Only:
- `value` (String)


<a id="nestedobjatt--application--spec--source--target_revision--jsonnet--tlas"></a>
### Nested Schema for `application.spec.source.target_revision.jsonnet.tlas`
<a id="nestedobjatt--application--spec--source--directory--jsonnet--tlas"></a>
### Nested Schema for `application.spec.source.directory.jsonnet.tlas`

Read-Only:

Expand All @@ -169,29 +168,33 @@ Read-Only:


<a id="nestedobjatt--application--spec--source--helm"></a>
### Nested Schema for `application.spec.source.target_revision`
### Nested Schema for `application.spec.source.helm`

Read-Only:

- `file_parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--file_parameters))
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--parameters))
- `file_parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--helm--file_parameters))
- `ignore_missing_value_files` (Boolean)
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--helm--parameters))
- `pass_credentials` (Boolean)
- `release_name` (String)
- `skip_crds` (Boolean)
- `skip_schema_validation` (Boolean)
- `skip_tests` (Boolean)
- `value_files` (List of String)
- `values` (String)
- `version` (String)

<a id="nestedobjatt--application--spec--source--target_revision--file_parameters"></a>
### Nested Schema for `application.spec.source.target_revision.file_parameters`
<a id="nestedobjatt--application--spec--source--helm--file_parameters"></a>
### Nested Schema for `application.spec.source.helm.file_parameters`

Read-Only:

- `name` (String)
- `path` (String)


<a id="nestedobjatt--application--spec--source--target_revision--parameters"></a>
### Nested Schema for `application.spec.source.target_revision.parameters`
<a id="nestedobjatt--application--spec--source--helm--parameters"></a>
### Nested Schema for `application.spec.source.helm.parameters`

Read-Only:

Expand All @@ -202,15 +205,15 @@ Read-Only:


<a id="nestedobjatt--application--spec--source--ksonnet"></a>
### Nested Schema for `application.spec.source.target_revision`
### Nested Schema for `application.spec.source.ksonnet`

Read-Only:

- `environment` (String)
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--parameters))
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--ksonnet--parameters))

<a id="nestedobjatt--application--spec--source--target_revision--parameters"></a>
### Nested Schema for `application.spec.source.target_revision.parameters`
<a id="nestedobjatt--application--spec--source--ksonnet--parameters"></a>
### Nested Schema for `application.spec.source.ksonnet.parameters`

Read-Only:

Expand All @@ -221,7 +224,7 @@ Read-Only:


<a id="nestedobjatt--application--spec--source--kustomize"></a>
### Nested Schema for `application.spec.source.target_revision`
### Nested Schema for `application.spec.source.kustomize`

Read-Only:

Expand All @@ -236,15 +239,15 @@ Read-Only:


<a id="nestedobjatt--application--spec--source--plugin"></a>
### Nested Schema for `application.spec.source.target_revision`
### Nested Schema for `application.spec.source.plugin`

Read-Only:

- `env` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--env))
- `env` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--plugin--env))
- `name` (String)

<a id="nestedobjatt--application--spec--source--target_revision--env"></a>
### Nested Schema for `application.spec.source.target_revision.env`
<a id="nestedobjatt--application--spec--source--plugin--env"></a>
### Nested Schema for `application.spec.source.plugin.env`

Read-Only:

Expand All @@ -271,26 +274,26 @@ Read-Only:
- `target_revision` (String)

<a id="nestedobjatt--application--spec--sources--directory"></a>
### Nested Schema for `application.spec.sources.target_revision`
### Nested Schema for `application.spec.sources.directory`

Read-Only:

- `exclude` (String)
- `include` (String)
- `jsonnet` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--jsonnet))
- `jsonnet` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--directory--jsonnet))
- `recurse` (Boolean)

<a id="nestedobjatt--application--spec--sources--target_revision--jsonnet"></a>
### Nested Schema for `application.spec.sources.target_revision.jsonnet`
<a id="nestedobjatt--application--spec--sources--directory--jsonnet"></a>
### Nested Schema for `application.spec.sources.directory.jsonnet`

Read-Only:

- `ext_vars` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--jsonnet--ext_vars))
- `ext_vars` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--directory--jsonnet--ext_vars))
- `libs` (List of String)
- `tlas` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--jsonnet--tlas))
- `tlas` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--directory--jsonnet--tlas))

<a id="nestedobjatt--application--spec--sources--target_revision--jsonnet--ext_vars"></a>
### Nested Schema for `application.spec.sources.target_revision.jsonnet.tlas`
<a id="nestedobjatt--application--spec--sources--directory--jsonnet--ext_vars"></a>
### Nested Schema for `application.spec.sources.directory.jsonnet.ext_vars`

Read-Only:

Expand All @@ -299,8 +302,8 @@ Read-Only:
- `value` (String)


<a id="nestedobjatt--application--spec--sources--target_revision--jsonnet--tlas"></a>
### Nested Schema for `application.spec.sources.target_revision.jsonnet.tlas`
<a id="nestedobjatt--application--spec--sources--directory--jsonnet--tlas"></a>
### Nested Schema for `application.spec.sources.directory.jsonnet.tlas`

Read-Only:

Expand All @@ -312,29 +315,29 @@ Read-Only:


<a id="nestedobjatt--application--spec--sources--helm"></a>
### Nested Schema for `application.spec.sources.target_revision`
### Nested Schema for `application.spec.sources.helm`

Read-Only:

- `file_parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--file_parameters))
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--parameters))
- `file_parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--helm--file_parameters))
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--helm--parameters))
- `pass_credentials` (Boolean)
- `release_name` (String)
- `value_files` (List of String)
- `values` (String)
- `version` (String)

<a id="nestedobjatt--application--spec--sources--target_revision--file_parameters"></a>
### Nested Schema for `application.spec.sources.target_revision.file_parameters`
<a id="nestedobjatt--application--spec--sources--helm--file_parameters"></a>
### Nested Schema for `application.spec.sources.helm.file_parameters`

Read-Only:

- `name` (String)
- `path` (String)


<a id="nestedobjatt--application--spec--sources--target_revision--parameters"></a>
### Nested Schema for `application.spec.sources.target_revision.parameters`
<a id="nestedobjatt--application--spec--sources--helm--parameters"></a>
### Nested Schema for `application.spec.sources.helm.parameters`

Read-Only:

Expand All @@ -345,15 +348,15 @@ Read-Only:


<a id="nestedobjatt--application--spec--sources--ksonnet"></a>
### Nested Schema for `application.spec.sources.target_revision`
### Nested Schema for `application.spec.sources.ksonnet`

Read-Only:

- `environment` (String)
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--parameters))
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--ksonnet--parameters))

<a id="nestedobjatt--application--spec--sources--target_revision--parameters"></a>
### Nested Schema for `application.spec.sources.target_revision.parameters`
<a id="nestedobjatt--application--spec--sources--ksonnet--parameters"></a>
### Nested Schema for `application.spec.sources.ksonnet.parameters`

Read-Only:

Expand All @@ -364,7 +367,7 @@ Read-Only:


<a id="nestedobjatt--application--spec--sources--kustomize"></a>
### Nested Schema for `application.spec.sources.target_revision`
### Nested Schema for `application.spec.sources.kustomize`

Read-Only:

Expand All @@ -379,15 +382,15 @@ Read-Only:


<a id="nestedobjatt--application--spec--sources--plugin"></a>
### Nested Schema for `application.spec.sources.target_revision`
### Nested Schema for `application.spec.sources.plugin`

Read-Only:

- `env` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--env))
- `env` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--plugin--env))
- `name` (String)

<a id="nestedobjatt--application--spec--sources--target_revision--env"></a>
### Nested Schema for `application.spec.sources.target_revision.env`
<a id="nestedobjatt--application--spec--sources--plugin--env"></a>
### Nested Schema for `application.spec.sources.plugin.env`

Read-Only:

Expand All @@ -407,7 +410,7 @@ Read-Only:
- `sync_options` (List of String)

<a id="nestedobjatt--application--spec--sync_policy--automated"></a>
### Nested Schema for `application.spec.sync_policy.sync_options`
### Nested Schema for `application.spec.sync_policy.automated`

Read-Only:

Expand All @@ -417,15 +420,15 @@ Read-Only:


<a id="nestedobjatt--application--spec--sync_policy--retry"></a>
### Nested Schema for `application.spec.sync_policy.sync_options`
### Nested Schema for `application.spec.sync_policy.retry`

Read-Only:

- `backoff` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sync_policy--sync_options--backoff))
- `backoff` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sync_policy--retry--backoff))
- `limit` (String)

<a id="nestedobjatt--application--spec--sync_policy--sync_options--backoff"></a>
### Nested Schema for `application.spec.sync_policy.sync_options.backoff`
<a id="nestedobjatt--application--spec--sync_policy--retry--backoff"></a>
### Nested Schema for `application.spec.sync_policy.retry.backoff`

Read-Only:

Expand Down
16 changes: 9 additions & 7 deletions docs/data-sources/platform_gitops_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,16 @@ Read-Only:
- `aws_cluster_name` (String)
- `bearer_token` (String)
- `cluster_connection_type` (String)
- `disable_compression` (Boolean)
- `exec_provider_config` (List of Object) (see [below for nested schema](#nestedobjatt--request--cluster--config--exec_provider_config))
- `password` (String)
- `proxy_url` (String)
- `role_a_r_n` (String)
- `tls_client_config` (List of Object) (see [below for nested schema](#nestedobjatt--request--cluster--config--tls_client_config))
- `username` (String)

<a id="nestedobjatt--request--cluster--config--exec_provider_config"></a>
### Nested Schema for `request.cluster.config.username`
### Nested Schema for `request.cluster.config.exec_provider_config`

Read-Only:

Expand All @@ -95,7 +97,7 @@ Read-Only:


<a id="nestedobjatt--request--cluster--config--tls_client_config"></a>
### Nested Schema for `request.cluster.config.username`
### Nested Schema for `request.cluster.config.tls_client_config`

Read-Only:

Expand All @@ -119,7 +121,7 @@ Read-Only:
- `server_version` (String)

<a id="nestedobjatt--request--cluster--info--cache_info"></a>
### Nested Schema for `request.cluster.info.server_version`
### Nested Schema for `request.cluster.info.cache_info`

Read-Only:

Expand All @@ -129,16 +131,16 @@ Read-Only:


<a id="nestedobjatt--request--cluster--info--connection_state"></a>
### Nested Schema for `request.cluster.info.server_version`
### Nested Schema for `request.cluster.info.connection_state`

Read-Only:

- `attempted_at` (List of Object) (see [below for nested schema](#nestedobjatt--request--cluster--info--server_version--attempted_at))
- `attempted_at` (List of Object) (see [below for nested schema](#nestedobjatt--request--cluster--info--connection_state--attempted_at))
- `message` (String)
- `status` (String)

<a id="nestedobjatt--request--cluster--info--server_version--attempted_at"></a>
### Nested Schema for `request.cluster.info.server_version.attempted_at`
<a id="nestedobjatt--request--cluster--info--connection_state--attempted_at"></a>
### Nested Schema for `request.cluster.info.connection_state.attempted_at`

Read-Only:

Expand Down
2 changes: 2 additions & 0 deletions docs/resources/platform_gitops_app_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,10 @@ Optional:
- `namespace_resource_blacklist` (Block List) Namespace resource blacklist for the Argo project. (see [below for nested schema](#nestedblock--project--spec--namespace_resource_blacklist))
- `namespace_resource_whitelist` (Block List) Namespace resource whitelist for the GitOps project. (see [below for nested schema](#nestedblock--project--spec--namespace_resource_whitelist))
- `orphaned_resources` (Block List) OrphanedResources specifies if agent should monitor orphaned resources of apps in this project (see [below for nested schema](#nestedblock--project--spec--orphaned_resources))
- `permit_only_project_scoped_clusters` (Boolean) This option determines whether destinations can only reference clusters which are argo project-scoped
- `roles` (Block List) Roles associated with the Argo project. (see [below for nested schema](#nestedblock--project--spec--roles))
- `signature_keys` (Block List) Signature keys for the GitOps project. (see [below for nested schema](#nestedblock--project--spec--signature_keys))
- `source_namespaces` (List of String) Source namespaces defines the namespaces application resources are allowed to be created in.
- `source_repos` (List of String) Allowed Source repositories for the Argo project.
- `sync_windows` (Block List) Synchronization windows for the GitOps project. (see [below for nested schema](#nestedblock--project--spec--sync_windows))

Expand Down
4 changes: 4 additions & 0 deletions docs/resources/platform_gitops_applications.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,13 @@ Optional:
Optional:

- `file_parameters` (Block List) File parameters to the helm template. (see [below for nested schema](#nestedblock--application--spec--source--helm--file_parameters))
- `ignore_missing_value_files` (Boolean) Prevents 'helm template' from failing when value_files do not exist locally.
- `parameters` (Block List) List of helm parameters which are passed to the helm template command upon manifest generation. (see [below for nested schema](#nestedblock--application--spec--source--helm--parameters))
- `pass_credentials` (Boolean) Indicates if to pass credentials to all domains (helm's --pass-credentials)
- `release_name` (String) Helm release name to use. If omitted it will use the GitOps application name.
- `skip_crds` (Boolean) Indicates if to skip CRDs during helm template. Corresponds to helm --skip-crds
- `skip_schema_validation` (Boolean) Indicates if to skip schema validation during helm template. Corresponds to helm --skip-schema-validation
- `skip_tests` (Boolean) Indicates if to skip tests during helm template. Corresponds to helm --skip-tests
- `value_files` (List of String) List of helm value files to use when generating a template.
- `values` (String) Helm values to be passed to helm template, typically defined as a block.
- `version` (String) Helm version to use for templating (either "2" or "3")
Expand Down
Loading

0 comments on commit 4d2e615

Please sign in to comment.