Browse Source

tech: Set example to use KinD

tags/0.2.0
parent
commit
256ad638af
Signed by untrusted user: christophe.vkerchove <christophe.vkerchove@fxinnovation.com> GPG Key ID: 0A0AD982455B0314
4 changed files with 4 additions and 46 deletions
  1. +2
    -1
      CHANGELOG.md
  2. +0
    -1
      Jenkinsfile
  3. +2
    -29
      examples/default/deploy.tf
  4. +0
    -15
      examples/default/variables.tf

+ 2
- 1
CHANGELOG.md View File

@@ -1,7 +1,8 @@

0.2.0 / 2020-03-27
0.2.0 / 2020-03-30
==================

* tech: Set example to use KinD
* fix: Several typo's in alert groups
* tech: Use KinD for testing
* feat: Add prometheus alerts as outputs


+ 0
- 1
Jenkinsfile View File

@@ -1,5 +1,4 @@
fxTerraform([
initSSHCredentialId: 'gitea-fx_administrator-key',
runKind: true,
]
)

+ 2
- 29
examples/default/deploy.tf View File

@@ -2,27 +2,9 @@
# Providers
#####

provider "azurerm" {
version = "1.28.0"
client_id = var.client_id
client_secret = var.client_secret
subscription_id = var.subscription_id
tenant_id = var.tenant_id
}

provider "random" {
version = "~> 2"
}

provider "kubernetes" {
version = "1.10.0"
host = data.azurerm_kubernetes_cluster.this.kube_config.0.host
username = data.azurerm_kubernetes_cluster.this.kube_config.0.username
password = data.azurerm_kubernetes_cluster.this.kube_config.0.password
client_certificate = base64decode(data.azurerm_kubernetes_cluster.this.kube_config.0.client_certificate)
client_key = base64decode(data.azurerm_kubernetes_cluster.this.kube_config.0.client_key)
cluster_ca_certificate = base64decode(data.azurerm_kubernetes_cluster.this.kube_config.0.cluster_ca_certificate)
load_config_file = false
version = "1.10.0"
load_config_file = true
}

#####
@@ -43,15 +25,6 @@ resource "random_string" "disabled" {
length = 8
}

#####
# Datasources
#####

data "azurerm_kubernetes_cluster" "this" {
name = "prometheusplusplus-stg0"
resource_group_name = "prometheusplusplus-stg0"
}

#####
# Context
#####


+ 0
- 15
examples/default/variables.tf View File

@@ -1,15 +0,0 @@
variable "client_id" {
type = string
}

variable "client_secret" {
type = string
}

variable "subscription_id" {
type = string
}

variable "tenant_id" {
type = string
}

Loading…
Cancel
Save