Skip to content
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

printing name of the target when a policy fails to attach #3917

Closed
wants to merge 10 commits into from
Closed

printing name of the target when a policy fails to attach #3917

wants to merge 10 commits into from

Conversation

sadovnikov
Copy link
Contributor

What type of PR is this?

Policies in the v1.1.x versions will have multiple targets. This PR makes error messages on failures to attach to a target more specific.

Which issue(s) this PR fixes:

No issues were logged for this

@sadovnikov sadovnikov requested a review from a team as a code owner July 21, 2024 18:15
Signed-off-by: Viktor Sadovnikov <[email protected]>
Signed-off-by: Viktor Sadovnikov <[email protected]>
zirain
zirain previously approved these changes Jul 22, 2024
@zirain
Copy link
Member

zirain commented Jul 22, 2024

it would be better to have a test for this.

@sadovnikov
Copy link
Contributor Author

it would be better to have a test for this.

@zirain, the resolveSecurityPolicyRouteTargetRef() and other functions have parameters with complex structures. The code will be more testable if the validation of the namespaces and the attachment is extracted from all four files into a helper function. However, I believe there is a problem with the validation code too. Could you take a look at #3918?

sadovnikov and others added 9 commits July 23, 2024 16:32
* e2e: refactor and improve lb test

Signed-off-by: zirain <[email protected]>

* tlog

Signed-off-by: zirain <[email protected]>

* update

Signed-off-by: zirain <[email protected]>

* lint

Signed-off-by: zirain <[email protected]>

* nit

Signed-off-by: zirain <[email protected]>

---------

Signed-off-by: zirain <[email protected]>
* release v1.1.0

Signed-off-by: Guy Daich <[email protected]>

* update release notes with delta from v1.1.0-rc.1

Signed-off-by: Guy Daich <[email protected]>

* fix lint

Signed-off-by: Guy Daich <[email protected]>

---------

Signed-off-by: Guy Daich <[email protected]>
…to 0.20.1 (#3924)

build(deps): bump github.com/google/go-containerregistry

Bumps [github.com/google/go-containerregistry](https://github.com/google/go-containerregistry) from 0.19.2 to 0.20.1.
- [Release notes](https://github.com/google/go-containerregistry/releases)
- [Changelog](https://github.com/google/go-containerregistry/blob/main/.goreleaser.yml)
- [Commits](google/go-containerregistry@v0.19.2...v0.20.1)

---
updated-dependencies:
- dependency-name: github.com/google/go-containerregistry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: zirain <[email protected]>
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.12 to 3.25.13.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@4fa2a79...2d79040)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Huabing Zhao <[email protected]>
)

Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.0.6 to 2.0.8.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](softprops/action-gh-release@a74c6b7...c062e08)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Huabing Zhao <[email protected]>
Bumps [fortio.org/log](https://github.com/fortio/log) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/fortio/log/releases)
- [Commits](fortio/log@v1.14.0...v1.15.0)

---
updated-dependencies:
- dependency-name: fortio.org/log
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Xunzhuo <[email protected]>
@sadovnikov sadovnikov marked this pull request as draft July 23, 2024 14:36
@sadovnikov sadovnikov closed this by deleting the head repository Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants