{"id":13644465,"url":"https://github.com/brianpursley/kubectl-confirm","last_synced_at":"2025-07-25T01:32:01.289Z","repository":{"id":64304497,"uuid":"517831554","full_name":"brianpursley/kubectl-confirm","owner":"brianpursley","description":"Kubectl Confirm is a plugin for Kubectl that displays information and asked for confirmation before executing a command.","archived":false,"fork":false,"pushed_at":"2022-07-29T13:33:15.000Z","size":11,"stargazers_count":25,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T17:41:52.254Z","etag":null,"topics":["kubectl","kubernetes","plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brianpursley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-25T21:54:05.000Z","updated_at":"2024-09-14T19:14:43.000Z","dependencies_parsed_at":"2023-01-15T10:15:50.576Z","dependency_job_id":null,"html_url":"https://github.com/brianpursley/kubectl-confirm","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianpursley%2Fkubectl-confirm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianpursley%2Fkubectl-confirm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianpursley%2Fkubectl-confirm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianpursley%2Fkubectl-confirm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianpursley","download_url":"https://codeload.github.com/brianpursley/kubectl-confirm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227500558,"owners_count":17781307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kubectl","kubernetes","plugin"],"created_at":"2024-08-02T01:02:05.441Z","updated_at":"2024-12-01T06:28:59.196Z","avatar_url":"https://github.com/brianpursley.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Kubectl Confirm Plugin\n\nKubectl Confirm is a plugin for Kubectl that displays information and asked for confirmation before executing a command.\n\nThe following information is displayed:\n* Configuration: Context name, Cluster, User, and Namespace\n* Dry Run Output (if the executed command supports the `--dry-run` flag)\n* Diff Output (if the executed command supports the `--dry-run` and `--output` flags)\n\n## Example Output\n```\n$ kubectl confirm apply -f ~/changed.yaml\n========== Config ===========\nContext:    kind-kind\nCluster:    kind-kind\nUser:       kind-kind\nNamespace:  default\n\n========== Dry Run ==========\ndeployment.apps/foo configured (server dry run)\n\n========== Diff =============\ndiff -u -N /tmp/LIVE-2275701238/apps.v1.Deployment.default.foo /tmp/MERGED-1055657464/apps.v1.Deployment.default.foo\n--- /tmp/LIVE-2275701238/apps.v1.Deployment.default.foo\t2022-07-28 10:27:25.690604172 -0400\n+++ /tmp/MERGED-1055657464/apps.v1.Deployment.default.foo\t2022-07-28 10:27:25.694604038 -0400\n@@ -6,7 +6,7 @@\n     kubectl.kubernetes.io/last-applied-configuration: |\n       {\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"name\":\"foo\",\"namespace\":\"default\"},\"spec\":{\"replicas\":1,\"revisionHistoryLimit\":10,\"selector\":{\"matchLabels\":{\"app\":\"foo\"}},\"template\":{\"metadata\":{\"labels\":{\"app\":\"foo\"}},\"spec\":{\"containers\":[{\"command\":[\"sh\",\"-c\",\"echo Container bar is running! \\u0026\\u0026 sleep 9999999\"],\"image\":\"busybox:1.30\",\"name\":\"bar\"}]}}}}\n   creationTimestamp: \"2022-07-28T11:43:58Z\"\n-  generation: 1\n+  generation: 2\n   managedFields:\n   - apiVersion: apps/v1\n     fieldsType: FieldsV1\n@@ -90,7 +90,7 @@\n spec:\n   progressDeadlineSeconds: 600\n   replicas: 1\n-  revisionHistoryLimit: 10\n+  revisionHistoryLimit: 11\n   selector:\n     matchLabels:\n       app: foo\n\n========== Confirm ==========\nThe following command will be executed:\nkubectl apply -f /home/bpursley/changed.yaml\n\nEnter 'yes' to continue: \n```\n\nIf you enter `yes` (exactly) then it will proceed:\n```\nEnter 'yes' to continue: yes\n\ndeployment.apps/foo configured\n```\n\nIf you enter anything other than `yes` (exactly), then it will stop:\n```\nEnter 'yes' to continue: no\n\nCommand aborted.\n```\n\n## Known Limitations\n\n* Command line completion does not work\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianpursley%2Fkubectl-confirm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianpursley%2Fkubectl-confirm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianpursley%2Fkubectl-confirm/lists"}