Skip to content

Commit

Permalink
feat: run containerdebug in the background (#666)
Browse files Browse the repository at this point in the history
* feat: run containerdebug in the background

* fix copy&paste

* fix pr number

* fix test

* cargo update

* fixed workflow

* use branch name not refs

---------

Co-authored-by: Andrew Kenworthy <[email protected]>
  • Loading branch information
razvan and adwk67 authored Dec 10, 2024
1 parent d927036 commit c5145fe
Show file tree
Hide file tree
Showing 5 changed files with 613 additions and 276 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ jobs:
crate: cargo-edit
bin: cargo-set-version
- name: Update version if PR against main branch
if: ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' }}
run: cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
- name: Update version if PR against non-main branch
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }}
if: ${{ github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-') }}
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
Expand Down Expand Up @@ -420,11 +420,11 @@ jobs:
crate: cargo-edit
bin: cargo-set-version
- name: Update version if PR against main branch
if: ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' }}
run: cargo set-version --offline --workspace 0.0.0-pr${{ github.event.pull_request.number }}
- name: Update version if PR against non-main branch
# For PRs to be merged against a release branch, use the version that has already been set in the calling script.
if: ${{ github.event_name == 'pull_request' && github.ref != 'refs/heads/main' }}
if: ${{ github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-') }}
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Added

- Run a `containerdebug` process in the background of each OPA container to collect debugging information ([#666]).

### Fixed

- BREAKING: Use distinct ServiceAccounts for the Stacklets, so that multiple Stacklets can be
deployed in one namespace. Existing Stacklets will use the newly created ServiceAccounts after
restart ([#656]).

[#656]: https://github.com/stackabletech/opa-operator/pull/656
[#666]: https://github.com/stackabletech/opa-operator/pull/666

## [24.11.0] - 2024-11-18

Expand Down
Loading

0 comments on commit c5145fe

Please sign in to comment.