Skip to content

Commit

Permalink
feat: add kubefirst.konstruct.io annotation to argocd apps (#178)
Browse files Browse the repository at this point in the history
* feat: add kubefirst.konstruct.io annotation to argocd apps

* fix: use ingress in chart
* feat: add nginx as ingress class name

---------

Co-authored-by: Cristhian Fernández <[email protected]>
  • Loading branch information
muse-sisay and CristhianF7 authored Oct 23, 2024
1 parent 7a4e272 commit 040370d
Show file tree
Hide file tree
Showing 31 changed files with 140 additions and 65 deletions.
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ To make a new application available for installation, you'll need to:
- Create a new directory with your new application's name in your fork.
- Create a `components` folder, and inside, another folder with your application's name.
- In that latest folder, add, and organize your Argo CD manifest file(s) into it.
- Annotate your Argo CD application with the following annotations. The Kubefirst platform uses this information to surface installed application in the UI.

```yaml
annotations:
kubefirst.konstruct.io/application-name: <appName>
kubefirst.konstruct.io/source: catalog-templates
```
- Don't forget to look at the [Kubefirst Tokens](#kubefirst-tokens) section as you can dynamically add specific values to your manifests like domain or cluster names.
- In the root folder of your application create an "App of Apps" YAML file that will point to the component folder.
- Add a SVG file of the application's logo, named `<appName>.svg` under the [logos folder](https://github.com/kubefirst/gitops-catalog/tree/main/logos).
Expand Down
3 changes: 3 additions & 0 deletions argo-events/components/argo-events/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-argo-events
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: argo-events
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
3 changes: 3 additions & 0 deletions argo-rollouts/components/argo-rollouts/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-argo-rollouts
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: argo-rollouts
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
3 changes: 3 additions & 0 deletions cilium/components/cilium/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-cilium
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: cilium
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '20'
kubefirst.konstruct.io/application-name: cluster-autoscaler-civo
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: <PROJECT>
source:
Expand Down
3 changes: 3 additions & 0 deletions datadog-agent/components/datadog-agent/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-datadog
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: datadog-agent
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
22 changes: 19 additions & 3 deletions flappy-kray/components/flappy-kray/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-flappy-kray
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: '0'
kubefirst.konstruct.io/application-name: flappy-kray
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: flappy-kray
Expand All @@ -20,8 +22,22 @@ spec:
values: |
image:
repository: ghcr.io/konstructio/flappy-kray
ingress:
enabled: false
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
argocd.argoproj.io/sync-wave: '1'
hosts:
- host: flappy-kray.<DOMAIN_NAME>
paths:
- path: /
pathType: Prefix
tls:
- secretName: flappy-kray-tls
hosts:
- flappy-kray.<DOMAIN_NAME>
project: <PROJECT>
syncPolicy:
syncOptions:
Expand Down
26 changes: 0 additions & 26 deletions flappy-kray/components/flappy-kray/ingress.yaml

This file was deleted.

6 changes: 4 additions & 2 deletions gitlab/components/gitlab/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ kind: Application
metadata:
name: gitlab
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: '30'
kubefirst.konstruct.io/application-name: gitlab
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
name: <CLUSTER_DESTINATION>
Expand Down
22 changes: 22 additions & 0 deletions goldilocks/components/goldilocks/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,34 @@ metadata:
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '10'
kubefirst.konstruct.io/application-name: goldilocks
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: <PROJECT>
source:
repoURL: 'https://charts.fairwinds.com/stable'
targetRevision: 6.5.6
chart: goldilocks
values: |
dashboard:
ingress:
enabled: true
ingressClassName: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
argocd.argoproj.io/sync-wave: '1'
hosts:
- host: goldilocks.<DOMAIN_NAME>
paths:
- path: /
type: ImplementationSpecific
tls:
- secretName: goldilocks-tls
hosts:
- goldilocks.<DOMAIN_NAME>
destination:
name: <CLUSTER_DESTINATION>
namespace: goldilocks
Expand Down
26 changes: 0 additions & 26 deletions goldilocks/components/goldilocks/ingress.yaml

This file was deleted.

6 changes: 4 additions & 2 deletions grafana/components/grafana/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
argocd.argoproj.io/sync-wave: '20'
name: <CLUSTER_NAME>-grafana
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '20'
kubefirst.konstruct.io/application-name: grafana
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
3 changes: 3 additions & 0 deletions kafka/components/kafka/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-kafka
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: kafka
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
5 changes: 5 additions & 0 deletions kratix/components/kratix/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-kratix
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: kratix
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: <PROJECT>
source:
Expand Down
3 changes: 3 additions & 0 deletions kubedoom/components/kubedoom/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-kubedoom
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: kubedoom
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
3 changes: 3 additions & 0 deletions kubeinvaders/components/kubeinvaders/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-kubeinvaders
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: kubeinvaders
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-kubernetes-dashboard
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: kubernetes-dashboard
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: <PROJECT>
source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '10'
kubefirst.konstruct.io/application-name: kubescape-operator
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: <PROJECT>
source:
Expand Down
3 changes: 3 additions & 0 deletions kyverno/components/kyverno/kyverno.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-kyverno
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: kyverno
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
4 changes: 4 additions & 0 deletions metrics-server/components/metrics-server/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '10'
kubefirst.konstruct.io/application-name: metrics-server
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: <PROJECT>
source:
Expand Down
3 changes: 3 additions & 0 deletions mysql/components/mysql/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-mysql
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: mysql
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
6 changes: 4 additions & 2 deletions opencost/components/opencost/opencost.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
argocd.argoproj.io/sync-wave: '20'
name: <CLUSTER_NAME>-opencost
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '20'
kubefirst.konstruct.io/application-name: opencost
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
4 changes: 4 additions & 0 deletions polaris/components/polaris/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '10'
kubefirst.konstruct.io/application-name: polaris
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: <PROJECT>
source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
argocd.argoproj.io/sync-wave: '60'
name: <CLUSTER_NAME>-spinkube-operator
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '60'
kubefirst.konstruct.io/application-name: spinkube-operator
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
6 changes: 4 additions & 2 deletions stormforge-agent/components/stormforge-agent/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-stormforge-agent
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
annotations:
argocd.argoproj.io/sync-wave: '3'
kubefirst.konstruct.io/application-name: stormforge-agent
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: stormforge-system
Expand Down
3 changes: 3 additions & 0 deletions supabase/components/supabase/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-supabase
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: supabase
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
3 changes: 3 additions & 0 deletions testkube/components/testkube/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-testkube
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: testkube
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
Loading

0 comments on commit 040370d

Please sign in to comment.