Skip to content

Commit

Permalink
Merge pull request #4 from Aguafrommars/user/ole
Browse files Browse the repository at this point in the history
User/ole
  • Loading branch information
aguacongas authored Mar 21, 2022
2 parents 21a56a8 + 15e1a7d commit df2e3b5
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 18 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ You can follow the [Create an HTTPS ingress controller on Azure Kubernetes Servi

The module setup ingresses for [TheIdServer](https://github.com/Aguafrommars/TheIdServer) and [Seq](https://datalust.co/) using the **host** input variable.

```
``` hcl
provider "helm" {
kubernetes {
config_path = "C:/Users/LefebvreO/.kube/config"
config_path = var.kubeconfig_path
}
}
Expand All @@ -40,7 +40,7 @@ By default resouces are created in the *theidserver* namespace.
By default the [TheIdServer helm chart](https://artifacthub.io/packages/helm/aguafrommars/theidserver) install the [IdentityServer4](https://github.com/Aguafrommars/TheIdServer/blob/master/src/Aguacongas.TheIdServer.IS4/README.md) version.
If you prefer to use the [Duende IdentityServer](https://github.com/Aguafrommars/TheIdServer/blob/master/src/Aguacongas.TheIdServer.Duende/README.md) version configure the **image** input to override the default docker image configuration.

```
``` hcl
module "theidserver" {
source = "Aguafrommars/theidserver/helm"
Expand Down Expand Up @@ -74,7 +74,7 @@ SE!OfFGOm}(5v3wF
[TheIdServer](https://github.com/Aguafrommars/TheIdServer) needs to send email to verify users emails or for CIBA. The default Email service implementation use [SendGrid](https://sendgrid.com/) and read user and API key from configuration.
The **env_settings** input can be use to pass environments variables to containers, so we can ovveride the configuration using environment variables.
```
``` hcl
module "theidserver" {
source = "Aguafrommars/theidserver/helm"
Expand All @@ -92,7 +92,7 @@ This sample setup [SendGrid](https://sendgrid.com/) environment variables used b
If you want to use your Email sender, you need to implement a web api and setup its url. [Read the doc](https://github.com/Aguafrommars/TheIdServer/blob/master/src/Aguacongas.TheIdServer.Duende/README.md#use-your-api).
```
``` hcl
module "theidserver" {
source = "Aguafrommars/theidserver/helm"
Expand All @@ -112,7 +112,7 @@ This sampel setup the Email Sender url using environment variable.
You can use the **override_setting** input to override the [TheIdServer helm chart](https://artifacthub.io/packages/helm/aguafrommars/theidserver).
```
``` hcl
module "theidserver" {
source = "Aguafrommars/theidserver/helm"
Expand All @@ -135,8 +135,8 @@ This sample setup the Email Sender url using the appsettings.json file.
## Inputs
|Name|Description|Type|Default|
|-|-|-|-|
|Name|Description|Type|Default|
|----|-----------|----|-------|
|host|The host|string||
|tls_issuer_name|The name of the certificat issuer to use|string||
|tls_issuer_kind|The kind of the certificat issuer to use (Issuer or ClusterIssuer)|string||
Expand All @@ -154,8 +154,8 @@ This sample setup the Email Sender url using the appsettings.json file.
## Outputs
|Name|Description|Type|Sensitive|
|-|-|-|-|
|Name|Description|Type|Sensitive|
|----|-----------|----|---------|
|admin_name|The generated admin user name|string|false|
|admin_password|The generated admin user password|string|true|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Basic usage

```
``` hcl
provider "helm" {
kubernetes {
config_path = "C:/Users/LefebvreO/.kube/config"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This sample override the Email sender API url with the url passed in input.

```
``` hcl
provider "helm" {
kubernetes {
config_path = var.kubeconfig_path
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This sample use the lastest built Duende version.

```
``` hcl
provider "helm" {
kubernetes {
config_path = var.kubeconfig_path
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This sample set SendGrid credentials from input through env vars.

```
``` hcl
provider "helm" {
kubernetes {
config_path = "C:/Users/LefebvreO/.kube/config"
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@ locals {
welcomeContenUrl = format("https://www.%s/api/welcomefragment", var.host)
}
replicaCount = var.replica_count
podAnnotations = {
deployment-date = timestamp()
}
ingress = {
enabled = true
annotations = {
Expand Down Expand Up @@ -271,7 +268,7 @@ locals {
resource "helm_release" "theidserver" {
name = var.release_name
repository = "https://aguafrommars.github.io/helm"
chart = "theidserver"
chart = "C:\\Projects\\Perso\\helm\\charts\\theidserver"
version = var.chart_version
namespace = var.namespace
create_namespace = var.create_namespace
Expand Down

0 comments on commit df2e3b5

Please sign in to comment.