Skip to content

Commit 8b755ad

Browse files
Merge pull request #1 from peak-scale/dev
feat: initial rough layout
2 parents 87f6f40 + ab21c9a commit 8b755ad

File tree

158 files changed

+15474
-2
lines changed

Some content is hidden

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

158 files changed

+15474
-2
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
2+
# Ignore build and test binaries.
3+
bin/

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve the addon
4+
title: ''
5+
labels: blocked-needs-validation, bug
6+
assignees: ''
7+
8+
---
9+
10+
# Bug description
11+
12+
A clear and concise description of what the bug is.
13+
14+
# How to reproduce
15+
16+
Steps to reproduce the behavior:
17+
18+
1. Relevant Translator manifests
19+
2. Relevant ArgoAddon manifests
20+
21+
# Expected behavior
22+
23+
A clear and concise description of what you expected to happen.
24+
25+
# Logs
26+
27+
If applicable, please provide logs of `capsule-argo-addon`.
28+
29+
# Additional context
30+
31+
- Addon version:
32+
- Argo version:
33+
- Kubernetes version:

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Chat on Slack
4+
url: https://kubernetes.slack.com/archives/C03GETTJQRL
5+
about: Maybe chatting with the community can help
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Feature request
3+
about: Suggest a new feature for the addon
4+
title: ''
5+
labels: blocked-needs-validation, feature
6+
assignees: ''
7+
8+
---
9+
10+
# Describe the feature
11+
12+
A clear and concise description of the feature.
13+
14+
# Expected behavior
15+
A clear and concise description of what you expect to happen.

.github/actions/exists/action.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Checks if an input is defined
2+
3+
description: Checks if an input is defined and outputs 'true' or 'false'.
4+
5+
inputs:
6+
value:
7+
description: value to test
8+
required: true
9+
10+
outputs:
11+
result:
12+
description: outputs 'true' or 'false' if input value is defined or not
13+
value: ${{ steps.check.outputs.result }}
14+
15+
runs:
16+
using: composite
17+
steps:
18+
- shell: bash
19+
id: check
20+
run: |
21+
echo "result=${{ inputs.value != '' }}" >> $GITHUB_OUTPUT

.github/configs/ct.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Reference: https://github.com/helm/chart-testing/blob/master/doc/ct_lint-and-install.md
2+
##
3+
remote: origin
4+
target-branch: main
5+
chart-dirs:
6+
- charts/
7+
#chart-repos:
8+
# - capsule=oci://ghcr.io/projectcapsule/charts
9+
validate-chart-schema: false
10+
validate-maintainers: false
11+
validate-yaml: true
12+
exclude-deprecated: true
13+
check-version-increment: false

.github/configs/lintconf.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
rules:
3+
braces:
4+
min-spaces-inside: 0
5+
max-spaces-inside: 0
6+
min-spaces-inside-empty: -1
7+
max-spaces-inside-empty: -1
8+
brackets:
9+
min-spaces-inside: 0
10+
max-spaces-inside: 0
11+
min-spaces-inside-empty: -1
12+
max-spaces-inside-empty: -1
13+
colons:
14+
max-spaces-before: 0
15+
max-spaces-after: 1
16+
commas:
17+
max-spaces-before: 0
18+
min-spaces-after: 1
19+
max-spaces-after: 1
20+
comments:
21+
require-starting-space: true
22+
min-spaces-from-content: 1
23+
document-end: disable
24+
document-start: disable # No --- to start a file
25+
empty-lines:
26+
max: 2
27+
max-start: 0
28+
max-end: 0
29+
hyphens:
30+
max-spaces-after: 1
31+
indentation:
32+
spaces: consistent
33+
indent-sequences: whatever # - list indentation will handle both indentation and without
34+
check-multi-line-strings: false
35+
key-duplicates: enable
36+
line-length: disable # Lines can be any length
37+
new-line-at-end-of-file: enable
38+
new-lines:
39+
type: unix
40+
trailing-spaces: enable
41+
truthy:
42+
level: warning
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check actions
2+
permissions: {}
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
pull_request:
9+
branches: [ "master", "main" ]
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
- name: Ensure SHA pinned actions
18+
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@c3a2b64f69b7a1542a68f44d9edbd9ec3fc1455e # v3.0.20
19+
with:
20+
# slsa-github-generator requires using a semver tag for reusable workflows.
21+
# See: https://github.com/slsa-framework/slsa-github-generator#referencing-slsa-builders-and-generators
22+
allowlist: |
23+
slsa-framework/slsa-github-generator

.github/workflows/check-commit.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check Commit
2+
permissions: {}
3+
4+
on:
5+
push:
6+
branches: [ "*" ]
7+
pull_request:
8+
branches: [ "*" ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
commit_lint:
16+
runs-on: ubuntu-24.04
17+
steps:
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
with:
20+
fetch-depth: 0
21+
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
22+
with:
23+
firstParent: true

.github/workflows/codecov.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Integration Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "master"
7+
push:
8+
branches:
9+
- "master"
10+
11+
permissions: read-all
12+
13+
jobs:
14+
integration-test:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
- name: Check secret
20+
id: checksecret
21+
uses: peak-scale/github-actions/exists@38322faabccd75abfa581c435e367d446b6d2c3b # v0.1.0
22+
with:
23+
value: ${{ secrets.CODECOV_TOKEN }}
24+
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
25+
with:
26+
go-version: '1.19'
27+
- name: Run integration tests
28+
run: |
29+
make integration-test
30+
- name: Upload coverage reports to Codecov
31+
if: steps.checksecret.outputs.result == 'true'
32+
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
33+
with:
34+
files: ./test/integration/cover.out
35+
env:
36+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)