Skip to content

Commit c215a34

Browse files
authored
Merge pull request #1 from foomo/sesamy
feat: add sesamy charts
2 parents 0d3bac6 + f0b3bb5 commit c215a34

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+3970
-154
lines changed

.github/workflows/charts.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/lint-test.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Lint and Test Charts
2+
3+
on:
4+
pull_request:
5+
branches: ['main']
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
lint-test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
21+
- uses: azure/setup-helm@v3.5
22+
with:
23+
version: v3.12.0
24+
25+
- name: Run Helm plugin install
26+
run: |
27+
helm plugin install https://github.com/KnechtionsCoding/helm-schema-gen.git
28+
29+
- name: Run Helm lint
30+
run: |
31+
make lint
32+
33+
- name: Run Helm docs
34+
run: |
35+
make docs
36+
if ! git diff --exit-code; then
37+
echo "Documentation not up to date. Please run `make docs` and commit changes!" >&2
38+
exit 1
39+
fi
40+
41+
- name: Run Helm schema
42+
run: |
43+
make schema
44+
if ! git diff --exit-code; then
45+
echo "Documentation not up to date. Please run `make schema` and commit changes!" >&2
46+
exit 1
47+
fi

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release Charts
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Configure Git
18+
run: |
19+
git config user.name "$GITHUB_ACTOR"
20+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
21+
22+
- uses: azure/setup-helm@v3.5
23+
with:
24+
version: v3.12.0
25+
26+
- name: Run chart-releaser
27+
uses: helm/chart-releaser-action@v1.5.0
28+
env:
29+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
30+
CR_SKIP_EXISTING: "true"
31+
with:
32+
charts_dir: charts
33+
config: cr.yaml

.gitignore

Lines changed: 6 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,6 @@
1-
.idea
2-
3-
# Created by https://www.toptal.com/developers/gitignore/api/intellij+all,visualstudiocode,helm
4-
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij+all,visualstudiocode,helm
5-
6-
### Helm ###
7-
# Chart dependencies
8-
**/charts/*.tgz
9-
10-
### Intellij+all ###
11-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
12-
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
13-
14-
# User-specific stuff
15-
.idea/**/workspace.xml
16-
.idea/**/tasks.xml
17-
.idea/**/usage.statistics.xml
18-
.idea/**/dictionaries
19-
.idea/**/shelf
20-
21-
# AWS User-specific
22-
.idea/**/aws.xml
23-
24-
# Generated files
25-
.idea/**/contentModel.xml
26-
27-
# Sensitive or high-churn files
28-
.idea/**/dataSources/
29-
.idea/**/dataSources.ids
30-
.idea/**/dataSources.local.xml
31-
.idea/**/sqlDataSources.xml
32-
.idea/**/dynamic.xml
33-
.idea/**/uiDesigner.xml
34-
.idea/**/dbnavigator.xml
35-
36-
# Gradle
37-
.idea/**/gradle.xml
38-
.idea/**/libraries
39-
40-
# Gradle and Maven with auto-import
41-
# When using Gradle or Maven with auto-import, you should exclude module files,
42-
# since they will be recreated, and may cause churn. Uncomment if using
43-
# auto-import.
44-
# .idea/artifacts
45-
# .idea/compiler.xml
46-
# .idea/jarRepositories.xml
47-
# .idea/modules.xml
48-
# .idea/*.iml
49-
# .idea/modules
50-
# *.iml
51-
# *.ipr
52-
53-
# CMake
54-
cmake-build-*/
55-
56-
# Mongo Explorer plugin
57-
.idea/**/mongoSettings.xml
58-
59-
# File-based project format
60-
*.iws
61-
62-
# IntelliJ
63-
out/
64-
65-
# mpeltonen/sbt-idea plugin
66-
.idea_modules/
67-
68-
# JIRA plugin
69-
atlassian-ide-plugin.xml
70-
71-
# Cursive Clojure plugin
72-
.idea/replstate.xml
73-
74-
# SonarLint plugin
75-
.idea/sonarlint/
76-
77-
# Crashlytics plugin (for Android Studio and IntelliJ)
78-
com_crashlytics_export_strings.xml
79-
crashlytics.properties
80-
crashlytics-build.properties
81-
fabric.properties
82-
83-
# Editor-based Rest Client
84-
.idea/httpRequests
85-
86-
# Android studio 3.1+ serialized cache file
87-
.idea/caches/build_file_checksums.ser
88-
89-
### Intellij+all Patch ###
90-
# Ignore everything but code style settings and run configurations
91-
# that are supposed to be shared within teams.
92-
93-
.idea/*
94-
95-
!.idea/codeStyles
96-
!.idea/runConfigurations
97-
98-
### VisualStudioCode ###
99-
.vscode/*
100-
!.vscode/settings.json
101-
!.vscode/tasks.json
102-
!.vscode/launch.json
103-
!.vscode/extensions.json
104-
!.vscode/*.code-snippets
105-
106-
# Local History for Visual Studio Code
107-
.history/
108-
109-
# Built Visual Studio Code Extensions
110-
*.vsix
111-
112-
### VisualStudioCode Patch ###
113-
# Ignore all local history of files
114-
.history
115-
.ionide
116-
117-
# Support for Project snippet scope
118-
119-
# End of https://www.toptal.com/developers/gitignore/api/intellij+all,visualstudiocode,helm
1+
.*
2+
*.tgz
3+
!.github/
4+
!.gitignore
5+
!**/.gitkeep
6+
!**/.helmignore

