Skip to content

Commit

Permalink
adding devops catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
seemywingz committed Dec 12, 2024
1 parent b64c3a8 commit 4a1df52
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 1 deletion.
26 changes: 26 additions & 0 deletions catalogs/devops/grafana/servicedeployment.yaml.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: deployments.plural.sh/v1alpha1
kind: ServiceDeployment
metadata:
name: grafana-{{ context.cluster }}
namespace: apps
spec:
namespace: grafana
git:
folder: helm/grafana
ref: main
repositoryRef:
kind: GitRepository
name: infra
namespace: infra
helm:
version: "8.6.x"
chart: grafana
url: https://grafana.github.io/helm-charts
valuesFiles:
- {{ context.cluster }}.yaml.liquid
configuration:
cluster: {{ context.cluster }}
clusterRef:
kind: Cluster
name: mgmt
namespace: infra
File renamed without changes.
14 changes: 13 additions & 1 deletion setup/catalogs/catalogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,16 @@ spec:
icon: https://docs.plural.sh/favicon-128.png
author: Plural
description: |
Sets up OSS security infrastructure using Plural
Sets up OSS security infrastructure using Plural
---
apiVersion: deployments.plural.sh/v1alpha1
kind: Catalog
metadata:
name: devops
spec:
name: devops
category: devops
icon: https://docs.plural.sh/favicon-128.png
author: Plural
description: |
Sets up OSS devops infrastructure using Plural
37 changes: 37 additions & 0 deletions setup/catalogs/devops/grafana.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: deployments.plural.sh/v1alpha1
kind: PrAutomation
metadata:
name: grafana
spec:
name: grafana
icon: https://cdn.icon-icons.com/icons2/2699/PNG/512/grafana_logo_icon_171048.png
documentation: |
Sets up Trivy Operator security toolkit
creates:
git:
ref: sebastian/prod-2981-set-up-catalog-pipeline # TODO set to main
folder: catalogs/devops/grafana
templates:
- source: README.md
destination: documentation/grafana/README.md
external: true
- source: values.yaml
destination: "bootstrap/apps/grafana/{{ context.cluster }}/values.yaml"
external: true
- source: servicedeployment.yaml.liquid
destination: "bootstrap/apps/grafana/{{ context.cluster }}/servicedeployment.yaml"
external: true
repositoryRef:
name: scaffolds
catalogRef:
name: devops
scmConnectionRef:
name: plural # you'll need to add this ScmConnection manually before this is functional
title: "Grafana setup ({{ context.cluster }})"
message: |
Sets up Grafana on {{ context.cluster }} cluster.
identifier: pluralsh/plrl-dev-aws # FIXME
configuration:
- name: cluster
type: STRING
documentation: the cluster you want to deploy to

0 comments on commit 4a1df52

Please sign in to comment.