-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Aguafrommars/user/ole
doc: update samples
- Loading branch information
Showing
13 changed files
with
142 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
# Basic usage | ||
|
||
``` | ||
provider "helm" { | ||
kubernetes { | ||
config_path = "C:/Users/LefebvreO/.kube/config" | ||
} | ||
} | ||
|
||
module "theidserver" { | ||
source = "terraform-helm-theidserver" | ||
source = "Aguafrommars/theidserver/helm" | ||
|
||
host = "theidserver.com" | ||
tls_issuer_name = "letsencrypt" | ||
tls_issuer_kind = "ClusterIssuer" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
provider "helm" { | ||
kubernetes { | ||
config_path = var.kubeconfig_path | ||
} | ||
} | ||
|
||
module "theidserver" { | ||
source = "Aguafrommars/theidserver/helm" | ||
|
||
host = "theidserver.com" | ||
tls_issuer_name = "letsencrypt" | ||
tls_issuer_kind = "ClusterIssuer" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
variable "kubeconfig_path" { | ||
type = string | ||
description = "Path to the .kube/config" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Override settings | ||
|
||
This sample override the Email sender API url with the url passed in input. | ||
|
||
``` | ||
provider "helm" { | ||
kubernetes { | ||
config_path = var.kubeconfig_path | ||
} | ||
} | ||
|
||
module "theidserver" { | ||
source = "Aguafrommars/theidserver/helm" | ||
|
||
host = "theidserver.com" | ||
tls_issuer_name = "letsencrypt" | ||
tls_issuer_kind = "ClusterIssuer" | ||
|
||
override_setting = { | ||
appSettings = { | ||
file = { | ||
EmailApiAuthentication = { | ||
ApiUrl = var.api_url | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
variable "kubeconfig_path" { | ||
type = string | ||
description = "Path to the .kube/config" | ||
} | ||
|
||
variable "api_url" { | ||
type = string | ||
description = "The Email sender API url" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Set docker image | ||
|
||
This sample use the lastest built Duende version. | ||
|
||
``` | ||
provider "helm" { | ||
kubernetes { | ||
config_path = var.kubeconfig_path | ||
} | ||
} | ||
|
||
module "theidserver" { | ||
source = "Aguafrommars/theidserver/helm" | ||
|
||
host = "theidserver.com" | ||
tls_issuer_name = "letsencrypt" | ||
tls_issuer_kind = "ClusterIssuer" | ||
|
||
image = { | ||
repository = "aguacongas/theidserver.duende" | ||
pullPolicy = "Always" | ||
tag = "next" | ||
} | ||
} | ||
``` |
4 changes: 2 additions & 2 deletions
4
examples/set_docker_image/main.tf → examples/set docker image/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
variable "kubeconfig_path" { | ||
type = string | ||
description = "Path to the .kube/config" | ||
} |
12 changes: 9 additions & 3 deletions
12
examples/set_env_vars/main.tf → examples/set env vars/README.nd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
# Set env vars | ||
|
||
This sample set SendGrid credentials from input through env vars. | ||
|
||
``` | ||
provider "helm" { | ||
kubernetes { | ||
config_path = "C:/Users/LefebvreO/.kube/config" | ||
} | ||
} | ||
|
||
module "theidserver" { | ||
source = "terraform-helm-theidserver" | ||
source = "Aguafrommars/theidserver/helm" | ||
|
||
host = "theidserver.com" | ||
tls_issuer_name = "letsencrypt" | ||
tls_issuer_kind = "ClusterIssuer" | ||
|
||
env_settings = { | ||
SendGridUser = "<SENDGRID_USER>" | ||
SendGridKey = "<SENDGRID_API_KEY>" | ||
SendGridUser = var.sendgrid_user | ||
SendGridKey = var.sendgrid_api_key | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
provider "helm" { | ||
kubernetes { | ||
config_path = var.kubeconfig_path | ||
} | ||
} | ||
|
||
module "theidserver" { | ||
source = "Aguafrommars/theidserver/helm" | ||
|
||
host = "theidserver.com" | ||
tls_issuer_name = "letsencrypt" | ||
tls_issuer_kind = "ClusterIssuer" | ||
|
||
env_settings = { | ||
SendGridUser = var.sendgrid_user | ||
SendGridKey = var.sendgrid_api_key | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
variable "kubeconfig_path" { | ||
type = string | ||
description = "Path to the .kube/config" | ||
} | ||
|
||
|
||
variable "sendgrid_user" { | ||
type = string | ||
description = "Your SendGrid user" | ||
} | ||
|
||
variable "sendgrid_api_key" { | ||
type = string | ||
description = "Your SendGrid API key" | ||
} |