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

fix: replace deprecated ingress with new ingress #1906

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

ZhiminXiang
Copy link
Contributor

What this PR does / why we need it:
This PR is to fix the demo that uses the deprecated Ingress

Which issue(s) this PR fixes *
Fixes #1903

@ZhiminXiang ZhiminXiang changed the title Replace deprecated Ingress with new Ingress Fix: #1903 Replace deprecated Ingress with new Ingress Mar 10, 2022
Signed-off-by: Zhimin Xiang <zhiminx@google.com>
@ZhiminXiang ZhiminXiang force-pushed the fix_deprecated_ingress branch from 756095d to 2df98b1 Compare March 10, 2022 00:58
@ZhiminXiang ZhiminXiang changed the title Fix: #1903 Replace deprecated Ingress with new Ingress fix: replace deprecated ingress with new ingress Mar 10, 2022
Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks for the PR!

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ritazh ritazh merged commit 67efa4a into open-policy-agent:master Mar 14, 2022
davis-haba pushed a commit to davis-haba/gatekeeper that referenced this pull request Mar 14, 2022
Signed-off-by: Zhimin Xiang <zhiminx@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
willbeason pushed a commit that referenced this pull request Mar 16, 2022
* Cache namespaces in targethandler

Signed-off-by: davis-haba <davishaba@google.com>

* chore: bump actions/checkout from 2 to 3 (#1888)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: davis-haba <davishaba@google.com>

* fix uninstall version typo (#1890)

Signed-off-by: Avinash Desireddy <avinashr.desireddy@gmail.com>
Signed-off-by: davis-haba <davishaba@google.com>

* chore: Remove unneeded spaces in helm chart (#1885)

Signed-off-by: Manuel Rüger <manuel@rueg.eu>

Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Signed-off-by: davis-haba <davishaba@google.com>

* chore: bump @docusaurus/core from 2.0.0-beta.16 to 2.0.0-beta.17 in /website (#1892)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: davis-haba <davishaba@google.com>

* chore: bump @docusaurus/preset-classic from 2.0.0-beta.16 to 2.0.0-beta.17 in /website (#1893)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: davis-haba <davishaba@google.com>

* docs: add instructions on how to use tilt for development (#1895)

Signed-off-by: davis-haba <davishaba@google.com>

* test: Fix `BenchmarkValidationHandler` was broken (#1896)

Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Signed-off-by: davis-haba <davishaba@google.com>

* Integration test for referential data in `gator test` (#1899)

Signed-off-by: juliankatz <juliankatz@google.com>
Signed-off-by: davis-haba <davishaba@google.com>

* test: Fix `BenchmarkModifySetMutator_Mutate` was broken (#1897)

Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Signed-off-by: davis-haba <davishaba@google.com>

* gofmt target.go

Signed-off-by: davis-haba <davishaba@google.com>

* Add type assertion when pulling namespace from cache

Signed-off-by: davis-haba <davishaba@google.com>

* Do not use pointers for nsCache and RWLock when not necessary

Signed-off-by: davis-haba <davishaba@google.com>

* return error when unsuccesful reading from nscache

Signed-off-by: davis-haba <davishaba@google.com>

* Revert "return error when unsuccesful reading from nscache"

This reverts commit 95bab77.

Signed-off-by: davis-haba <davishaba@google.com>

* Add tests for nsCache

Signed-off-by: davis-haba <davishaba@google.com>

* remove unused helpers in target_test.go

Signed-off-by: davis-haba <davishaba@google.com>

* remove commented code

Signed-off-by: davis-haba <davishaba@google.com>

* gofumpt target.go and target_test.go

Signed-off-by: davis-haba <davishaba@google.com>

* re-add accidently deleted test

Signed-off-by: davis-haba <davishaba@google.com>

* add helpers to original code location to clean up diff

Signed-off-by: davis-haba <davishaba@google.com>

* gofumpt target.go

Signed-off-by: davis-haba <davishaba@google.com>

* Add remove cache tests. Change nsCache.Get/Add API to take a namespace instead of interface. Properly wrap caching errors

Signed-off-by: davis-haba <davishaba@google.com>

* namespace cache tests verifies extranious elements do not exist

Signed-off-by: davis-haba <davishaba@google.com>

* increment with ++ instead of +=

Signed-off-by: davis-haba <davishaba@google.com>

* Replace deprecated Ingress with new Ingress (#1906)

Signed-off-by: Zhimin Xiang <zhiminx@google.com>
Signed-off-by: davis-haba <davishaba@google.com>

* do a audit run when we deploy (#1901)

Signed-off-by: Michael Grosser <michael@grosser.it>

Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Co-authored-by: Rita Zhang <rita.z.zhang@gmail.com>
Signed-off-by: davis-haba <davishaba@google.com>

* Do not add to cache within targethandler

Signed-off-by: davis-haba <davishaba@google.com>

* use gkReq.Namespace as key when writing to cache

Signed-off-by: davis-haba <davishaba@google.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Avinash Desireddy <47186096+avinashdesireddy@users.noreply.github.com>
Co-authored-by: Manuel Rüger <manuel@rueg.eu>
Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Co-authored-by: Ernest Wong <chuwon@microsoft.com>
Co-authored-by: Huang Huang <mozillazg101@gmail.com>
Co-authored-by: Julian Katz <juliankatz@google.com>
Co-authored-by: Zhimin Xiang <zhiminx@google.com>
Co-authored-by: Michael Grosser <michael@grosser.it>
Co-authored-by: Rita Zhang <rita.z.zhang@gmail.com>
Co-authored-by: Will Beason <willbeason@google.com>
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.

agilebank demo uses deprecated Ingress
3 participants