fix: add --no-install for activate command #536
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #534
Use Case:
This flag is helpful, for example, I ran
k8sgpt
command in local machine, but the k8s cluster runs remotely.I've activated the plugin remotely, but local k8sgpt.conf didn't reflect it.
so this flag helps my local config file to catch up the real situation.
📑 Description
✅ Checks
ℹ Additional Information
Demo :
(1) Before
![image](https://private-user-images.githubusercontent.com/14049268/249980177-579ddb34-0c94-4aef-afc2-24764d5d583a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NDkzMzEsIm5iZiI6MTcyNDU0OTAzMSwicGF0aCI6Ii8xNDA0OTI2OC8yNDk5ODAxNzctNTc5ZGRiMzQtMGM5NC00YWVmLWFmYzItMjQ3NjRkNWQ1ODNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDAxMjM1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUzZWZmMDkxMTVhY2Q3N2M2MWJiZjE0NGI1OGU2YzRhN2ZmODE1ZTNhYzQ3ZjYxYjk1OGNmYTU4YzhmNjA4MzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yfsfxCVMSlPC0k17HjWACrbdUki_XOq53Wjvrcd77I4)
activate trivy
:(2) helper message:
![image](https://private-user-images.githubusercontent.com/14049268/249980262-2fae0cdc-ec03-4deb-98d4-1787ce59d356.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NDkzMzEsIm5iZiI6MTcyNDU0OTAzMSwicGF0aCI6Ii8xNDA0OTI2OC8yNDk5ODAyNjItMmZhZTBjZGMtZWMwMy00ZGViLTk4ZDQtMTc4N2NlNTlkMzU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDAxMjM1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2MzJiNDhiZDA5NGE0ODFiZGRhMDBlZmJjYWIwNWM0MjUxNzEwNjVkYzNlNzI1ODMxYmMyM2UzYWZmZTJmOWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.knO271k-Y5fAhZkkYZVo75NQEjgPvEddohE1dTCNze8)
(3) activate without install it
![image](https://private-user-images.githubusercontent.com/14049268/249980349-7d6d4e4a-aee8-4d8e-935c-6920efcd29e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NDkzMzEsIm5iZiI6MTcyNDU0OTAzMSwicGF0aCI6Ii8xNDA0OTI2OC8yNDk5ODAzNDktN2Q2ZDRlNGEtYWVlOC00ZDhlLTkzNWMtNjkyMGVmY2QyOWUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDAxMjM1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNiNjg0OGFhNGRlMjdhZWMyNmYzMWFmZmZjNmMxMWQxOTNlZWQxZDY5NzE5OTY1YWEzODkwMjY1ODdkZDdmMGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.qD9SY4Hh7Efk4t605lrnFzpWjXUyBbe1ATkeYpuOp4I)