1 Commits

Author SHA1 Message Date
ce5746b6dd Added Flux receiver to kustomization 2025-07-10 23:15:18 +02:00
5 changed files with 9 additions and 36 deletions

View File

@ -81,7 +81,7 @@ spec:
spec:
containers:
- name: api
image: marcin00.azurecr.io/user-microservice:33fc7f66f964b58ffe8d62d064b3cf21109b1c6f
image: marcin00.azurecr.io/user-microservice:d855e795e2706e235b397a73ca5f0e068ee8eec4
ports:
- containerPort: 80
env:

View File

@ -1,17 +1,14 @@
apiVersion: notification.toolkit.fluxcd.io/v1
apiVersion: notification.toolkit.fluxcd.io/v1beta2
kind: Receiver
metadata:
name: gitea-receiver
namespace: flux-system
spec:
type: github
type: git
events:
- "ping"
- "push"
- push
resources:
- kind: GitRepository
name: user-microservice-repo
secretRef:
name: webhook-token
resources:
- apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
name: user-microservice-repo
namespace: flux-system

View File

@ -11,3 +11,5 @@ spec:
kind: GitRepository
name: user-microservice-repo
targetNamespace: user-microservice
resources:
- flux-receiver.yaml

View File

@ -1,14 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: receiver
namespace: flux-system
spec:
type: LoadBalancer
selector:
app: notification-controller
ports:
- name: http
port: 80
protocol: TCP
targetPort: 9292

View File

@ -1,12 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-all-to-flux
namespace: flux-system
spec:
podSelector: {}
ingress:
- {}
policyTypes:
- Ingress