Skip to content

Commit

Permalink
Update release instructions (#175)
Browse files Browse the repository at this point in the history
* Upgate release intructions

* Fix flaky test

* fix codeowners
  • Loading branch information
kwiatekus authored Jan 11, 2024
1 parent 71ceebb commit b842069
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
5 changes: 4 additions & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
* @dbadura @anoipm @m00g3n @pPrecel @kwiatekus @cortey @MichalKalke
* @dbadura @anoipm @pPrecel @kwiatekus @cortey @MichalKalke

# All .md files
*.md @mmitoraj @NHingerl @grego952 @IwonaLanger @nataliasitko
18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,7 @@ If you want to patch a version, cherry pick all fix commits into the release bra

If you want to create a new release, create a new branch from main for the release.

For both cases, once all changes are in the release branch you need to do the following:

- create a new tag for the release using semantic versioning, i.e `v0.2.0-rc2`
```bash
git tag -a v0.2.0-rc2 -m "v0.2.0-rc2"
git push upstream v0.2.0-rc2
```

- checkout locally from the tag, go to `chart` directory and create an archive
```bash
tar czf warden-0.2.0-rc2.tgz warden
```

- go to warden project on github and create release from the new tag

- attach the archive to the github release (or later add it to the assets)

Run a [`create release`](https://github.com/kyma-project/warden/actions/workflows/create-release.yaml) action providing the release name (semantic version `x.x.x`; no `v` prefix) and selecting release branch.
## License

Copyright 2022.
Expand Down
1 change: 0 additions & 1 deletion sec-scanners-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module-name: warden
rc-tag: v0.5.1
protecode:
- europe-docker.pkg.dev/kyma-project/prod/warden/operator:main
- europe-docker.pkg.dev/kyma-project/prod/warden/admission:main
Expand Down
6 changes: 4 additions & 2 deletions tests/warden_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ package tests

import (
"fmt"
"testing"

"github.com/kyma-project/warden/pkg"
"github.com/stretchr/testify/require"
corev1 "k8s.io/api/core/v1"
"testing"
th "warden.kyma-project.io/tests/helpers"
)

Expand Down Expand Up @@ -63,7 +64,8 @@ func Test_PodInsideVerifiedNamespaceWithUntrustedImages_ShouldBeRejected(t *test
pod := tc.Pod().WithContainer(container1).WithContainer(container2).Build()
err := tc.Create(pod)
require.Error(t, err)
require.ErrorContains(t, err, fmt.Sprintf("Pod images %s, %s validation failed", UntrustedImageName, "nginx:1.24.0-perl"))
require.ErrorContains(t, err, UntrustedImageName)
require.ErrorContains(t, err, "nginx:1.24.0-perl")
}

func Test_PodInsideVerifiedNamespaceWithTrustedImage_ShouldBeCreatedWithValidationLabel(t *testing.T) {
Expand Down

0 comments on commit b842069

Please sign in to comment.