Skip to content

Commit

Permalink
docs: add exhaustive examples for previous added fields (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiaop authored Jul 12, 2024
1 parent de9e45d commit 997ee95
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 10 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ terraform {
required_providers {
akp = {
source = "akuity/akp"
version = "~> 0.6.0"
version = "~> 0.7.0"
}
}
}
Expand All @@ -47,7 +47,7 @@ resource "akp_instance" "argocd" {
"instance_spec" = {
"declarative_management_enabled" = true
}
"version" = "v2.8.4"
"version" = "v2.11.4"
}
}
}
Expand All @@ -72,3 +72,4 @@ See more examples in [here](https://github.com/akuity/terraform-provider-akp/tre
## Upgrading
- [Upgrading to v0.5](./docs/guides/v0.5-upgrading.md)
- [Upgrading to v0.6](./docs/guides/v0.6-upgrading.md)
- [Upgrading to v0.7](./docs/guides/v0.7-upgrading.md)
8 changes: 7 additions & 1 deletion docs/resources/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ resource "akp_cluster" "example" {
size = "small"
auto_upgrade_disabled = true
target_version = "0.4.0"
kustomization = <<EOF
managed_cluster_config = {
secret_key = "secret"
secret_name = "secret-name"
}
eks_addon_enabled = true
datadog_annotations_enabled = true
kustomization = <<EOF
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
patches:
Expand Down
21 changes: 18 additions & 3 deletions docs/resources/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "akp_instance" "argocd" {
"instance_spec" = {
"declarative_management_enabled" = true
}
"version" = "v2.8.4"
"version" = "v2.11.4"
}
}
}
Expand All @@ -37,7 +37,7 @@ resource "akp_instance" "argocd" {
"instance_spec" = {
"declarative_management_enabled" = true
}
"version" = "v2.8.4"
"version" = "v2.11.4"
}
}
config_management_plugins = {
Expand Down Expand Up @@ -128,8 +128,23 @@ resource "akp_instance" "example" {
ip = "1.2.3.4"
},
]
crossplane_extension = {
resources = [
{
group = "*.example.crossplane.*",
}
]
}
agent_permissions_rules = [
{
api_groups = ["batch"]
resources = ["jobs"]
verbs = ["create"]
}
]
fqdn = "test.example.com"
}
version = "v2.6.4"
version = "v2.11.4"
}
}
argocd_cm = {
Expand Down
8 changes: 7 additions & 1 deletion examples/resources/akp_cluster/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ resource "akp_cluster" "example" {
size = "small"
auto_upgrade_disabled = true
target_version = "0.4.0"
kustomization = <<EOF
managed_cluster_config = {
secret_key = "secret"
secret_name = "secret-name"
}
eks_addon_enabled = true
datadog_annotations_enabled = true
kustomization = <<EOF
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
patches:
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/akp_instance/basic.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "akp_instance" "argocd" {
"instance_spec" = {
"declarative_management_enabled" = true
}
"version" = "v2.8.4"
"version" = "v2.11.4"
}
}
}
2 changes: 1 addition & 1 deletion examples/resources/akp_instance/cmp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "akp_instance" "argocd" {
"instance_spec" = {
"declarative_management_enabled" = true
}
"version" = "v2.8.4"
"version" = "v2.11.4"
}
}
config_management_plugins = {
Expand Down
17 changes: 16 additions & 1 deletion examples/resources/akp_instance/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,23 @@ resource "akp_instance" "example" {
ip = "1.2.3.4"
},
]
crossplane_extension = {
resources = [
{
group = "*.example.crossplane.*",
}
]
}
agent_permissions_rules = [
{
api_groups = ["batch"]
resources = ["jobs"]
verbs = ["create"]
}
]
fqdn = "test.example.com"
}
version = "v2.6.4"
version = "v2.11.4"
}
}
argocd_cm = {
Expand Down

0 comments on commit 997ee95

Please sign in to comment.