Skip to content

Commit

Permalink
Merge pull request #24 from SBatais/add-annotations
Browse files Browse the repository at this point in the history
Add annotations - issue #23
  • Loading branch information
shoudusse authored Apr 16, 2024
2 parents ce8132e + c4d3a59 commit 6e3e41f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ module "cce2_cluster" {
node_os = "CentOS 7.5" // Can be "EulerOS 2.5" or "CentOS 7.5"
node_runtime = "containerd // Valid values are docker and containerd"
key_pair = "my-key"
annotations = { "cluster.install.addons.external/install": "[{\"addonTemplateName\":\"icagent\"}]" }
nodes_list = [
{
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resource "flexibleengine_cce_cluster_v3" "cce_cluster" {
container_network_type = var.container_network_type
eip = var.cluster_eip
description = var.cluster_desc
annotations = var.annotations
extend_param = var.extend_param
}

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ variable "key_pair" {
type = string
}

variable "annotations" {
description = "Cluster annotation, key/value pair format"
type = map(string)
default = {}
}

variable "extend_param" {
description = "Extended Parameters"
type = map(string)
Expand Down

0 comments on commit 6e3e41f

Please sign in to comment.