Skip to content

Commit

Permalink
Added webfuse resources (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
spietras authored Sep 10, 2024
1 parent f5dcc98 commit 66f7596
Show file tree
Hide file tree
Showing 22 changed files with 223 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/clusters/main/apps/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ resources:
- emistream/emistream.yaml
- emitunes/emitunes.yaml
- podinfo/podinfo.yaml
- webfuse/webfuse.yaml
- webscheduler/webscheduler.yaml
- webshows/webshows.yaml
- webstream/webstream.yaml
Expand Down
8 changes: 8 additions & 0 deletions src/clusters/main/apps/webfuse/kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Create webfuse Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Include the following resources
resources:
- webfuse-helm/webfuse-helm.yaml
- webfuse-namespace/webfuse-namespace.yaml
- webfuse-traefik/webfuse-traefik.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Create webfuse-helm Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Include the following resources
resources:
- resources/release.yaml
- resources/repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Create webfuse Helm release
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: webfuse
spec:
chart:
spec:
# Use this chart from the repository
chart: webfuse
# Pin version to major
version: "0.x"
# Use this Helm repository
sourceRef:
kind: HelmRepository
name: radio-aktywne
# This key always needs to be here for patching to work
postRenderers: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Create webfuse Helm repository
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: radio-aktywne
spec:
type: oci
url: oci://ghcr.io/radio-aktywne/charts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Create webfuse-helm Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webfuse-helm
spec:
# Path inside repository to a directory containing Kustomization files
path: src/clusters/main/apps/webfuse/kustomize/webfuse-helm/kustomize
dependsOn:
# Deploy namespace first
- name: webfuse-namespace
# This key always needs to be here for patching to work
patches: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Create webfuse-namespace Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Include the following resources
resources:
- resources/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Create webfuse namespace
apiVersion: v1
kind: Namespace
metadata:
name: webfuse
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Create webfuse-namespace Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webfuse-namespace
spec:
# Path inside repository to a directory containing Kustomization files
path: src/clusters/main/apps/webfuse/kustomize/webfuse-namespace/kustomize
# This key always needs to be here for patching to work
patches: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Create webfuse-traefik Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Include the following resources
resources:
- resources/routes/http.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Create HTTP ingress route for webfuse
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: webfuse-http
spec:
entryPoints:
# Use entrypoint for HTTPS traffic
- https
routes:
# Match traffic with the Host header
- match: HostRegexp(`webfuse\..*`)
kind: Rule
services:
# Route traffic to the webfuse service
- name: webfuse
# This is the name of the port in the service
port: http
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Create webfuse-traefik Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webfuse-traefik
spec:
# Path inside repository to a directory containing Kustomization files
path: src/clusters/main/apps/webfuse/kustomize/webfuse-traefik/kustomize
dependsOn:
# Deploy Helm release first
- name: webfuse-helm
# This key always needs to be here for patching to work
patches: []
25 changes: 25 additions & 0 deletions src/clusters/main/apps/webfuse/webfuse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Create webfuse Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webfuse
spec:
# Path inside repository to a directory containing Kustomization files
path: src/clusters/main/apps/webfuse/kustomize
dependsOn:
# Deploy Traefik first
- name: traefik
# Apply patches for common configurations
# This key always needs to be here for patching to work
patches:
# Set target namespace
- target:
group: kustomize.toolkit.fluxcd.io
kind: Kustomization
name: .*
patch: |
kind: .
metadata:
name: .
spec:
targetNamespace: webfuse
1 change: 1 addition & 0 deletions tests/clusters/ci/main/apps/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ resources:
- emistream/emistream.yaml
- emitunes/emitunes.yaml
- podinfo/podinfo.yaml
- webfuse/webfuse.yaml
- webscheduler/webscheduler.yaml
- webshows/webshows.yaml
- webstream/webstream.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Create webfuse Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Include the following resources
resources:
- webfuse-helm/webfuse-helm.yaml
- webfuse-namespace/webfuse-namespace.yaml
- webfuse-traefik/webfuse-traefik.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Overlay webfuse-helm Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../../../../../src/clusters/main/apps/webfuse/kustomize/webfuse-helm/kustomize
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Create webfuse-helm Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webfuse-helm
spec:
# Path inside repository to a directory containing Kustomization files
path: tests/clusters/ci/main/apps/webfuse/kustomize/webfuse-helm/kustomize
dependsOn:
# Deploy namespace first
- name: webfuse-namespace
# This key always needs to be here for patching to work
patches: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Overlay webfuse-namespace Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../../../../../src/clusters/main/apps/webfuse/kustomize/webfuse-namespace/kustomize
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Create webfuse-namespace Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webfuse-namespace
spec:
# Path inside repository to a directory containing Kustomization files
path: tests/clusters/ci/main/apps/webfuse/kustomize/webfuse-namespace/kustomize
# This key always needs to be here for patching to work
patches: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Overlay webfuse-traefik Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../../../../../src/clusters/main/apps/webfuse/kustomize/webfuse-traefik/kustomize
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Create webfuse-traefik Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webfuse-traefik
spec:
# Path inside repository to a directory containing Kustomization files
path: tests/clusters/ci/main/apps/webfuse/kustomize/webfuse-traefik/kustomize
dependsOn:
# Deploy Helm release first
- name: webfuse-helm
# This key always needs to be here for patching to work
patches: []
25 changes: 25 additions & 0 deletions tests/clusters/ci/main/apps/webfuse/webfuse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Create webfuse Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webfuse
spec:
# Path inside repository to a directory containing Kustomization files
path: tests/clusters/ci/main/apps/webfuse/kustomize
dependsOn:
# Deploy Traefik first
- name: traefik
# Apply patches for common configurations
# This key always needs to be here for patching to work
patches:
# Set target namespace
- target:
group: kustomize.toolkit.fluxcd.io
kind: Kustomization
name: .*
patch: |
kind: .
metadata:
name: .
spec:
targetNamespace: webfuse

0 comments on commit 66f7596

Please sign in to comment.