Skip to content

Support create configmap, secret, deployment, statefulset, namespace, pod #1492

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tosone
Copy link

@tosone tosone commented Mar 9, 2022

Hello, I implement k9s create resource, could u please review this pr @derailed?

image

@tosone tosone changed the title WIP: Support create pod Support create pod Apr 16, 2022
@tosone tosone changed the title Support create pod Support create configmap, secret, deployment, statefulset, namespace, pod Apr 16, 2022
@tosone
Copy link
Author

tosone commented Sep 9, 2022

@derailed gently ping. Is create resources with k9s in your roadmap? if not, I can close this pr.

return nil, fmt.Errorf("Expecting *appsv1.Deployment but got %T", obj)
}

auth, err := d.Client().CanI(ns, "apps/v1/deployments:create", []string{client.CreateVerb})
Copy link

Choose a reason for hiding this comment

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

Isn't it better to try creating the resource and report auth errors in case? This adds an extra - unnecessary - api call to CanI.

@derailed derailed added enhancement New feature or request needs-review PR needs to be reviewed needs-tlc Pr needs additional updates labels Nov 12, 2023
@tosone
Copy link
Author

tosone commented Nov 29, 2023

I will update pr and resolve the conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-review PR needs to be reviewed needs-tlc Pr needs additional updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants