Skip to content

Commit 4ef530c

Browse files
authored
Feature/ssh hosts key (#8)
* Add known_hosts * Fix repo_url in the application manifest
1 parent b057090 commit 4ef530c

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

main.tf

+9-8
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,14 @@ ${var.repo_conf}
252252
"dex.enabled" = "false"
253253
"server.rbacConfig.policy\\.default" = "role:readonly"
254254

255-
"kubeVersionOverride" = var.kubeversion
256-
"configs.secret.createSecret" = true
257-
"configs.secret.githubSecret" = var.github_secret
258-
"configs.secret.gitlabSecret" = var.gitlab_secret
259-
"configs.secret.bitbucketServerSecret" = var.bitbucket_server_secret
260-
"configs.secret.bitbucketUUID" = var.bitbucket_uuid
261-
"configs.secret.gogsSecret" = var.gogs_secret
255+
"kubeVersionOverride" = var.kubeversion
256+
"configs.secret.createSecret" = true
257+
"configs.secret.githubSecret" = var.github_secret
258+
"configs.secret.gitlabSecret" = var.gitlab_secret
259+
"configs.secret.bitbucketServerSecret" = var.bitbucket_server_secret
260+
"configs.secret.bitbucketUUID" = var.bitbucket_uuid
261+
"configs.secret.gogsSecret" = var.gogs_secret
262+
"configs.knownHosts.data.ssh_known_hosts" = var.known_hosts
262263

263264
"global.securityContext.fsGroup" = "999"
264265
"repoServer.env[0].name" = "AWS_DEFAULT_REGION"
@@ -374,7 +375,7 @@ EOF
374375
}
375376
"project" = var.project_name
376377
"source" = {
377-
"repo_url" = local.repository
378+
"repoUrl" = local.repository
378379
"targetRevision" = var.chart_version
379380
"chart" = local.chart
380381
"helm" = {

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ variable "ssh_private_key" {
115115
default = ""
116116
}
117117

118+
variable "known_hosts" {
119+
type = string
120+
description = "It will be used to construct a known_hosts file"
121+
default = ""
122+
}
123+
118124
variable "https_username" {
119125
type = string
120126
description = "An HTTPS username for a private Repo from which to sync"

0 commit comments

Comments
 (0)