Skip to content

Commit bb2603d

Browse files
committed
feat: add catalog info, commitlint, pre-commit, initial format, readme docs, etc
1 parent 7b529e1 commit bb2603d

29 files changed

+279
-64
lines changed

.github/workflows/main.yml

+111-30
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,122 @@
1-
# This is a basic workflow to help you get started with Actions
2-
3-
name: CI
4-
5-
# Controls when the action will run.
1+
name: publish-charts
62
on:
7-
# Triggers the workflow on push or pull request events but only for the main branch
83
push:
9-
branches: [main]
10-
11-
# Allows you to run this workflow manually from the Actions tab
4+
branches:
5+
- main
6+
paths:
7+
- charts/**
8+
- '!**/*.md'
129
workflow_dispatch:
13-
14-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15-
jobs:
16-
release:
10+
jobs: # TODO: refactor plublish of charts
11+
publish-charts:
1712
runs-on: ubuntu-latest
13+
permissions:
14+
packages: write
15+
contents: read
1816
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
18+
19+
- name: Build dependencies Helm - backstage
20+
uses: WyriHaximus/github-action-helm3@v3
21+
with:
22+
exec: helm dependency build charts/backstage
23+
24+
- name: Chart | Push - backstage
25+
uses: appany/[email protected]
26+
with:
27+
name: backstage
28+
repository: pelotech/charts
29+
tag: 0.2.3
30+
registry: ghcr.io
31+
registry_username: ${{ github.actor }}
32+
registry_password: ${{ secrets.github_token }}
33+
34+
- name: Build dependencies Helm - cube-stack
35+
uses: WyriHaximus/github-action-helm3@v3
36+
with:
37+
exec: helm dependency build charts/cube-stack
38+
39+
- name: Chart | Push - cube-stack
40+
uses: appany/[email protected]
41+
with:
42+
name: cube-stack
43+
repository: pelotech/charts
44+
tag: 0.2.0
45+
registry: ghcr.io
46+
registry_username: ${{ github.actor }}
47+
registry_password: ${{ secrets.github_token }}
48+
49+
- name: Build dependencies Helm - cubejs
50+
uses: WyriHaximus/github-action-helm3@v3
2151
with:
22-
fetch-depth: 0
52+
exec: helm dependency build charts/cubejs
2353

24-
- name: Configure Git
25-
run: |
26-
git config user.name "$GITHUB_ACTOR"
27-
git config user.email "[email protected]"
54+
- name: Chart | Push - cubejs
55+
uses: appany/[email protected]
56+
with:
57+
name: cubejs
58+
repository: pelotech/charts
59+
tag: 0.2.0
60+
registry: ghcr.io
61+
registry_username: ${{ github.actor }}
62+
registry_password: ${{ secrets.github_token }}
63+
64+
- name: Build dependencies Helm - cuebestore
65+
uses: WyriHaximus/github-action-helm3@v3
66+
with:
67+
exec: helm dependency build charts/cubestore
2868

29-
- name: Install Helm
30-
uses: azure/setup-helm@v1
69+
- name: Chart | Push - cubestore
70+
uses: appany/helm[email protected]
3171
with:
32-
version: v3.4.0
72+
name: cubestore
73+
repository: pelotech/charts
74+
tag: 0.2.0
75+
registry: ghcr.io
76+
registry_username: ${{ github.actor }}
77+
registry_password: ${{ secrets.github_token }}
3378

34-
- name: Add Chart Repos
35-
run: |
36-
helm repo add bitnami https://charts.bitnami.com/bitnami
79+
- name: Build dependencies Helm - mutating-webhook
80+
uses: WyriHaximus/github-action-helm3@v3
81+
with:
82+
exec: helm dependency build charts/mutating-webhook
3783

