Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update upstream specifications to their latest version #139

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-FileCopyrightText: The terraform-provider-k8s Authors
# SPDX-License-Identifier: 0BSD

name: SourceToolkitFluxcdIoHelmChartV1Manifest
on:
pull_request:
branches: [ main ]
paths:
- examples/data-sources/k8s_source_toolkit_fluxcd_io_helm_chart_v1_manifest/**
- internal/provider/source_toolkit_fluxcd_io_v1/source_toolkit_fluxcd_io_helm_chart_v1_manifest.go
- internal/provider/source_toolkit_fluxcd_io_v1/source_toolkit_fluxcd_io_helm_chart_v1_manifest_test.go
- terratest/source_toolkit_fluxcd_io_v1/source_toolkit_fluxcd_io_helm_chart_v1_manifest_test.go
jobs:
terraform:
name: Test with Terraform
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v4
- id: setup_go
name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- id: setup_terraform
name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- id: install
name: Install Provider
run: make install
- id: tests
name: Run Unit Tests
run: go test -v -timeout=120s -count=1 ./internal/provider/source_toolkit_fluxcd_io_v1/source_toolkit_fluxcd_io_helm_chart_v1_manifest_test.go
- id: terratest
name: Run Terratest Tests
run: go test -v -timeout=120s -count=1 -run TestSourceToolkitFluxcdIoHelmChartV1Manifest ./terratest/source_toolkit_fluxcd_io_v1
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-FileCopyrightText: The terraform-provider-k8s Authors
# SPDX-License-Identifier: 0BSD

name: SourceToolkitFluxcdIoHelmRepositoryV1Manifest
on:
pull_request:
branches: [ main ]
paths:
- examples/data-sources/k8s_source_toolkit_fluxcd_io_helm_repository_v1_manifest/**
- internal/provider/source_toolkit_fluxcd_io_v1/source_toolkit_fluxcd_io_helm_repository_v1_manifest.go
- internal/provider/source_toolkit_fluxcd_io_v1/source_toolkit_fluxcd_io_helm_repository_v1_manifest_test.go
- terratest/source_toolkit_fluxcd_io_v1/source_toolkit_fluxcd_io_helm_repository_v1_manifest_test.go
jobs:
terraform:
name: Test with Terraform
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v4
- id: setup_go
name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- id: setup_terraform
name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- id: install
name: Install Provider
run: make install
- id: tests
name: Run Unit Tests
run: go test -v -timeout=120s -count=1 ./internal/provider/source_toolkit_fluxcd_io_v1/source_toolkit_fluxcd_io_helm_repository_v1_manifest_test.go
- id: terratest
name: Run Terratest Tests
run: go test -v -timeout=120s -count=1 -run TestSourceToolkitFluxcdIoHelmRepositoryV1Manifest ./terratest/source_toolkit_fluxcd_io_v1
1 change: 1 addition & 0 deletions docs/data-sources/acid_zalan_do_postgresql_v1_manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Optional:
- `enable_shm_volume` (Boolean)
- `env` (List of Map of String)
- `init_containers` (List of Map of String)
- `logical_backup_retention` (String)
- `logical_backup_schedule` (String)
- `maintenance_windows` (List of String)
- `master_service_annotations` (Map of String)
Expand Down
16 changes: 8 additions & 8 deletions docs/data-sources/acme_cert_manager_io_challenge_v1_manifest.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ Optional:
Required:

- `namespace` (String) Namespace refers to the name of a namespace in the local registry
- `registry` (String) Name refers to the name of the upstream registry
- `registry` (String) Registry refers to the name of the upstream registry



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ Required:

Optional:

- `credentials` (Attributes List) Credentials are optional credentials that the Composition Function needs. (see [below for nested schema](#nestedatt--spec--pipeline--credentials))
- `input` (Map of String) Input is an optional, arbitrary Kubernetes resource (i.e. a resourcewith an apiVersion and kind) that will be passed to the CompositionFunction as the 'input' of its RunFunctionRequest.

<a id="nestedatt--spec--pipeline--function_ref"></a>
Expand All @@ -483,6 +484,28 @@ Required:
- `name` (String) Name of the referenced Function.


<a id="nestedatt--spec--pipeline--credentials"></a>
### Nested Schema for `spec.pipeline.credentials`

Required:

- `name` (String) Name of this set of credentials.
- `source` (String) Source of the function credentials.

Optional:

- `secret_ref` (Attributes) A SecretRef is a reference to a secret containing credentials that shouldbe supplied to the function. (see [below for nested schema](#nestedatt--spec--pipeline--credentials--secret_ref))

<a id="nestedatt--spec--pipeline--credentials--secret_ref"></a>
### Nested Schema for `spec.pipeline.credentials.secret_ref`

Required:

- `name` (String) Name of the secret.
- `namespace` (String) Namespace of the secret.




<a id="nestedatt--spec--publish_connection_details_with_store_config_ref"></a>
### Nested Schema for `spec.publish_connection_details_with_store_config_ref`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ Required:

Optional:

- `credentials` (Attributes List) Credentials are optional credentials that the Composition Function needs. (see [below for nested schema](#nestedatt--spec--pipeline--credentials))
- `input` (Map of String) Input is an optional, arbitrary Kubernetes resource (i.e. a resourcewith an apiVersion and kind) that will be passed to the CompositionFunction as the 'input' of its RunFunctionRequest.

<a id="nestedatt--spec--pipeline--function_ref"></a>
Expand All @@ -483,6 +484,28 @@ Required:
- `name` (String) Name of the referenced Function.


<a id="nestedatt--spec--pipeline--credentials"></a>
### Nested Schema for `spec.pipeline.credentials`

Required:

- `name` (String) Name of this set of credentials.
- `source` (String) Source of the function credentials.

Optional:

- `secret_ref` (Attributes) A SecretRef is a reference to a secret containing credentials that shouldbe supplied to the function. (see [below for nested schema](#nestedatt--spec--pipeline--credentials--secret_ref))

<a id="nestedatt--spec--pipeline--credentials--secret_ref"></a>
### Nested Schema for `spec.pipeline.credentials.secret_ref`

Required:

- `name` (String) Name of the secret.
- `namespace` (String) Namespace of the secret.




<a id="nestedatt--spec--publish_connection_details_with_store_config_ref"></a>
### Nested Schema for `spec.publish_connection_details_with_store_config_ref`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ Required:

Optional:

- `credentials` (Attributes List) Credentials are optional credentials that the Composition Function needs. (see [below for nested schema](#nestedatt--spec--pipeline--credentials))
- `input` (Map of String) Input is an optional, arbitrary Kubernetes resource (i.e. a resourcewith an apiVersion and kind) that will be passed to the CompositionFunction as the 'input' of its RunFunctionRequest.

<a id="nestedatt--spec--pipeline--function_ref"></a>
Expand All @@ -482,6 +483,28 @@ Required:
- `name` (String) Name of the referenced Function.


<a id="nestedatt--spec--pipeline--credentials"></a>
### Nested Schema for `spec.pipeline.credentials`

Required:

- `name` (String) Name of this set of credentials.
- `source` (String) Source of the function credentials.

Optional:

- `secret_ref` (Attributes) A SecretRef is a reference to a secret containing credentials that shouldbe supplied to the function. (see [below for nested schema](#nestedatt--spec--pipeline--credentials--secret_ref))

<a id="nestedatt--spec--pipeline--credentials--secret_ref"></a>
### Nested Schema for `spec.pipeline.credentials.secret_ref`

Required:

- `name` (String) Name of the secret.
- `namespace` (String) Namespace of the secret.




<a id="nestedatt--spec--publish_connection_details_with_store_config_ref"></a>
### Nested Schema for `spec.publish_connection_details_with_store_config_ref`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ Optional:
- `proxy_policy` (String) The policy used for proxy binding to the endpoint. Supported proxy policies are: single/all-master-shards/all-nodes When left blank, the default value will be chosen according to the value of ossCluster - single if disabled, all-master-shards when enabled
- `rack_aware` (Boolean) Whether database should be rack aware. This improves availability - more information: https://docs.redislabs.com/latest/rs/concepts/high-availability/rack-zone-awareness/
- `redis_enterprise_cluster` (Attributes) Connection to Redis Enterprise Cluster (see [below for nested schema](#nestedatt--spec--global_configurations--redis_enterprise_cluster))
- `redis_version` (String) Redis OSS version. For existing databases - Upgrade Redis OSS version. For new databases - the version which the database will be created with. If set to 'major' - will always upgrade to the most recent major Redis version. If set to 'latest' - will always upgrade to the most recent Redis version. Depends on 'redisUpgradePolicy' - if you want to set the value to 'latest' for some databases, you must set redisUpgradePolicy on the cluster before. Possible values are 'major' or 'latest' When using upgrade - make sure to backup the database before. This value is used only for database type 'redis'
- `redis_version` (String) Redis OSS version. Version can be specified via <major.minor> prefix, or via channels - for existing databases - Upgrade Redis OSS version. For new databases - the version which the database will be created with. If set to 'major' - will always upgrade to the most recent major Redis version. If set to 'latest' - will always upgrade to the most recent Redis version. Depends on 'redisUpgradePolicy' - if you want to set the value to 'latest' for some databases, you must set redisUpgradePolicy on the cluster before. Possible values are 'major' or 'latest' When using upgrade - make sure to backup the database before. This value is used only for database type 'redis'
- `replica_sources` (Attributes List) What databases to replicate from (see [below for nested schema](#nestedatt--spec--global_configurations--replica_sources))
- `replication` (Boolean) In-memory database replication. When enabled, database will have replica shard for every master - leading to higher availability.
- `replication` (Boolean) In-memory database replication. When enabled, database will have replica shard for every master - leading to higher availability. Defaults to false.
- `resp3` (Boolean) Whether this database supports RESP3 protocol. Note - Deleting this property after explicitly setting its value shall have no effect. Please view the corresponding field in RS doc for more info.
- `rof_ram_size` (String) The size of the RAM portion of an RoF database. Similarly to 'memorySize' use formats like 100MB, 0.1GB It must be at least 10% of combined memory size (RAM+Flash), as specified by 'memorySize'.
- `roles_permissions` (Attributes List) List of Redis Enteprise ACL and Role bindings to apply (see [below for nested schema](#nestedatt--spec--global_configurations--roles_permissions))
Expand All @@ -104,6 +104,7 @@ Optional:
- `shards_placement` (String) Control the density of shards - should they reside on as few or as many nodes as possible. Available options are 'dense' or 'sparse'. If left unset, defaults to 'dense'.
- `tls_mode` (String) Require SSL authenticated and encrypted connections to the database. enabled - all incoming connections to the Database must use SSL. disabled - no incoming connection to the Database should use SSL. replica_ssl - databases that replicate from this one need to use SSL.
- `type` (String) The type of the database.
- `upgrade_spec` (Attributes) Specifications for DB upgrade. (see [below for nested schema](#nestedatt--spec--global_configurations--upgrade_spec))

<a id="nestedatt--spec--global_configurations--active_active"></a>
### Nested Schema for `spec.global_configurations.active_active`
Expand Down Expand Up @@ -360,12 +361,12 @@ Optional:
Required:

- `name` (String) The module's name e.g 'ft' for redissearch
- `version` (String) Module's semantic version e.g '1.6.12'

Optional:

- `config` (String) Module command line arguments e.g. VKEY_MAX_ENTITY_COUNT 30
- `uid` (String) Module's uid - do not set, for system use only nolint:staticcheck // custom json tag unknown to the linter
- `version` (String) Module's semantic version e.g '1.6.12' - optional only in REDB, must be set in REAADB


<a id="nestedatt--spec--global_configurations--redis_enterprise_cluster"></a>
Expand Down Expand Up @@ -402,6 +403,14 @@ Required:
- `type` (String) Type of Redis Enterprise Database Role Permission


<a id="nestedatt--spec--global_configurations--upgrade_spec"></a>
### Nested Schema for `spec.global_configurations.upgrade_spec`

Required:

- `upgrade_modules_to_latest` (Boolean) Upgrades the modules to the latest version that supportes the DB version during a DB upgrade action, to upgrade the DB version view the 'redisVersion' field. Note - This field is currently not supported for Active-Active databases.



<a id="nestedatt--spec--redis_enterprise_cluster"></a>
### Nested Schema for `spec.redis_enterprise_cluster`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,10 @@ Optional:

Optional:

- `enable_persistent_volume_resize` (Boolean) Whether to enable PersistentVolumes resize. Disabled by default. Read the instruction in pvc_expansion readme carefully before using this feature.
- `enabled` (Boolean) Whether to add persistent volume to Redis Enterprise pods
- `storage_class_name` (String) Storage class for persistent volume in Redis Enterprise pods Leave empty to use the default
- `volume_size` (String)
- `storage_class_name` (String) Storage class for persistent volume in Redis Enterprise pods. Leave empty to use the default. If using the default this way, make sure the Kubernetes Cluster has a default Storage Class configured. This can be done by running a 'kubectl get storageclass' and see if one of the Storage Classes' names contains a '(default)' mark.
- `volume_size` (String) To enable resizing after creating the cluster - please follow the instructions in the pvc_expansion readme


<a id="nestedatt--spec--pod_anti_affinity"></a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ Optional:

Optional:

- `enable_persistent_volume_resize` (Boolean)
- `enabled` (Boolean)
- `storage_class_name` (String)
- `volume_size` (String)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ Optional:
- `proxy_policy` (String) The policy used for proxy binding to the endpoint. Supported proxy policies are: single/all-master-shards/all-nodes When left blank, the default value will be chosen according to the value of ossCluster - single if disabled, all-master-shards when enabled
- `rack_aware` (Boolean) Whether database should be rack aware. This improves availability - more information: https://docs.redislabs.com/latest/rs/concepts/high-availability/rack-zone-awareness/
- `redis_enterprise_cluster` (Attributes) Connection to Redis Enterprise Cluster (see [below for nested schema](#nestedatt--spec--redis_enterprise_cluster))
- `redis_version` (String) Redis OSS version. For existing databases - Upgrade Redis OSS version. For new databases - the version which the database will be created with. If set to 'major' - will always upgrade to the most recent major Redis version. If set to 'latest' - will always upgrade to the most recent Redis version. Depends on 'redisUpgradePolicy' - if you want to set the value to 'latest' for some databases, you must set redisUpgradePolicy on the cluster before. Possible values are 'major' or 'latest' When using upgrade - make sure to backup the database before. This value is used only for database type 'redis'
- `redis_version` (String) Redis OSS version. Version can be specified via <major.minor> prefix, or via channels - for existing databases - Upgrade Redis OSS version. For new databases - the version which the database will be created with. If set to 'major' - will always upgrade to the most recent major Redis version. If set to 'latest' - will always upgrade to the most recent Redis version. Depends on 'redisUpgradePolicy' - if you want to set the value to 'latest' for some databases, you must set redisUpgradePolicy on the cluster before. Possible values are 'major' or 'latest' When using upgrade - make sure to backup the database before. This value is used only for database type 'redis'
- `replica_sources` (Attributes List) What databases to replicate from (see [below for nested schema](#nestedatt--spec--replica_sources))
- `replication` (Boolean) In-memory database replication. When enabled, database will have replica shard for every master - leading to higher availability.
- `replication` (Boolean) In-memory database replication. When enabled, database will have replica shard for every master - leading to higher availability. Defaults to false.
- `resp3` (Boolean) Whether this database supports RESP3 protocol. Note - Deleting this property after explicitly setting its value shall have no effect. Please view the corresponding field in RS doc for more info.
- `rof_ram_size` (String) The size of the RAM portion of an RoF database. Similarly to 'memorySize' use formats like 100MB, 0.1GB. It must be at least 10% of combined memory size (RAM and Flash), as specified by 'memorySize'.
- `roles_permissions` (Attributes List) List of Redis Enteprise ACL and Role bindings to apply (see [below for nested schema](#nestedatt--spec--roles_permissions))
Expand All @@ -84,6 +84,7 @@ Optional:
- `shards_placement` (String) Control the density of shards - should they reside on as few or as many nodes as possible. Available options are 'dense' or 'sparse'. If left unset, defaults to 'dense'.
- `tls_mode` (String) Require SSL authenticated and encrypted connections to the database. enabled - all incoming connections to the Database must use SSL. disabled - no incoming connection to the Database should use SSL. replica_ssl - databases that replicate from this one need to use SSL.
- `type` (String) The type of the database (redis or memcached). Defaults to 'redis'.
- `upgrade_spec` (Attributes) Specifications for DB upgrade. (see [below for nested schema](#nestedatt--spec--upgrade_spec))

<a id="nestedatt--spec--active_active"></a>
### Nested Schema for `spec.active_active`
Expand Down Expand Up @@ -326,11 +327,11 @@ Optional:
Required:

- `name` (String) The module's name e.g 'ft' for redissearch
- `version` (String) Module's semantic version e.g '1.6.12'

Optional:

- `config` (String) Module command line arguments e.g. VKEY_MAX_ENTITY_COUNT 30
- `version` (String) Module's semantic version e.g '1.6.12' - optional only in REDB, must be set in REAADB


<a id="nestedatt--spec--redis_enterprise_cluster"></a>
Expand Down Expand Up @@ -365,3 +366,11 @@ Required:
- `acl` (String) Acl Name of RolePermissionType
- `role` (String) Role Name of RolePermissionType
- `type` (String) Type of Redis Enterprise Database Role Permission


<a id="nestedatt--spec--upgrade_spec"></a>
### Nested Schema for `spec.upgrade_spec`

Required:

- `upgrade_modules_to_latest` (Boolean) Upgrades the modules to the latest version that supportes the DB version during a DB upgrade action, to upgrade the DB version view the 'redisVersion' field. Notes - All modules must be without specifing the version. in addition, This field is currently not supported for Active-Active databases.
Loading
Loading