Skip to content

Commit

Permalink
CLUS-4796 push no. 5
Browse files Browse the repository at this point in the history
  • Loading branch information
premnalla committed Dec 2, 2024
1 parent 237148a commit aeedaf4
Show file tree
Hide file tree
Showing 20 changed files with 165 additions and 110 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NAMESPACE=severalnines
NAME=clustercontrol
BINARY=terraform-provider-${NAME}
TARGET=./bin/${BINARY}
VERSION=0.2.21
VERSION=0.2.22
OS_ARCH=darwin_amd64
TARGET_DIR=~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}

Expand Down
4 changes: 2 additions & 2 deletions examples/elastic/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# required_providers {
# clustercontrol = {
# source = "severalnines/clustercontrol"
# version = ">=0.2.0"
# version = ">=0.2.22"
# }
# }
# }
Expand All @@ -13,7 +13,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines.com/severalnines/clustercontrol"
version = ">= 0.1"
version = ">= 0.2.22"
}

}
Expand Down
4 changes: 2 additions & 2 deletions examples/mongo/replicaset/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines/clustercontrol"
version = ">=0.2.0"
version = ">=0.2.22"
}
}
}
Expand All @@ -11,7 +11,7 @@ terraform {
# required_providers {
# clustercontrol = {
# source = "severalnines.com/severalnines/clustercontrol"
# version = ">= 0.1"
# version = ">= 0.2.22"
# }
# }
# }
4 changes: 2 additions & 2 deletions examples/mongo/sharded-replicaset/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines/clustercontrol"
version = ">=0.2.0"
version = ">=0.2.22"
}
}
}
Expand All @@ -11,7 +11,7 @@ terraform {
# required_providers {
# clustercontrol = {
# source = "severalnines.com/severalnines/clustercontrol"
# version = ">= 0.1"
# version = ">= 0.2.22"
# }
# }
# }
4 changes: 2 additions & 2 deletions examples/mssql/multi/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines/clustercontrol"
version = ">=0.2.0"
version = ">=0.2.22"
}
}
}
Expand All @@ -11,7 +11,7 @@ terraform {
# required_providers {
# clustercontrol = {
# source = "severalnines.com/severalnines/clustercontrol"
# version = ">= 0.1"
# version = ">= 0.2.22"
# }
# }
# }
4 changes: 2 additions & 2 deletions examples/mssql/single/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines/clustercontrol"
version = ">=0.2.0"
version = ">=0.2.22"
}
}
}
Expand All @@ -11,7 +11,7 @@ terraform {
# required_providers {
# clustercontrol = {
# source = "severalnines.com/severalnines/clustercontrol"
# version = ">= 0.1"
# version = ">= 0.2.22"
# }
# }
# }
4 changes: 2 additions & 2 deletions examples/mysql-maria/galera/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines/clustercontrol"
version = ">=0.2.0"
version = ">=0.2.22"
}
}
}
Expand All @@ -11,7 +11,7 @@ terraform {
# required_providers {
# clustercontrol = {
# source = "severalnines.com/severalnines/clustercontrol"
# version = ">= 0.1"
# version = ">= 0.2.22"
# }
# }
# }
4 changes: 2 additions & 2 deletions examples/mysql-maria/replication/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines/clustercontrol"
version = ">=0.2.20"
version = ">=0.2.22"
}
}
}
Expand All @@ -11,7 +11,7 @@ terraform {
# required_providers {
# clustercontrol = {
# source = "severalnines.com/severalnines/clustercontrol"
# version = ">= 0.2.21"
# version = ">= 0.2.22"
# }
# }
# }
4 changes: 2 additions & 2 deletions examples/postgres/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines/clustercontrol"
version = ">=0.2.20"
version = ">=0.2.22"
}
}
}
Expand All @@ -11,7 +11,7 @@ terraform {
# required_providers {
# clustercontrol = {
# source = "severalnines.com/severalnines/clustercontrol"
# version = ">= 0.2.21"
# version = ">= 0.2.22"
# }
# }
# }
4 changes: 2 additions & 2 deletions examples/redis/cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines/clustercontrol"
version = ">=0.2.21"
version = ">=0.2.22"
}
}
}
Expand All @@ -11,7 +11,7 @@ terraform {
# required_providers {
# clustercontrol = {
# source = "severalnines.com/severalnines/clustercontrol"
# version = ">= 0.2.21"
# version = ">= 0.2.22"
# }
# }
# }
4 changes: 2 additions & 2 deletions examples/redis/sentinel/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines/clustercontrol"
version = ">=0.2.0"
version = ">=0.2.22"
}
}
}
Expand All @@ -11,7 +11,7 @@ terraform {
# required_providers {
# clustercontrol = {
# source = "severalnines.com/severalnines/clustercontrol"
# version = ">= 0.1"
# version = ">= 0.2.22"
# }
# }
# }
6 changes: 3 additions & 3 deletions examples/valkey/cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ resource "clustercontrol_db_cluster" "this" {
# db_backup_retention = var.db_backup_retention
# }

# resource "clustercontrol_db_cluster_maintenance" "server-upgrade-03232024" {
# resource "clustercontrol_db_cluster_maintenance" "server-upgrade-12042024" {
# depends_on = [clustercontrol_db_cluster.this]
# db_cluster_id = clustercontrol_db_cluster.this.id
# db_maint_start_time = "Mar-27-2024T22:00"
# db_maint_stop_time = "Mar-28-2024T22:30"
# db_maint_start_time = "Dec-04-2024T22:00"
# db_maint_stop_time = "Dec-04-2024T22:30"
# db_maint_reason = "Hardware refresh March 27, 2024"
# }
4 changes: 2 additions & 2 deletions examples/valkey/cluster/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines/clustercontrol"
version = ">=0.2.21"
version = ">=0.2.22"
}
}
}
Expand All @@ -11,7 +11,7 @@ terraform {
# required_providers {
# clustercontrol = {
# source = "severalnines.com/severalnines/clustercontrol"
# version = ">= 0.2.21"
# version = ">= 0.2.22"
# }
# }
# }
4 changes: 2 additions & 2 deletions examples/valkey/sentinel/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# required_providers {
# clustercontrol = {
# source = "severalnines/clustercontrol"
# version = ">=0.2.21"
# version = ">=0.2.22"
# }
# }
# }
Expand All @@ -11,7 +11,7 @@ terraform {
required_providers {
clustercontrol = {
source = "severalnines.com/severalnines/clustercontrol"
version = ">= 0.2.21"
version = ">= 0.2.22"
}
}
}
6 changes: 4 additions & 2 deletions internal/provider/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const (
CLUSTER_TYPE_MOGNODB = "mongodb"
CLUSTER_TYPE_PG_SINGLE = "postgresql_single"
CLUSTER_TYPE_REDIS = "redis"
CLUSTER_TYPE_VALKEY = "valkey"
CLUSTER_TYPE_REDIS_SHARDED = "redis_sharded"
CLUSTER_TYPE_VALKEY_SHARDED = "valkey_sharded"
CLUSTER_TYPE_MSSQL_AO_ASYNC = "mssql_ao_async"
Expand Down Expand Up @@ -49,6 +50,7 @@ const (
EXT_CLUSTER_TYPE_MONGODB = "mongo"
EXT_CLUSTER_TYPE_REDIS_SENTINEL = "redis-sentinel"
EXT_CLUSTER_TYPE_REDIS_SHARDED = "redis-sharded"
EXT_CLUSTER_TYPE_VALKEY_SENTINEL = "valkey-sentinel"
EXT_CLUSTER_TYPE_VALKEY_SHARDED = "valkey-sharded"
EXT_CLUSTER_TYPE_ELASTICSEARH = "elasticsearch"
EXT_CLUSTER_TYPE_MSSQL_ASYN = "mssql-async"
Expand Down Expand Up @@ -89,7 +91,7 @@ const (
const (
MYSQL_VERSION_8 = "8.0"
MYSQL_VERSION_8_4 = "8.4"
MYSQL_VERSION_5_7 = "5.7"
//MYSQL_VERSION_5_7 = "5.7"
)

const (
Expand All @@ -101,7 +103,7 @@ const (
MARIADB_VERSION_10_6 = "10.6"
MARIADB_VERSION_10_5 = "10.5"
MARIADB_VERSION_10_4 = "10.4"
MARIADB_VERSION_10_3 = "10.3"
//MARIADB_VERSION_10_3 = "10.3"
)

const (
Expand Down
Loading

0 comments on commit aeedaf4

Please sign in to comment.