-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: sftpgo workload identity + fix sftpgo ui + add loadbalancer for…
… TCP services (#572) * fix: fix sftpgo gcp depeendency * fix: fix sftpgo ingress + added optional service to access tcp services through a domain * feat(wip): add sftpgo workload identity * feat: add variables to register roles for sftpgo workload identity sa * fix: fix serviceAccount annotation * feat: bump sftpgo helm chart version
- Loading branch information
Showing
13 changed files
with
149 additions
and
50 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
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
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
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,15 @@ | ||
apiVersion: plural.sh/v1alpha1 | ||
kind: Dependencies | ||
metadata: | ||
description: sftpgo gcp setup | ||
version: 0.1.0 | ||
spec: | ||
dependencies: | ||
- name: gcp-bootstrap | ||
repo: bootstrap | ||
type: terraform | ||
version: ">= 0.1.1" | ||
providers: | ||
- gcp | ||
outputs: | ||
gcp_sa_workload_identity_email: gcp_sa_workload_identity_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,20 @@ | ||
resource "kubernetes_namespace" "sftpgo" { | ||
metadata { | ||
name = var.namespace | ||
labels = { | ||
"app.kubernetes.io/managed-by" = "plural" | ||
"app.plural.sh/name" = "sftpgo" | ||
} | ||
} | ||
} | ||
|
||
module "sftpgo-workload-identity" { | ||
source = "terraform-google-modules/kubernetes-engine/google//modules/workload-identity" | ||
name = "${var.cluster_name}-sftpgo-workload" | ||
namespace = var.namespace | ||
project_id = var.project_id | ||
use_existing_k8s_sa = true | ||
annotate_k8s_sa = false | ||
k8s_sa_name = "sftpgo" | ||
roles = var.roles | ||
} |
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,3 @@ | ||
output "gcp_sa_workload_identity_email" { | ||
value = module.sftpgo-workload-identity.gcp_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,3 @@ | ||
namespace = {{ .Namespace | quote }} | ||
cluster_name = {{ .Cluster | quote }} | ||
project_id = {{ .Project | quote }} |
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,21 @@ | ||
variable "namespace" { | ||
type = string | ||
default = "sftpgo" | ||
} | ||
|
||
variable "cluster_name" { | ||
type = string | ||
} | ||
|
||
variable "project_id" { | ||
type = string | ||
description = <<EOF | ||
The ID of the project in which the resources belong. | ||
EOF | ||
} | ||
|
||
variable "roles" { | ||
type = list(string) | ||
description = "A list of roles to be added to the sftpgo workload identity service account" | ||
default = [] | ||
} |
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