Skip to content

Commit

Permalink
define repositories and modify runtime chart
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Jan 1, 2024
1 parent f5485fd commit 96d7969
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 25 deletions.
9 changes: 9 additions & 0 deletions apps/repositories/console.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: console
annotations:
"helm.sh/hook": post-install,post-upgrade
spec:
interval: 5m0s
url: https://pluralsh.github.io/console
9 changes: 9 additions & 0 deletions apps/repositories/runtime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: runtime
annotations:
"helm.sh/hook": post-install,post-upgrade
spec:
interval: 5m0s
url: https://pluralsh.github.io/bootstrap
Empty file added apps/services/console.yaml
Empty file.
2 changes: 1 addition & 1 deletion charts/runtime/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: runtime
description: Sets up the basic dependencies needed to get a network stack running
type: application
version: 0.1.9
version: 0.1.10
appVersion: "0.1.0"
dependencies:
- name: external-dns
Expand Down
20 changes: 0 additions & 20 deletions charts/runtime/templates/helmrepositories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,3 @@ metadata:
spec:
interval: 5m0s
url: https://flagger.app
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: console
annotations:
"helm.sh/hook": post-install,post-upgrade
spec:
interval: 5m0s
url: https://pluralsh.github.io/console
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: bootstrap
annotations:
"helm.sh/hook": post-install,post-upgrade
spec:
interval: 5m0s
url: https://pluralsh.github.io/bootstrap
8 changes: 4 additions & 4 deletions templates/setup/cd.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ resource "plural_git_repository" "infra" {
resource "plural_service_deployment" "helm-repositories" {
name = "helm-repositories"
namespace = kubernetes_namespace.infra.metadata.name
repository {
repository = {
id = plural_git_repository.infra.id
ref = "main"
folder = "apps/repositories"
}
cluster {
cluster = {
id = data.plural_cluster.mgmt.id
}
protect = true
Expand All @@ -40,12 +40,12 @@ resource "plural_service_deployment" "helm-repositories" {
resource "plural_service_deployment" "apps" {
name = "apps"
namespace = kubernetes_namespace.infra.metadata.name
repository {
repository = {
id = plural_git_repository.infra.id
ref = "main"
folder = "apps/services"
}
cluster {
cluster = {
id = data.plural_cluster.mgmt.id
}
protect = true
Expand Down

0 comments on commit 96d7969

Please sign in to comment.