-
Notifications
You must be signed in to change notification settings - Fork 2
feat: pepr Keycloak Client management #358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
957ebe8
UDS Operator to use Client Credentials for Client management
slaskawi c705aaa
Fix tests
slaskawi e1cc19e
CI debugging
slaskawi bfed79b
Fix NPE
slaskawi f9b62ce
Client Credentials docs
slaskawi 76901d5
Merge remote-tracking branch 'origin/main' into pepr_keycloak_client_…
slaskawi 5017cf3
Comments addressed
slaskawi c3bac8e
Comments addressed
slaskawi d2c2a80
Merge remote-tracking branch 'origin/pepr_keycloak_client_management-…
slaskawi 90fe86a
Merge remote-tracking branch 'origin/main' into pepr_keycloak_client_…
slaskawi 4d3d35f
Fix test
slaskawi 08c8503
Mode debug logging
slaskawi b119211
Version upgrade
slaskawi 4ae7a29
Update src/plugin/src/main/java/com/defenseunicorns/uds/keycloak/plug…
slaskawi 5f24017
Comments addressed
slaskawi 6361ce5
Merge remote-tracking branch 'origin/main' into pepr_keycloak_client_…
slaskawi 328506d
Comments addressed
slaskawi a1f2b26
Update docs/reference/UDS Core/IdAM/upgrading-versions.md
slaskawi 02756e0
Comments addressed
slaskawi 6f253e9
Merge branch 'main' into pepr_keycloak_client_management
slaskawi 8ad2ad7
fix: revert custom branch for main branch
chance-coleman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,30 @@ | ||
| # Copyright 2024 Defense Unicorns | ||
| # SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial | ||
|
|
||
| name: debug-output | ||
| description: "Print out basic debug info for a k8s cluster" | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Print basic debug info for a k8s cluster | ||
| run: | | ||
| echo "::group::kubectl get all" | ||
| uds zarf tools kubectl get all -A | tee /tmp/debug-k-get-all.log || true | ||
| echo "::endgroup::" | ||
| echo "::group::kubectl get pods -A -o yaml" | ||
| uds zarf tools kubectl get pods -A -o yaml | tee /tmp/debug-k-get-pods.log || true | ||
| echo "::endgroup::" | ||
| echo "::group::kubectl get pv,pvc" | ||
| uds zarf tools kubectl get pv,pvc -A | tee /tmp/debug-k-get-pv-pvc.log || true | ||
| echo "::endgroup::" | ||
| echo "::group::kubectl get package" | ||
| uds zarf tools kubectl get package -A | tee /tmp/debug-k-get-package.log || true | ||
| echo "::endgroup::" | ||
| echo "::group::kubectl get events" | ||
| uds zarf tools kubectl get events -A --sort-by='.lastTimestamp' | tee /tmp/debug-k-get-events.log || true | ||
| echo "::endgroup::" | ||
| echo "::group::kubectl describe nodes" | ||
| uds zarf tools kubectl describe nodes | tee /tmp/debug-k-describe-node.log || true | ||
| echo "::endgroup::" | ||
| shell: bash |
This file contains hidden or 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,85 @@ | ||
| # Copyright 2024 Defense Unicorns | ||
| # SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial | ||
|
|
||
| name: save-logs | ||
| description: "Save debug logs" | ||
|
|
||
| inputs: | ||
| suffix: | ||
| description: "Suffix to append to the debug log" | ||
| required: false | ||
| default: "" | ||
| distro: | ||
| description: "Kubernetes distribution used in this CI run" | ||
| required: false | ||
| default: "k3d" | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Pull logs from containerd | ||
| if: ${{ inputs.distro == 'k3d' }} | ||
| run: | | ||
| CONTAINER_NAME="k3d-uds-server-0" | ||
| if docker ps | grep -q "$CONTAINER_NAME"; then | ||
| echo "Container $CONTAINER_NAME is running. Proceeding with log copy..." | ||
| docker cp ${CONTAINER_NAME}:/var/log/ /tmp/uds-containerd-logs | ||
| else | ||
| echo "Container $CONTAINER_NAME is not running. Skipping log copy." | ||
| fi | ||
| shell: bash | ||
|
|
||
| - name: Dump Node Logs | ||
| if: ${{ inputs.distro == 'k3d' }} | ||
| run: | | ||
| docker ps --filter "name=k3d" --format "{{.Names}}" | while read line; do | ||
| docker logs "$line" 2> /tmp/$line.log | ||
| done | ||
| shell: bash | ||
|
|
||
| - name: Fix log permissions | ||
| run: | | ||
| sudo chown $USER /tmp/zarf-*.log || echo "" | ||
| sudo chown $USER /tmp/uds-*.log || echo "" | ||
| shell: bash | ||
|
|
||
| - name: Move Playwright Artifacts | ||
| if: ${{ inputs.distro == 'k3d' }} # Currently only run on k3d | ||
| run: | | ||
| sudo mkdir -p /tmp/playwright | ||
| sudo mv test/playwright/.playwright/* /tmp/playwright || true | ||
| shell: bash | ||
|
|
||
| # Additional/specific debug for non-k3d clusters | ||
| - name: Pepr Debug | ||
| if: ${{ inputs.distro != 'k3d' }} | ||
| run: | | ||
| echo "::group::Pepr Pod Status and Metrics" | ||
| uds zarf tools kubectl top pods -n pepr-system | ||
| uds zarf tools kubectl get pods -n pepr-system | ||
| echo "::endgroup::" | ||
| echo "::group::Fetch pepr logs" | ||
| uds zarf tools kubectl logs -n pepr-system -l app=pepr-uds-core --tail -1 > /tmp/pepr-logs.log | ||
| uds zarf tools kubectl logs -n pepr-system -l app=pepr-uds-core --tail -1 --previous > /tmp/pepr-previous-logs.log || true | ||
| uds zarf tools kubectl logs -n pepr-system -l app=pepr-uds-core-watcher --tail -1 > /tmp/pepr-watcher-logs.log | ||
| uds zarf tools kubectl logs -n pepr-system -l app=pepr-uds-core-watcher --tail -1 --previous > /tmp/pepr-watcher-previous-logs.log || true | ||
| echo "::endgroup::" | ||
| echo "::group::Describe Failed Packages" | ||
| FAILED_PACKAGES=($(uds zarf tools kubectl get package -A -o jsonpath="{range .items[?(@.status.phase!='Ready')]}{.metadata.name}{','}{.metadata.namespace}{'\n'}{end}")); for PACKAGE in "${FAILED_PACKAGES[@]}"; do PACKAGE_NAME=$(echo "$PACKAGE" | awk -F "," '{print $1}'); PACKAGE_NAMESPACE=$(echo "$PACKAGE" | awk -F "," '{print $2}'); uds zarf tools kubectl describe package "$PACKAGE_NAME" -n "$PACKAGE_NAMESPACE"; echo; done | ||
| echo "::endgroup::" | ||
| shell: bash | ||
|
|
||
| - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1 | ||
| with: | ||
| name: debug-log${{ inputs.suffix }} | ||
| retention-days: 7 | ||
| path: | | ||
| /tmp/zarf-*.log | ||
| /tmp/uds-*.log | ||
| /tmp/maru-*.log | ||
| /tmp/debug-*.log | ||
| /tmp/uds-containerd-logs | ||
| /tmp/k3d-uds-*.log | ||
| /tmp/playwright/output | ||
| /tmp/playwright/reports | ||
| /tmp/pepr-*.log |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.