Skip to content

Commit

Permalink
Feature/Marketplace (#60)
Browse files Browse the repository at this point in the history
* Adding Marketplace deployment

* Fixing app path definition

* Testing https protocol for repoURL.

* Updating project repos

* Testing semver constraint for targetRevision

* Using helm repo for Marketplace application

* Fixing branch reference for values.yml

* Bump chart version

* Bumping marketplace helm chart version

* Allowing RWX for PVC for better rolling update support

* Adding image pull secrets reference

* Updating service port

* Bumping marketplace chart version. Updating service port

---------

Co-authored-by: Chase 李 <chase@emiya.io>
  • Loading branch information
clee231 and Chase 李 authored Nov 1, 2023
1 parent f50a304 commit eba0c7a
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
33 changes: 33 additions & 0 deletions kubernetes/argocd/stacks/common/marketplace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: marketplace
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: marketplace
server: 'https://kubernetes.default.svc'
sources:
- repoURL: 'https://acm.cs.uic.edu/helm'
targetRevision: 0.1.3
chart: 'marketplace'
path: 'helm'
helm:
valueFiles:
- $values/kubernetes/argocd/stacks/marketplace/values.yml
- path: kubernetes/argocd/stacks/marketplace
repoURL: 'git@github.com:acm-uic/IaC.git'
targetRevision: feature/marketplace
ref: values
directory:
recurse: true
include: '*.yml'
exclude: values.yml
project: sigweb
syncPolicy:
automated:
prune: true
selfHeal: true

21 changes: 21 additions & 0 deletions kubernetes/argocd/stacks/common/projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: sigweb
namespace: argocd
spec:
clusterResourceWhitelist:
- group: '*'
kind: '*'
destinations:
- namespace: '*'
server: '*'
sourceRepos:
- 'git@github.com:acm-uic/IaC.git'
- 'https://acm.cs.uic.edu/helm'
roles:
# A role which provides read-only access to all applications in the project
- name: read-only
description: Read-only privileges to sigweb

5 changes: 5 additions & 0 deletions kubernetes/argocd/stacks/marketplace/marketplace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: marketplace
6 changes: 6 additions & 0 deletions kubernetes/argocd/stacks/marketplace/values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
persistence:
accessModes:
- ReadWriteMany
imagePullSecrets:
- name: pull-creds

0 comments on commit eba0c7a

Please sign in to comment.