diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 0000000..fada03f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -0,0 +1,54 @@ +name: Bug Report +description: Something is not working + +body: + - type: markdown + attributes: + value: | + Thank you for submitting an issue. Please fill in the template below + information about the bug you encountered. + + - type: textarea + id: summary + attributes: + label: Summary + description: Please explain the bug in a few short sentences. + placeholder: Detail the bug here... + validations: + required: true + + - type: textarea + id: what-should-happen + attributes: + label: What Should Happen Instead? + description: Please explain what the expected behavior is. + placeholder: Explain the expected outcome... + validations: + required: true + + - type: textarea + id: reproduction-steps + attributes: + label: Reproduction Steps + description: Are you able to consistently reproduce the issue? Please add a list of steps that lead to the bug. + placeholder: "1.\n2.\n" + validations: + required: true + + - type: textarea + id: suggest-fix + attributes: + label: Can you suggest a fix? + description: How do you propose that the issue be fixed? + placeholder: Suggest a fix if you have one... + + - type: textarea + id: contribute-fix + attributes: + label: Are you interested in contributing with a fix? + description: yes/no, or @mention maintainers. Community contributions are welcome. + placeholder: Are you willing to contribute a fix? + + - type: markdown + attributes: + value: Thank you for making the rocks better diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..b727d0e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,21 @@ +--- +name: Feature Request +about: Suggest a new feature +--- + + + +#### Summary + + +#### Why is this important? + + +#### Are you interested in contributing to this feature? + + + + \ No newline at end of file diff --git a/.github/workflows/cla-check.yaml b/.github/workflows/cla-check.yaml new file mode 100644 index 0000000..75e5796 --- /dev/null +++ b/.github/workflows/cla-check.yaml @@ -0,0 +1,9 @@ +name: cla-check +on: [pull_request_target] + +jobs: + cla-check: + runs-on: ubuntu-latest + steps: + - name: Check if CLA signed + uses: canonical/has-signed-canonical-cla@v1 diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml new file mode 100644 index 0000000..7cc7788 --- /dev/null +++ b/.github/workflows/pull_request.yaml @@ -0,0 +1,35 @@ +name: Push Multiarch Images +on: + pull_request: + push: + branches: + - main + +jobs: + build-and-push-arch-specifics: + name: Build Rocks and Push Arch Specific Images + uses: canonical/k8s-workflows/.github/workflows/build_rocks.yaml@main + with: + owner: ${{ github.repository_owner }} + trivy-image-config: "trivy.yaml" + multiarch-awareness: true + cache-action: ${{ (github.event_name == 'push') && 'save' || 'restore' }} + # pinning to use rockcraft 1.3.0 feature `entrypoint-service` + rockcraft-revisions: '{"amd64": "1783", "arm64": "1784"}' + arch-skipping-maximize-build-space: '["arm64"]' + platform-labels: '{"arm64": ["Ubuntu_ARM64_4C_16G_01"]}' + scan-images: + uses: canonical/k8s-workflows/.github/workflows/scan_images.yaml@main + needs: [build-and-push-arch-specifics] + secrets: inherit + with: + upload-result: ${{ github.event_name == 'push' }} + images: ${{ needs.build-and-push-arch-specifics.outputs.images }} + trivy-image-config: ./trivy.yaml + build-and-push-multiarch-manifest: + name: Combine Rocks and Push Multiarch Manifest + uses: canonical/k8s-workflows/.github/workflows/assemble_multiarch_image.yaml@main + needs: [build-and-push-arch-specifics] + with: + rock-metas: ${{ needs.build-and-push-arch-specifics.outputs.rock-metas }} + dry-run: ${{ github.event_name != 'push' }} diff --git a/.gitignore b/.gitignore index 2d32921..5f9d73b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.rock -*/__pycache__ +**/__pycache__ .pytest_cache .venv .tox diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..370b7d8 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @canonical/kubernetes