38-
- name: Run chart-releaser
39-
uses: helm/[email protected]
40-
env:
41-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
84+
- name: Chart | Push - mutating-webhook
85+
uses: appany/[email protected]
86+
with:
87+
name: mutating-webhook
88+
repository: pelotech/charts
89+
tag: 0.1.1
90+
registry: ghcr.io
91+
registry_username: ${{ github.actor }}
92+
registry_password: ${{ secrets.github_token }}
93+
94+
- name: Build dependencies Helm - nodejs
95+
uses: WyriHaximus/github-action-helm3@v3
96+
with:
97+
exec: helm dependency build charts/nodejs
98+
99+
- name: Chart | Push - nodejs
100+
uses: appany/[email protected]
101+
with:
102+
name: nodejs
103+
repository: pelotech/charts
104+
tag: 0.2.1
105+
registry: ghcr.io
106+
registry_username: ${{ github.actor }}
107+
registry_password: ${{ secrets.github_token }}
108+
109+
- name: Build dependencies Helm - pachyderm
110+
uses: WyriHaximus/github-action-helm3@v3
111+
with:
112+
exec: helm dependency build charts/pachyderm
113+
114+
- name: Chart | Push - pachyderm
115+
uses: appany/[email protected]
116+
with:
117+
name: pachyderm
118+
repository: pelotech/charts
119+
tag: 0.2.1
120+
registry: ghcr.io
121+
registry_username: ${{ github.actor }}
122+
registry_password: ${{ secrets.github_token }}

.github/workflows/pre-commit.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: pre-commit
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
pre-commit:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: install pre-commit
16+
run: pip install pre-commit
17+
18+
- name: pre-commit
19+
run: pre-commit run --all-files --show-diff-on-failure

.gitignore

