Skip to content
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

feat: add kubefirst.konstruct.io annotation to argocd apps #178

Merged
merged 11 commits into from
Oct 23, 2024
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
21 changes: 18 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,21 @@ spec:
values: |
image:
repository: ghcr.io/konstructio/flappy-kray

ingress:
enabled: false
enabled: true
fharper marked this conversation as resolved.
Show resolved Hide resolved
annotations: {}
muse-sisay marked this conversation as resolved.
Show resolved Hide resolved
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
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
24 changes: 24 additions & 0 deletions goldilocks/components/goldilocks/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,36 @@ 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: |
fharper marked this conversation as resolved.
Show resolved Hide resolved
dashboard:
ingress:
enabled: true

# dashboard.ingress.ingressClassName -- From Kubernetes 1.18+ this field is supported in case your ingress controller supports it. When set, you do not need to add the ingress class as annotation.
ingressClassName:
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
type: ImplementationSpecific

tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
destination:
name: <CLUSTER_DESTINATION>
namespace: goldilocks
Expand Down
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
8 changes: 5 additions & 3 deletions opencost/components/opencost/opencost.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
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
- resources-finalizer.argocd.argoproj.io.io
muse-sisay marked this conversation as resolved.
Show resolved Hide resolved
spec:
destination:
namespace: opencost
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
3 changes: 3 additions & 0 deletions tracetest/components/tracetest/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-tracetest
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: tracetest
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
2 changes: 2 additions & 0 deletions typesense/components/typesense/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: '20'
kubefirst.konstruct.io/application-name: typesense
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: '10'
kubefirst.konstruct.io/application-name: vertical-pod-autoscaler
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: <PROJECT>
source:
Expand Down
3 changes: 3 additions & 0 deletions yourls/components/yourls/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Application
metadata:
name: <CLUSTER_NAME>-yourls
namespace: argocd
annotations:
kubefirst.konstruct.io/application-name: yourls
kubefirst.konstruct.io/source: catalog-templates
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
Expand Down
Loading