Skip to content

Commit

Permalink
Swap away from OCI for flux
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Nov 7, 2024
1 parent 59f9532 commit 37c8e43
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
8 changes: 0 additions & 8 deletions deployments/stacks/dpe-k8s-deployments/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ provider "helm" {
kubernetes {
config_path = var.kube_config_path
}

registry {
url = "oci://ghcr.io"
# TODO: Is there a service account we can use instead of my personal account?
username = "BryanFauble"
# Requires that a secret be created in spacelift TF_VAR_github_container_repository_token
password = var.github_container_repository_token
}
}

provider "spotinst" {
Expand Down
5 changes: 0 additions & 5 deletions deployments/stacks/dpe-k8s-deployments/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,3 @@ variable "smtp_from" {
type = string
default = ""
}

variable "github_container_repository_token" {
description = "The GitHub container repository token. Used to authenticate with the container registry for OCI based helm charts."
type = string
}
4 changes: 2 additions & 2 deletions modules/flux-cd/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ resource "kubernetes_namespace" "flux-system" {
}

resource "helm_release" "fluxcd" {
name = "argo-cd"
repository = "oci://ghcr.io/fluxcd-community/charts/flux2"
name = "flux2"
repository = "https://fluxcd-community.github.io/helm-charts"
chart = "flux2"
namespace = "flux-system"
version = "2.14.0"
Expand Down

0 comments on commit 37c8e43

Please sign in to comment.