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

Add kubecm export command #713

Merged
merged 2 commits into from
Jun 25, 2023
Merged

Conversation

cr7258
Copy link
Contributor

@cr7258 cr7258 commented Jun 21, 2023

Description

Add export command to enable users to export specified contexts from kubeconfig file.

Usage

kubecm export cluster-1  cluster-2 -f /tmp/export-config.yaml 
Context Export:「cluster-1」
Context Export:「cluster-2」

Unit Test

image

@cr7258 cr7258 changed the title Kubeconfig export Add kubecm export command Jun 21, 2023
@codecov
Copy link

codecov bot commented Jun 25, 2023

Codecov Report

Merging #713 (29788b4) into master (6f37452) will increase coverage by 6.76%.
The diff coverage is 21.95%.

@@            Coverage Diff             @@
##           master     #713      +/-   ##
==========================================
+ Coverage   13.48%   20.24%   +6.76%     
==========================================
  Files          19       20       +1     
  Lines        1891     2015     +124     
==========================================
+ Hits          255      408     +153     
+ Misses       1615     1568      -47     
- Partials       21       39      +18     
Flag Coverage Δ
unittests 20.24% <21.95%> (+6.76%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/cmd.go 0.00% <0.00%> (ø)
cmd/export.go 22.22% <22.22%> (ø)

... and 5 files with indirect coverage changes

Copy link
Owner

@sunny0826 sunny0826 left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks for your contribution 🎆

@sunny0826 sunny0826 merged commit ef2e212 into sunny0826:master Jun 25, 2023
6 checks passed
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.

None yet

2 participants