Skip to content

Commit

Permalink
try installing harbor on management cluster.
Browse files Browse the repository at this point in the history
  • Loading branch information
huseyindeniz committed Feb 9, 2025
1 parent b634195 commit 1d432c2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flux/local-management/harbor/harbor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
generators:
- list:
elements:
- envName: staging
- envName: local
goTemplate: true
goTemplateOptions: ["missingkey=error"]
template:
Expand All @@ -27,7 +27,7 @@ spec:
ref: values
destination:
server: "https://kubernetes.default.svc"
namespace: "harbor-{{ .envName }}"
namespace: "harbor"
syncPolicy:
automated:
prune: true
Expand Down
6 changes: 6 additions & 0 deletions terraform/local-management/namespaces.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ resource "kubernetes_namespace" "argocd" {
name = var.argo_namespace
}
}

resource "kubernetes_namespace" "harbor" {
metadata {
name = var.harbor_namespace
}
}
5 changes: 5 additions & 0 deletions terraform/local-management/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ variable "argo_namespace" {
type = string
}

variable "harbor_namespace" {
description = "The name of the Harbor namespace"
type = string
}

variable "flux_github_org" {
description = "Flux GitHub organization"
type = string
Expand Down

0 comments on commit 1d432c2

Please sign in to comment.