From 0d35eaec4c377b8d0b9e3e40511f225debf4560c Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Sun, 24 May 2026 11:31:32 -0400 Subject: [PATCH] initial commit --- application.yaml | 14 ++++++++++++++ gitrepository.yaml | 13 +++++++++++++ kustomization.yaml | 9 +++++++++ namespace.yaml | 6 ++++++ receiver.yaml | 16 ++++++++++++++++ 5 files changed, 58 insertions(+) create mode 100644 application.yaml create mode 100644 gitrepository.yaml create mode 100644 kustomization.yaml create mode 100644 namespace.yaml create mode 100644 receiver.yaml diff --git a/application.yaml b/application.yaml new file mode 100644 index 0000000..49a79e0 --- /dev/null +++ b/application.yaml @@ -0,0 +1,14 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: xmrig + namespace: xmrig +spec: + interval: 1h # reconciliation interval + timeout: 15m # if not set, this defaults to interval duration, which is 1h + prune: true # remove any elements later removed from the above path + suspend: false # suspend reconciliation of this kustomization + targetNamespace: xmrig + sourceRef: + kind: GitRepository + name: xmrig \ No newline at end of file diff --git a/gitrepository.yaml b/gitrepository.yaml new file mode 100644 index 0000000..9c35f93 --- /dev/null +++ b/gitrepository.yaml @@ -0,0 +1,13 @@ +apiVersion: source.toolkit.fluxcd.io/v1 +kind: GitRepository +metadata: + name: xmrig + namespace: xmrig +spec: + interval: 15m + provider: github + url: https://github.com/cpfarhood/xmrig + ref: + branch: main + secretRef: + name: github-app-auth \ No newline at end of file diff --git a/kustomization.yaml b/kustomization.yaml new file mode 100644 index 0000000..372f154 --- /dev/null +++ b/kustomization.yaml @@ -0,0 +1,9 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml +# - gitrepository.yaml +# - sealedsecrets.yaml +# - configmap.yaml +# - receiver.yaml +# - application.yaml diff --git a/namespace.yaml b/namespace.yaml new file mode 100644 index 0000000..77addbe --- /dev/null +++ b/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: xmrig + annotations: + policy.cilium.io/proxy-visibility: , diff --git a/receiver.yaml b/receiver.yaml new file mode 100644 index 0000000..97ba8f0 --- /dev/null +++ b/receiver.yaml @@ -0,0 +1,16 @@ +apiVersion: notification.toolkit.fluxcd.io/v1 +kind: Receiver +metadata: + name: xmrig + namespace: xmrig +spec: + type: github + events: + - "ping" + - "push" + secretRef: + name: webhook-token + resources: + - kind: GitRepository + name: xmrig + namespace: xmrig \ No newline at end of file