Skip to content

Wip #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion csdp/base/app-proxy/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Kustomization
images:
- name: quay.io/codefresh/cap-app-proxy
newName: quay.io/codefresh/cap-app-proxy
newTag: 1.1402.0
newTag: 1.1403.2-restrict-incluster-deploy-ba95bab
resources:
- app-proxy.deploy.yaml
- app-proxy.svc.yaml
Expand Down
2 changes: 1 addition & 1 deletion csdp/base/argo-cd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ images:
- name: quay.io/codefresh/argocd
newTag: v2.3.4-cap-CR-12110-helm-resources-yaml
- name: quay.io/codefresh/applicationset
newTag: v0.4.2
newTag: test-incluster-block

configMapGenerator:
- behavior: merge
Expand Down
5 changes: 4 additions & 1 deletion csdp/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ./project.yaml

generatorOptions:
disableNameSuffixHash: true

configMapGenerator:
- name: codefresh-cm
behavior: create
literals:
- version=0.0.391
- version=0.0.392
22 changes: 22 additions & 0 deletions csdp/base/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
annotations:
argocd.argoproj.io/sync-options: PruneLast=true
argocd.argoproj.io/sync-wave: "-2"
creationTimestamp: null
name: csdp
namespace: default # replace
spec:
clusterResourceWhitelist:
- group: "*"
kind: "*"
description: csdp project
destinations:
- namespace: "*"
server: "*"
namespaceResourceWhitelist:
- group: "*"
kind: "*"
sourceRepos:
- "*"
24 changes: 0 additions & 24 deletions csdp/hybrid/appset.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
annotations:
argocd.argoproj.io/sync-options: PruneLast=true
argocd.argoproj.io/sync-wave: "-2"
creationTimestamp: null
name: csdp
namespace: default # replace
spec:
clusterResourceWhitelist:
- group: "*"
kind: "*"
description: csdp project
destinations:
- namespace: "*"
server: "*"
namespaceResourceWhitelist:
- group: "*"
kind: "*"
sourceRepos:
- "*"

---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
annotations:
Expand Down
24 changes: 0 additions & 24 deletions csdp/managed/appset.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
annotations:
argocd.argoproj.io/sync-options: PruneLast=true
argocd.argoproj.io/sync-wave: "-2"
creationTimestamp: null
name: csdp
namespace: default # replace
spec:
clusterResourceWhitelist:
- group: "*"
kind: "*"
description: csdp project
destinations:
- namespace: "*"
server: "*"
namespaceResourceWhitelist:
- group: "*"
kind: "*"
sourceRepos:
- "*"

---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
annotations:
Expand Down
16 changes: 16 additions & 0 deletions csdp/managed/argo-cd/allowed-apps-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
data:
application.allowedDeliverToIncluster: |
- csdp-bootstrap
- csdp-argo-cd
- csdp-app-proxy
- csdp-argo-workflows
- csdp-sealed-secrets
- csdp-argo-events
- csdp-events-reporter
- csdp-workflow-reporter
- isc
- in-cluster
3 changes: 3 additions & 0 deletions csdp/managed/argo-cd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ kind: Kustomization
namespace: argocd
resources:
- ../../base/argo-cd

patchesStrategicMerge:
- ./allowed-apps-patch.yaml
18 changes: 18 additions & 0 deletions csdp/managed/in-cluster-project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: git-sources
namespace: default # replace
spec:
description: All of the git-sources will be in this project, destination is in-cluster and only applications resources may be deployed
clusterResourceWhitelist:
- group: "argoproj.io"
kind: "Application"
namespaceResourceWhitelist:
- group: "argoproj.io"
kind: "Application"
destinations:
- namespace: "*"
server: "https://kubernetes.default.svc"
sourceRepos:
- "*"
1 change: 1 addition & 0 deletions csdp/managed/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Kustomization
resources:
- ../base
- ./appset.yaml
- ./in-cluster-project.yaml

patches:
- target:
Expand Down
Loading