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

feat: opt-in allowing cascade delete of namespaces #150

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

erikgb
Copy link
Contributor

@erikgb erikgb commented Nov 10, 2024

This PR introduces an opt-in to configure webhooks to allow the deletion of namespaces with children (a.k.a. cascading deletion) which will be blocked by default.

Close #119

@erikgb
Copy link
Contributor Author

erikgb commented Nov 10, 2024

@zoetrope PTAL! I think the CI is broken because the Helm install in the failing workflow is performed using the latest release of Accurate, and not included the changes in this PR. This seems wrong to me. Please advice!

@012xx 012xx requested a review from zoetrope November 11, 2024 01:05
@zoetrope
Copy link
Member

@erikgb
You could try building the container with the latest code and loading it like this:

diff --git a/.github/workflows/helm.yaml b/.github/workflows/helm.yaml
index ce3ea8e..7a9f5e1 100644
--- a/.github/workflows/helm.yaml
+++ b/.github/workflows/helm.yaml
@@ -43,12 +43,14 @@ jobs:
           kubectl -n cert-manager wait --for=condition=available --timeout=180s --all deployments
       - name: Prepare values.yaml
         run: |
-          LATEST=$(curl -s "https://api.github.com/repos/cybozu-go/accurate/releases/latest" | jq -r .tag_name)
-          APP_VERSION=${LATEST#v}
+          docker build -t accurate:dev .
+          kind load docker-image accurate:dev --name=chart-testing
           mkdir -p charts/accurate/ci/
           cat > charts/accurate/ci/ci-values.yaml <<EOF
           image:
-             tag: $APP_VERSION
+            repository: accurate
+            tag: dev
+            pullPolicy: Never
           EOF
       - name: Run chart-testing (install)
         run: ct install --config ct.yaml

Copy link
Member

@zoetrope zoetrope left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Opt-in allowing cascading deletes of namespaces
2 participants