apiVersion: apps/v1 kind: Deployment metadata: name: container-mom-operator namespace: container-mom-system spec: replicas: 1 selector: matchLabels: app: container-mom-operator template: metadata: labels: app: container-mom-operator spec: serviceAccountName: container-mom-operator containers: - name: manager image: quay.io/containermom/operator:latest imagePullPolicy: Always resources: limits: cpu: 500m memory: 512Mi requests: cpu: 100m memory: 128Mi env: # Forgejo integration - name: FORGEJO_URL value: "https://forgejo.container.mom" - name: FORGEJO_ORG value: "container-mom" # Use secret for token - name: FORGEJO_TOKEN valueFrom: secretKeyRef: name: forgejo-credentials key: token # ArgoCD integration - name: ARGOCD_NAMESPACE value: "argocd" # Add other environment variables as needed --- apiVersion: v1 kind: Secret metadata: name: forgejo-credentials namespace: container-mom-system type: Opaque data: # Replace with your base64-encoded Forgejo token # Generate with: echo -n "your-token" | base64 token: eW91ci10b2tlbg== --- # Example ArgoCD Application to watch the app-of-apps repository apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: container-mom-app-of-apps namespace: argocd spec: project: default source: repoURL: https://forgejo.container.mom/container-mom/container-mom-apps.git path: apps directory: recurse: true destination: server: https://kubernetes.default.svc namespace: argocd syncPolicy: automated: prune: true selfHeal: true