ratify-project / ratify

Artifact Ratification Framework
https://ratify.dev
Apache License 2.0
219 stars 59 forks source link

fix: disable Azure Policy while creating AKS #1814

Closed binbin-li closed 1 week ago

binbin-li commented 2 weeks ago

Description

What this PR does / why we need it:

Open source GK outside of Azure Policy Add-on is not supported in AKS. Azure test woudl get below error while installing Ratify:

admission webhook "byovalidation.policy.azure.com" denied the request: This cluster is governed by Azure Policy. Policies must be created through Azure. 

One workaround is to disable Azure Policy add-on while creating AKS cluster. Already tests in my forked repo: image

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):

Fixes #

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

Checklist:

Post Merge Requirements

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark: