-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: slim-dev monitoring handling (#383)
## Description Fixes a problem where missing CRDs on slim-dev would throw any `Package` CRs into a pending state without clear errors: - Adds CRDs to slim-dev - Add better logging around servicemonitors/errors - Add CI to test slim-dev ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)(https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md#submitting-a-pull-request) followed
- Loading branch information
Showing
5 changed files
with
104 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Slim Dev | ||
|
||
# This workflow is triggered on pull requests | ||
on: | ||
pull_request: | ||
# milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow). | ||
types: [milestoned, opened, reopened, synchronize] | ||
paths: | ||
- src/pepr/* | ||
- src/keycloak/* | ||
- src/istio/* | ||
- src/prometheus-stack/* | ||
- packages/slim-dev/* | ||
- bundles/core-slim-dev/* | ||
- .github/workflows/slim-dev* | ||
|
||
# Permissions for the GITHUB_TOKEN used by the workflow. | ||
permissions: | ||
id-token: write # Needed for OIDC-related operations. | ||
contents: read # Allows reading the content of the repository. | ||
pull-requests: read # Allows reading pull request metadata. | ||
|
||
# Default settings for all run commands in the workflow jobs. | ||
defaults: | ||
run: | ||
shell: bash -e -o pipefail {0} # Ensures that scripts fail on error and pipefail is set. | ||
|
||
# Abort prior jobs in the same workflow / PR | ||
concurrency: | ||
group: test-slim-dev-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# This job runs the slim-dev bundle create/deploy process. | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Environment setup | ||
uses: ./.github/actions/setup | ||
- name: Deploy Slim Dev Bundle | ||
run: uds run slim-dev | ||
- name: Debug Output | ||
if: ${{ always() }} | ||
uses: ./.github/actions/debug-output | ||
- name: Save logs | ||
if: always() | ||
uses: ./.github/actions/save-logs | ||
with: | ||
suffix: -slim-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters