-
Notifications
You must be signed in to change notification settings - Fork 2
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
MIssing info on how to use/create profiles #6
Comments
@qubeio thanks for submitting this issue! The simple answer as to why this capability can't be found is because it unfortunately doesn't exist 😢. I am aware that documentation on how to do this is needed, as well as (probably) some helper commands to get started, so I will try and prioritise getting this done when I get some spare time! |
So I just did a bit of messing around with the functionality, it was a bit buggy in places. I am in the process of releasing You should (for now) you should be able to expand the
contexts:
- name: minikube
status: protected
unlockTimestamp: ""
profiles:
- name: protected
blockedVerbs:
- delete
- apply
- create
- patch
- label
- annotate
- replace
- cp
- taint
- drain
- uncordon
- cordon
- auto-scale
- scale
- rollout
- expose
- run
- set
deleteExceptions:
- group: cert-manager.io/v1
resource: certificates
- group: v1
resource: pods
defaultProfile: protected
unlockTimeoutPeriod: ""
contexts:
- name: minikube
status: protected
unlockTimestamp: ""
profiles:
- name: protected
blockedVerbs:
- delete
- apply
- create
- patch
- label
- annotate
- replace
- cp
- taint
- drain
- uncordon
- cordon
- auto-scale
- scale
- rollout
- expose
- run
- set
deleteExceptions:
- group: cert-manager.io/v1
resource: certificates
- group: acme.cert-manager.io/v1
resource: orders
- group: v1
resource: pods
- group: monitoring.coreos.com/v1
resource: prometheusrules
defaultProfile: protected
unlockTimeoutPeriod: "" Notice that now, I have two more exceptions for deleting things,
**NOTE: Here comes the bit where I messed up. Strictly, the
contexts:
- name: minikube
status: protected
unlockTimestamp: ""
profiles:
- name: barely-protected
blockedVerbs:
- delete
- apply
- name: protected
blockedVerbs:
- delete
- apply
- create
- patch
- label
- annotate
- replace
- cp
- taint
- drain
- uncordon
- cordon
- auto-scale
- scale
- rollout
- expose
- run
- set
deleteExceptions:
- group: cert-manager.io/v1
resource: certificates
- group: acme.cert-manager.io/v1
resource: orders
- group: v1
resource: pods
- group: monitoring.coreos.com/v1
resource: prometheusrules
defaultProfile: protected
unlockTimeoutPeriod: "" You should be able to customize this to whatever you want. Now, I know this all needs to be documented. I will endevour to do so in good time 😄 . |
Wow. This was a pretty quick turnaround! I'll have a play and get back to you |
Ha! I mean I dunno, it is not often that I get issues filed against my code so it was a pleasant surprise to see after coming back from Christmas holidays! Let me know how you get on! As I said, hopefully I can give this project some TLC over the next few months. |
Looks like the darwin arm sha isn't correct. I calculated it as 'ecd3e13910fcb7e1935bf5cb23d0228b7750ba23e49fd3292f226bf00ee4e38' which is what krew is reporting. I was going to put it in as PR but it isn't open for contributions. Happy to contribute if you consider it :) |
oh man 🤦 I thought I fixed this yesterday 😢 I think I know what's happened. I retagged and rereleased, which affected these sha's... so annoying! It's all good, give me two seconds. |
I can confirm that this now works 😄 I am also on darwin arm so can confirm. Any other trouble just let me know - thank you for checking out the tool 😃 |
I'm going to keep this issue open as a reminder that we need to update the documentation 😄 . |
Hey, this is a really useful looking tool so thanks for creating. I can't figure out how to get info on how to create profiles though
The text was updated successfully, but these errors were encountered: