Skip to content

Commit

Permalink
feat(fizzbuzz): add fizzbuzz and fizzbuzz crds chart (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
JossWhittle authored Mar 24, 2024
1 parent 2e29c60 commit d5a37ef
Show file tree
Hide file tree
Showing 10 changed files with 181 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/fizzbuzz-chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Fizzbuzz Chart

on:
pull_request:
paths:
- 'charts/fizzbuzz/**'
push:
branches:
- 'maintenance/fizzbuzz-chart/[0-9]+.x.x'
- 'maintenance/fizzbuzz-chart/[0-9]+.[0-9]+.x'
- 'release/fizzbuzz-chart'
paths:
- 'charts/fizzbuzz/**'

permissions:
contents: write
pull-requests: read
actions: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
fizzbuzz-chart:
uses: SwanseaUniversityMedical/workflows/.github/workflows/[email protected]
with:
job-name: fizzbuzz-chart
registry: ${{ vars.HARBOR_REGISTRY }}
registry-user: ${{ vars.HARBOR_USER }}
registry-project: ${{ vars.HARBOR_PROJECT }}
registry-repo: fizzbuzz
release-tag-format: 'fizzbuzz-chart-${version}'
cosign-public-key: ${{ vars.COSIGN_PUBLIC_KEY }}
slack-channel: ${{ vars.SLACK_CHANNEL }}
chart: charts/fizzbuzz
test-command: |
helm template $CHART --debug
secrets:
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }}
cosign-password: ${{ secrets.COSIGN_PASSWORD }}
registry-token: ${{ secrets.HARBOR_TOKEN }}
slack-token: ${{ secrets.SLACK_TOKEN }}
44 changes: 44 additions & 0 deletions .github/workflows/fizzbuzz-crds-chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Fizzbuzz CRDs Chart

on:
pull_request:
paths:
- 'charts/fizzbuzz-crds/**'
push:
branches:
- 'maintenance/fizzbuzz-crds-chart/[0-9]+.x.x'
- 'maintenance/fizzbuzz-crds-chart/[0-9]+.[0-9]+.x'
- 'release/fizzbuzz-crds-chart'
paths:
- 'charts/fizzbuzz-crds/**'

permissions:
contents: write
pull-requests: read
actions: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
fizzbuzz-crds-chart:
uses: SwanseaUniversityMedical/workflows/.github/workflows/[email protected]
with:
job-name: fizzbuzz-crds-chart
registry: ${{ vars.HARBOR_REGISTRY }}
registry-user: ${{ vars.HARBOR_USER }}
registry-project: ${{ vars.HARBOR_PROJECT }}
registry-repo: fizzbuzz-crds
release-tag-format: 'fizzbuzz-crds-chart-${version}'
cosign-public-key: ${{ vars.COSIGN_PUBLIC_KEY }}
slack-channel: ${{ vars.SLACK_CHANNEL }}
chart: charts/fizzbuzz-crds
test-command: |
helm template $CHART --debug
secrets:
cosign-private-key: ${{ secrets.COSIGN_PRIVATE_KEY }}
cosign-password: ${{ secrets.COSIGN_PASSWORD }}
registry-token: ${{ secrets.HARBOR_TOKEN }}
slack-token: ${{ secrets.SLACK_TOKEN }}
24 changes: 24 additions & 0 deletions charts/fizzbuzz-crds/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line..
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions charts/fizzbuzz-crds/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
appVersion: 0.0.0
description: Fizzbuzz CRDs.
name: fizzbuzz-crds
type: application
version: 0.0.0
26 changes: 26 additions & 0 deletions charts/fizzbuzz-crds/crds/fizzbuzz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
name: fizzbuzzs.fizzbuzz.ukserp.ac.uk
spec:
group: fizzbuzz.ukserp.ac.uk
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
n:
type: integer
description: Fizzbuzz input N.
scope: Namespaced
names:
plural: fizzbuzzs
singular: fizzbuzz
kind: Fizzbuzz
Empty file.
24 changes: 24 additions & 0 deletions charts/fizzbuzz/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line..
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions charts/fizzbuzz/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
appVersion: 1.2.3
description: Fizzbuzz.
name: fizzbuzz
type: application
version: 0.0.0
6 changes: 6 additions & 0 deletions charts/fizzbuzz/templates/extra-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{- range $manifest := .Values.extraManifests }}
---
{{- if typeIs "string" $manifest }}
{{ tpl $manifest $ }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/fizzbuzz/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extraManifests: []

0 comments on commit d5a37ef

Please sign in to comment.