+36-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
1-
*.tgz
1+
# General files for the project
2+
pkg/*
3+
*.pyc
4+
bin/*
5+
.project
6+
/.bin
7+
/_test/secrets/*.json
8+
9+
# OSX leaves these everywhere on SMB shares
10+
._*
11+
12+
# OSX trash
213
.DS_Store
14+
15+
# Files generated by JetBrains IDEs, e.g. IntelliJ IDEA
16+
.idea/
17+
*.iml
18+
19+
# Vscode files
20+
.vscode
21+
22+
# Emacs save files
23+
*~
24+
\#*\#
25+
.\#*
26+
27+
# Vim-related files
28+
[._]*.s[a-w][a-z]
29+
[._]s[a-w][a-z]
30+
*.un~
31+
Session.vim
32+
.netrwhist
33+
34+
# Chart dependencies
35+
**/charts/*.tgz
36+
37+
.history

.pre-commit-config.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.5.0
4+
hooks:
5+
- id: check-merge-conflict
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- id: forbid-submodules
9+
- repo: https://github.com/adrienverge/yamllint
10+
rev: v1.35.1
11+
hooks:
12+
- id: yamllint
13+
args: [--strict, -c=.yamllint]
14+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
15+
rev: v9.11.0
16+
hooks:
17+
- id: commitlint
18+
stages: [commit-msg]
19+
additional_dependencies: ['@commitlint/config-conventional']
20+
#- repo: https://github.com/jnorwood/helm-docs
21+
# rev: v1.12.0
22+
# hooks:
23+
# - id: helm-docs

.yamllint

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
extends: relaxed
2+
3+
rules:
4+
line-length: disable
5+
commas: disable
6+
indentation: {indent-sequences: whatever}
7+
8+
ignore: |
9+
legacy/
10+
*.terraform/
11+
*templates/
12+
*charts/lab-netspec/

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ docs:
66
--rm \
77
--volume "$(PWD)/charts:/helm-docs" \
88
-u $(shell id -u) \
9-
jnorwood/helm-docs:latest
9+
jnorwood/helm-docs:latest

catalog-info.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: backstage.io/v1alpha1
2+
kind: Resource
3+
metadata:
4+
name: helm-charts
5+
description: Helm charts to publish for pelotech
6+
tags:
7+
- helm
8+
annotations:
9+
github.com/project-slug: pelotech/charts
10+
backstage.io/techdocs-ref: dir:.
11+
spec:
12+
type: infrastructure
13+
lifecycle: production
14+
owner: group:pelotech/leads

charts/backstage/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# backstage
22

3-
![Version: 0.2.2](https://img.shields.io/badge/Version-0.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.1-alpha.23](https://img.shields.io/badge/AppVersion-v0.1.1--alpha.23-informational?style=flat-square)
3+
![Version: 0.2.3](https://img.shields.io/badge/Version-0.2.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.1.1-alpha.23](https://img.shields.io/badge/AppVersion-v0.1.1--alpha.23-informational?style=flat-square)
44

55
A Helm chart for Backstage
66

77
## Maintainers
88

99
| Name | Email | Url |
1010
| ---- | ------ | --- |
11-
| Avi Zimmerman | [email protected] | |
11+
| Avi Zimmerman | <[email protected]> | |
1212

1313
## Source Code
1414

@@ -19,7 +19,7 @@ A Helm chart for Backstage
1919

2020
| Key | Type | Default | Description |
2121
|-----|------|---------|-------------|
22-
| appConfig | object | `{}` | Additional configurations to override the `app-config.yaml` in the backend. These configurations will be written to `app-config.local.yaml` in the `backend.appDirectory`. |
22+
| appConfig | object | `{}` | Additional configurations to override the `app-config.yaml` in the backend. These configurations will be written to `app-config.local.yaml` in the `backend.appDirectory`. |
2323
| backend.appDirectory | string | `"/usr/src/app"` | The working directory where the backend is served. |
2424
| backend.containerPort | int | `7000` | The port the backend is listening on insie the container. |
2525
| backend.enabled | bool | `true` | Whether to enable the backend deployment. |
@@ -49,4 +49,4 @@ A Helm chart for Backstage
4949
| nameOverride | string | `""` | Override the default name generated for resources. |
5050

5151
----------------------------------------------
52-
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
52+
Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)

charts/backstage/templates/backend-deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ spec:
6565
{{- if .Values.global.nodeSelector }}
6666
nodeSelector: {{- toYaml .Values.global.nodeSelector | nindent 8 }}
6767
{{- end }}
68-
{{- end }}
68+
{{- end }}

charts/backstage/templates/backend-service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
app: backstage
1212
component: backend
1313
type: ClusterIP
14-
{{- end }}
14+
{{- end }}

charts/backstage/templates/backstage-app-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ data:
3232
{{- if .Values.appConfig.auth.providers.gitlab.development.appOrigin }}
3333
APP_CONFIG_auth_providers_gitlab_development_appOrigin: {{ .Values.appConfig.auth.providers.gitlab.development.appOrigin | quote | quote }}
3434
{{- end }}
35-
{{- end }}
35+
{{- end }}

charts/backstage/templates/frontend-deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ spec:
5252
{{- if .Values.global.nodeSelector }}
5353
nodeSelector: {{- toYaml .Values.global.nodeSelector | nindent 8 }}
5454
{{- end }}
55-
{{- end }}
55+
{{- end }}

charts/backstage/templates/frontend-service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ spec:
1111
app: backstage
1212
component: frontend
1313
type: ClusterIP
14-
{{- end }}
14+
{{- end }}

charts/backstage/templates/ingress.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,3 @@ spec:
7272
servicePort: 80
7373
{{- end }}
7474
{{- end }}
75-

charts/backstage/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ ingress:
7474
# ingress.annotations -- Annotations to apply to the ingress.
7575
annotations: {}
7676

77-
# appConfig -- Additional configurations to override the `app-config.yaml` in the backend.
77+
# appConfig -- Additional configurations to override the `app-config.yaml` in the backend.
7878
# These configurations will be written to `app-config.local.yaml` in the `backend.appDirectory`.
79-
appConfig: {}
79+
appConfig: {}

charts/cube-stack/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Chart .tgz
2-
charts/
2+
charts/

charts/cube-stack/.helmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
.project
2121
.idea/
2222
*.tmproj
23-
.vscode/
23+
.vscode/

charts/cubejs/templates/ingress.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: {{ include "cubejs.ingress.apiVersion" . }}
33
kind: Ingress
44
metadata:
55
name: {{ include "cubejs.fullname" . }}
6-
labels:
6+
labels:
77
{{- include "cubejs.labels" . | nindent 4 }}
88
{{- if .Values.commonLabels }}
99
{{- toYaml .Values.commonLabels | nindent 4 }}
@@ -33,7 +33,7 @@ spec:
3333
backend:
3434
service:
3535
name: {{ include "cubejs.fullname" . }}
36-
port:
36+
port:
3737
name: http
3838
{{- end }}
3939
{{- if .Values.ingress.tls }}

charts/cubejs/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,4 +650,4 @@ ingress:
650650
##
651651
tls: false
652652

653-
useTLSSecret: true
653+
useTLSSecret: true

0 commit comments

Comments
 (0)