Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added webrecords resources #119

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/clusters/main/apps/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ resources:
- emitunes/emitunes.yaml
- podinfo/podinfo.yaml
- webfuse/webfuse.yaml
- webrecords/webrecords.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 webrecords Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Include the following resources
resources:
- webrecords-helm/webrecords-helm.yaml
- webrecords-namespace/webrecords-namespace.yaml
- webrecords-traefik/webrecords-traefik.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Create webrecords-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 webrecords Helm release
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: webrecords
spec:
chart:
spec:
# Use this chart from the repository
chart: webrecords
# 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 webrecords 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 webrecords-helm Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webrecords-helm
spec:
# Path inside repository to a directory containing Kustomization files
path: src/clusters/main/apps/webrecords/kustomize/webrecords-helm/kustomize
dependsOn:
# Deploy namespace first
- name: webrecords-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 webrecords-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 webrecords namespace
apiVersion: v1
kind: Namespace
metadata:
name: webrecords
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Create webrecords-namespace Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webrecords-namespace
spec:
# Path inside repository to a directory containing Kustomization files
path: src/clusters/main/apps/webrecords/kustomize/webrecords-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 webrecords-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 webrecords
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: webrecords-http
spec:
entryPoints:
# Use entrypoint for HTTPS traffic
- https
routes:
# Match traffic with the Host header
- match: HostRegexp(`webrecords\..*`)
kind: Rule
services:
# Route traffic to the webrecords service
- name: webrecords
# 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 webrecords-traefik Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webrecords-traefik
spec:
# Path inside repository to a directory containing Kustomization files
path: src/clusters/main/apps/webrecords/kustomize/webrecords-traefik/kustomize
dependsOn:
# Deploy Helm release first
- name: webrecords-helm
# This key always needs to be here for patching to work
patches: []
25 changes: 25 additions & 0 deletions src/clusters/main/apps/webrecords/webrecords.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Create webrecords Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webrecords
spec:
# Path inside repository to a directory containing Kustomization files
path: src/clusters/main/apps/webrecords/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: webrecords
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 @@ -14,6 +14,7 @@ resources:
- emitunes/emitunes.yaml
- podinfo/podinfo.yaml
- webfuse/webfuse.yaml
- webrecords/webrecords.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 webrecords Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Include the following resources
resources:
- webrecords-helm/webrecords-helm.yaml
- webrecords-namespace/webrecords-namespace.yaml
- webrecords-traefik/webrecords-traefik.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Overlay webrecords-helm Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../../../../../src/clusters/main/apps/webrecords/kustomize/webrecords-helm/kustomize
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Create webrecords-helm Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webrecords-helm
spec:
# Path inside repository to a directory containing Kustomization files
path: tests/clusters/ci/main/apps/webrecords/kustomize/webrecords-helm/kustomize
dependsOn:
# Deploy namespace first
- name: webrecords-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 webrecords-namespace Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../../../../../src/clusters/main/apps/webrecords/kustomize/webrecords-namespace/kustomize
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Create webrecords-namespace Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webrecords-namespace
spec:
# Path inside repository to a directory containing Kustomization files
path: tests/clusters/ci/main/apps/webrecords/kustomize/webrecords-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 webrecords-traefik Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../../../../../src/clusters/main/apps/webrecords/kustomize/webrecords-traefik/kustomize
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Create webrecords-traefik Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webrecords-traefik
spec:
# Path inside repository to a directory containing Kustomization files
path: tests/clusters/ci/main/apps/webrecords/kustomize/webrecords-traefik/kustomize
dependsOn:
# Deploy Helm release first
- name: webrecords-helm
# This key always needs to be here for patching to work
patches: []
25 changes: 25 additions & 0 deletions tests/clusters/ci/main/apps/webrecords/webrecords.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Create webrecords Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: webrecords
spec:
# Path inside repository to a directory containing Kustomization files
path: tests/clusters/ci/main/apps/webrecords/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: webrecords