-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Init helm release #5
Merged
Merged
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4be05af
feat: Init helm release
adityachoudhari26 debf136
port is number
adityachoudhari26 65a6e10
remove global for not global things
adityachoudhari26 9d1d69c
use correct postgres port
adityachoudhari26 9968a9a
correct service accounts
adityachoudhari26 bba0bf3
update readme
jsbroks 71c1b77
clean up
jsbroks 8c31325
add ssl cert
jsbroks 403985b
add example domain
jsbroks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,81 @@ | ||
resource "helm_release" "this" { | ||
name = "ctrlplane" | ||
chart = "ctrlplane" | ||
repository = "https://charts.ctrlplane.dev/" | ||
|
||
set { | ||
name = "global.redis.host" | ||
value = var.redis_host | ||
} | ||
|
||
set { | ||
name = "global.redis.port" | ||
value = var.redis_port | ||
} | ||
|
||
set { | ||
name = "global.redis.password" | ||
value = var.redis_password | ||
} | ||
|
||
set { | ||
name = "global.postgresql.user" | ||
value = var.postgres_user | ||
} | ||
|
||
set { | ||
name = "global.postgresql.password" | ||
value = var.postgres_password | ||
} | ||
|
||
set { | ||
name = "global.postgresql.host" | ||
value = var.postgres_host | ||
} | ||
|
||
set { | ||
name = "global.postgresql.port" | ||
value = var.postgres_port | ||
} | ||
|
||
set { | ||
name = "global.postgresql.database" | ||
value = var.postgres_database | ||
} | ||
|
||
set { | ||
name = "global.webservice.serviceAccount.create" | ||
value = true | ||
} | ||
|
||
set { | ||
name = "global.webservice.serviceAccount.annotations" | ||
value = yamlencode({ | ||
"iam.gke.io/gcp-service-account" = var.service_account_email | ||
}) | ||
} | ||
|
||
set { | ||
name = "global.job-policy-checker.serviceAccount.create" | ||
value = true | ||
} | ||
|
||
set { | ||
name = "global.job-policy-checker.serviceAccount.annotations" | ||
value = yamlencode({ | ||
"iam.gke.io/gcp-service-account" = var.service_account_email | ||
}) | ||
} | ||
|
||
set { | ||
name = "global.migrations.serviceAccount.create" | ||
value = true | ||
} | ||
|
||
set { | ||
name = "global.migrations.serviceAccount.annotations" | ||
value = yamlencode({ | ||
"iam.gke.io/gcp-service-account" = var.service_account_email | ||
}) | ||
} | ||
} |
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,44 @@ | ||
variable "redis_host" { | ||
type = string | ||
description = "The host for the Redis instance." | ||
} | ||
|
||
variable "redis_port" { | ||
type = number | ||
description = "The port for the Redis instance." | ||
} | ||
|
||
variable "redis_password" { | ||
type = string | ||
description = "The password for the Redis instance." | ||
} | ||
|
||
variable "postgres_user" { | ||
type = string | ||
description = "The user for the Postgres instance." | ||
} | ||
|
||
variable "postgres_password" { | ||
type = string | ||
description = "The password for the Postgres instance." | ||
} | ||
|
||
variable "postgres_host" { | ||
type = string | ||
description = "The host for the Postgres instance." | ||
} | ||
|
||
variable "postgres_port" { | ||
type = number | ||
description = "The port for the Postgres instance." | ||
} | ||
|
||
variable "postgres_database" { | ||
type = string | ||
description = "The database for the Postgres instance." | ||
} | ||
|
||
variable "service_account_email" { | ||
type = string | ||
description = "The service account email." | ||
} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wtf? gloabl