Makefile

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,68 @@
1-
.phony: helm.index
2-
helm.index:
3-
cd charts && helm repo index .ma
1+
-include .makerc
2+
.DEFAULT_GOAL:=help
3+
4+
# --- Targets -----------------------------------------------------------------
5+
6+
.PHONY: check
7+
## Lint, Schema & docs
8+
check: lint schema docs
9+
@echo "done"
10+
11+
.PHONY: lint
12+
## Lint Helm charts
13+
## https://github.com/helm/chart-testing
14+
lint:
15+
@for dir in ./charts/* ; do \
16+
helm lint $${dir} ;\
17+
done
18+
19+
.PHONY: docs
20+
## Generate README
21+
## https://github.com/norwoodj/helm-docs
22+
docs:
23+
@docker run --rm --volume "$$(pwd):/helm-docs" jnorwood/helm-docs:v1.12.0 --template-files ./README.md.gotmpl
24+
25+
.PHONY: schema
26+
## Generate values JSON schema
27+
## https://github.com/knechtionscoding/helm-schema-gen
28+
schema: PWD=$(pwd)
29+
schema:
30+
@for dir in ./charts/* ; do \
31+
helm schema-gen $${dir}/values.yaml > $${dir}/values.schema.json ;\
32+
done
33+
34+
35+
## === Utils ===
36+
37+
.PHONY: help
38+
## Show help text
39+
help:
40+
@awk '{ \
41+
if ($$0 ~ /^.PHONY: [a-zA-Z\-\_0-9]+$$/) { \
42+
helpCommand = substr($$0, index($$0, ":") + 2); \
43+
if (helpMessage) { \
44+
printf "\033[36m%-23s\033[0m %s\n", \
45+
helpCommand, helpMessage; \
46+
helpMessage = ""; \
47+
} \
48+
} else if ($$0 ~ /^[a-zA-Z\-\_0-9.]+:/) { \
49+
helpCommand = substr($$0, 0, index($$0, ":")); \
50+
if (helpMessage) { \
51+
printf "\033[36m%-23s\033[0m %s\n", \
52+
helpCommand, helpMessage"\n"; \
53+
helpMessage = ""; \
54+
} \
55+
} else if ($$0 ~ /^##/) { \
56+
if (helpMessage) { \
57+
helpMessage = helpMessage"\n "substr($$0, 3); \
58+
} else { \
59+
helpMessage = substr($$0, 3); \
60+
} \
61+
} else { \
62+
if (helpMessage) { \
63+
print "\n "helpMessage"\n" \
64+
} \
65+
helpMessage = ""; \
66+
} \
67+
}' \
68+
$(MAKEFILE_LIST)

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
1-
# Helm
1+
# Foomo Helm Charts
2+
3+
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/foomo)](https://artifacthub.io/packages/search?repo=foomo)
4+
5+
## Usage
6+
7+
[Helm](https://helm.sh) must be installed to use the charts.
8+
Please refer to Helm's [documentation](https://helm.sh/docs/) to get started.
9+
10+
Once Helm is set up properly, add the repo as follows:
11+
12+
```console
13+
helm repo add foomo https://foomo.github.io/helm-charts
14+
```
15+
16+
You can then run `helm search repo foomo` to see the charts.
17+
18+
<!-- Keep full URL links to repo files because this README syncs from main to gh-pages. -->
19+
Chart documentation is available in [foomo directory](https://github.com/foomo/helm-charts/blob/main/charts/foomo/README.md).

charts/csp-reporter/Chart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apiVersion: v2
22
name: csp-reporter
33
description: Content Security Policy Reporter
4+
icon: https://avatars.githubusercontent.com/u/889755?s=200&v=4
45

56
# A chart can be either an 'application' or a 'library' chart.
67
#

charts/csp-reporter/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# csp-reporter
2+
3+
![Version: 2.1.0](https://img.shields.io/badge/Version-2.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.0](https://img.shields.io/badge/AppVersion-1.3.0-informational?style=flat-square)
4+
5+
Content Security Policy Reporter
6+
7+
## Values
8+
9+
| Key | Type | Default | Description |
10+
|-----|------|---------|-------------|
11+
| affinity | object | `{}` | |
12+
| autoscaling.enabled | bool | `false` | |
13+
| autoscaling.maxReplicas | int | `100` | |
14+
| autoscaling.minReplicas | int | `1` | |
15+
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
16+
| fullnameOverride | string | `""` | |
17+
| image.pullPolicy | string | `"IfNotPresent"` | |
18+
| image.repository | string | `"foomo/csp-reporter"` | |
19+
| image.tag | string | `"1.3.0"` | |
20+
| imagePullSecrets | list | `[]` | |
21+
| ingress.annotations | object | `{}` | |
22+
| ingress.className | string | `""` | |
23+
| ingress.enabled | bool | `false` | |
24+
| ingress.hosts[0].host | string | `"chart-example.local"` | |
25+
| ingress.hosts[0].paths[0].path | string | `"/"` | |
26+
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
27+
| ingress.tls | list | `[]` | |
28+
| nameOverride | string | `""` | |
29+
| nodeSelector | object | `{}` | |
30+
| podAnnotations | object | `{}` | |
31+
| podLabels | object | `{}` | |
32+
| podSecurityContext | object | `{}` | |
33+
| replicaCount | int | `1` | |
34+
| resources | object | `{}` | |
35+
| securityContext | object | `{}` | |
36+
| service.port | int | `80` | |
37+
| service.type | string | `"ClusterIP"` | |
38+
| serviceAccount.annotations | object | `{}` | |
39+
| serviceAccount.create | bool | `false` | |
40+
| serviceAccount.name | string | `""` | |
41+
| tolerations | list | `[]` | |
42+
43+
----------------------------------------------
44+
Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)

charts/csp-reporter/README.md.gotmpl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{ template "chart.header" . }}
2+
3+
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}
4+
5+
{{ template "chart.description" . }}
6+
7+
{{ template "chart.sourcesSection" . }}
8+
9+
{{ template "chart.requirementsSection" . }}

0 commit comments

Comments
 (0)