6 Commits

3 changed files with 35 additions and 6 deletions

View File

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

View File

@ -0,0 +1,14 @@
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

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