build: Move to a separate project

This commit is contained in:
Nikolai Rodionov 2023-05-21 17:56:46 +02:00
parent 5036bf28fb
commit 042f905bbb
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10
2 changed files with 35 additions and 1 deletions

View File

@ -11,7 +11,7 @@ spec:
destination:
namespace: badhouseplants-$ARGO_APP_BRANCH
server: https://kubernetes.default.svc
project: default
project: badhouseplants
source:
chart: badhouseplants-net
targetRevision: $ARGO_APP_CHART_VERSION

34
kube/project.yaml Normal file
View File

@ -0,0 +1,34 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: badhouseplants
namespace: argo-system
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
description: BadHouseplants Blog
sourceRepos:
- '*'
destinations:
- namespace: badhouseplants-*
server: https://kubernetes.default.svc
name: in-cluster
# Deny all cluster-scoped resources from being created, except for Namespace
clusterResourceWhitelist:
- group: ''
kind: Namespace
# Allow all namespaced-scoped resources to be created, except for ResourceQuota, LimitRange, NetworkPolicy
namespaceResourceBlacklist:
- group: ''
kind: ResourceQuota
- group: ''
kind: LimitRange
- group: ''
kind: NetworkPolicy
# Enables namespace orphaned resource monitoring.
orphanedResources:
warn: false