chore: update flux
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m32s

This commit is contained in:
root
2026-01-25 17:16:32 +08:00
parent 0b9e58896f
commit 4154c807b1
6 changed files with 10267 additions and 0 deletions

12
clusters/app/flux-deploy.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
USER_NAME=Zpekii
BRANCH=main
URL=https://git.0orz.top/Zpekii/go-example.git
flux bootstrap git \
--url=$URL \
--branch=$BRANCH \
--username=$USER_NAME \
--token-auth=true \
--path=./

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,27 @@
# This manifest was generated by flux. DO NOT EDIT.
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: flux-system
namespace: flux-system
spec:
interval: 1m0s
ref:
branch: main
secretRef:
name: flux-system
url: https://git.0orz.top/Zpekii/go-example.git
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: flux-system
namespace: flux-system
spec:
interval: 10m0s
path: ./
prune: true
sourceRef:
kind: GitRepository
name: flux-system

View File

@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- gotk-components.yaml
- gotk-sync.yaml

View File

@@ -0,0 +1,17 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: go-example
namespace: flux-system
spec:
interval: 30m0s
path: ./kustomize
prune: true
retryInterval: 2m0s
sourceRef:
kind: GitRepository
name: go-example
targetNamespace: helloapp
timeout: 3m0s
wait: true

View File

@@ -0,0 +1,11 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: go-example
namespace: flux-system
spec:
interval: 3m0s
ref:
branch: main
url: https://git.0orz.top/Zpekii/go-example.git