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

Adding an admission controller #493

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

Adding an admission controller #493

wants to merge 1 commit into from

Conversation

dwertent
Copy link
Contributor

@dwertent dwertent commented Dec 31, 2024

Overview

Adding an admission controller that prevents users from updating or deleting the following resources:

  • PaladinRegistration
  • SmartContractDeployment
  • TransactionInvoke
  • PaladinRegistry

Message

The output to the user when attempting to delete/update a resource will look similar to this:

% kubectl delete reg node1
Error from server (Forbidden): admission webhook "vpaladinregistration.kb.io" denied the request: deletions of PaladinRegistration resources are not allowed as they have already been submitted to the blockchain and cannot be deleted

Enable/Disable

It is possible to disable the webhook installation by setting the flag:

--set webhook.enabled=false

The default is true.

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.

1 participant