-
Notifications
You must be signed in to change notification settings - Fork 554
feat: validate kubeconfig and save clusters #3148
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
Merged
Merged
Changes from all commits
Commits
Show all changes
113 commits
Select commit
Hold shift + click to select a range
c1fd4f8
Api created
ShashwatDadhich 9284b67
Started with ValidateKubeconfig function
ShashwatDadhich 2f7f513
Started with ValidateKubeconfig function
ShashwatDadhich c3730ed
completed the apis
ShashwatDadhich 62b6c48
validatiion api updated
ShashwatDadhich e53b947
validatiion errors updated
ShashwatDadhich ba09282
removed the commented lines
ShashwatDadhich 2332f94
validation message updated
ShashwatDadhich 54c40be
validation message updated
ShashwatDadhich 6d36f1c
save clusters updated
ShashwatDadhich 707821a
validation of cluster already exists added.
ShashwatDadhich 206efca
InsecureSkipTLSVerify logic corrected
ShashwatDadhich 17d4534
Save clusters api updated
ShashwatDadhich eb43ace
Save cluster api updated
ShashwatDadhich 1159b4f
Save cluster api updated
ShashwatDadhich 71efb96
validate kubeconfig api updated
ShashwatDadhich c4bdac4
save clusters api updated
ShashwatDadhich 9bbf115
save clusters api updated
ShashwatDadhich c6d5bd4
updated the RBAC check
ShashwatDadhich 5b0a2e1
added cose to fetch all cluster names
ShashwatDadhich 32911c4
validate and save connection added and checked
ShashwatDadhich 6fb814c
validateClusters updated
ShashwatDadhich 206b446
validateClusters optimized
ShashwatDadhich 8f50553
Merge branch 'main' into kubeconfig
ShashwatDadhich dff9392
TLS verify added
ShashwatDadhich eb540a7
TLS verify added
ShashwatDadhich b256600
TLS verify added
ShashwatDadhich 086bf50
TLS verify added
ShashwatDadhich 903f6b2
TLS verify added
ShashwatDadhich ab5b45c
TLS verify added
ShashwatDadhich 1b4746d
TLS verify added
ShashwatDadhich 7a7cf0e
TLS verify added
ShashwatDadhich 52a67da
TLS verify added
ShashwatDadhich 55717a6
TLS verify added
ShashwatDadhich 7a8c4a9
TLS verify added
ShashwatDadhich 878a9e4
TLS verify added
ShashwatDadhich 936c5c8
Import Cycle Removed
ShashwatDadhich 50c356a
Api specs updated
ShashwatDadhich 9380529
Code refactoring done
ShashwatDadhich c9b48b6
Code refactoring done
ShashwatDadhich c29c2c0
Code refactoring done
ShashwatDadhich 66daf3d
Code refactoring done
ShashwatDadhich c288f48
Code refactoring done
ShashwatDadhich d844a40
Code refactoring done
ShashwatDadhich 0a2eefe
Code refactoring done
ShashwatDadhich 599746c
Validation api completed
ShashwatDadhich 1e2113d
Api specs updated
ShashwatDadhich dcbb692
Api specs updated
ShashwatDadhich 59a741b
merged with main
ShashwatDadhich df3f96d
removed cluster fields
ShashwatDadhich 8a28acc
error handling done in save multiple clusters
ShashwatDadhich f528e8a
error handling done in save multiple clusters
ShashwatDadhich 3baf65f
bug fixes
ShashwatDadhich 0d7b028
changes reverted
ShashwatDadhich a7a4091
checks added
ShashwatDadhich fc417bc
wire gen file added
ShashwatDadhich 03c2b1d
omitempty removed
ShashwatDadhich 86b3c80
legacy bug removed
ShashwatDadhich c6bca07
merged with main
ShashwatDadhich 5de60a5
sql script updated
ShashwatDadhich 792f3c4
Update cluster added
ShashwatDadhich 23669e5
Merge branch 'main' into kubeconfig
ShashwatDadhich 052a9ef
solved the PR comments
ShashwatDadhich 6494fb3
solved the PR comments
ShashwatDadhich 63b51e5
solved the PR comments
ShashwatDadhich be9414c
solved the PR comments
ShashwatDadhich d718171
solved the PR comments
ShashwatDadhich d726948
bug fix
ShashwatDadhich bff7635
review comments incorporated
ShashwatDadhich 8b2cc67
review comments incorporated
ShashwatDadhich cb5e93f
review comments incorporated and wire file changed
ShashwatDadhich a81dfcd
review comments incorporated
ShashwatDadhich dfeed6f
review comments incorporated
ShashwatDadhich d663db2
Merge branch 'main' into kubeconfig
ShashwatDadhich 04a6dac
sql number changed
ShashwatDadhich dd21641
Merge branch 'main' into kubeconfig
ShashwatDadhich 68705bc
sql number changed
ShashwatDadhich 4baf68d
sql number changed
ShashwatDadhich 4f173e9
minor big fix
ShashwatDadhich 53a46c4
changes reverted
ShashwatDadhich 0be13f0
changes added
ShashwatDadhich 0a1918e
minor bug fix
ShashwatDadhich bdd73c0
Merge branch 'main' into kubeconfig
ShashwatDadhich 9e7c958
sql number updated
ShashwatDadhich 658d668
minor bug fix
ShashwatDadhich cea3fe6
minor bug fix
ShashwatDadhich 229c375
error message changes
ShashwatDadhich 033be91
insecureSkipTlsVerify stored in database
ShashwatDadhich b151e43
bug fix
ShashwatDadhich dcb9b8b
bug fix
ShashwatDadhich 2147fde
go routines bug fix
ShashwatDadhich f020f31
bug fix
ShashwatDadhich 67a1606
bug fix
ShashwatDadhich 09e4a68
bug fix
ShashwatDadhich b9007e3
error message added for edit cluster in case of default clusters.
ShashwatDadhich 335c720
error message added for edit cluster in case of default clusters.
ShashwatDadhich 2f4adb1
Merge branch 'main' into kubeconfig
ShashwatDadhich 31719be
sql number update
ShashwatDadhich 31128f5
bug fix
ShashwatDadhich 95ff96c
bug fix
ShashwatDadhich b63cc44
bug fix
ShashwatDadhich c2e686a
bug fix
ShashwatDadhich 5116009
code review comments incorporated
ShashwatDadhich f3e17f1
code review comments incorporated
ShashwatDadhich d05dfa8
code review comments incorporated
ShashwatDadhich 1ab4135
code review comments incorporated
ShashwatDadhich 3310189
refactor
ShashwatDadhich 77ebed3
merge main
ShashwatDadhich e6665de
merge main
ShashwatDadhich 92c0583
not passing certificate data in case of insecure false
ShashwatDadhich 35d59f3
constants added
ShashwatDadhich af465a6
import cycle fix
ShashwatDadhich a02d121
minor bug fix
ShashwatDadhich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,12 @@ | ||
| package bean | ||
|
|
||
| type ClusterInfo struct { | ||
| ClusterId int `json:"clusterId"` | ||
| ClusterName string `json:"clusterName"` | ||
| BearerToken string `json:"bearerToken"` | ||
| ServerUrl string `json:"serverUrl"` | ||
| ClusterId int `json:"clusterId"` | ||
| ClusterName string `json:"clusterName"` | ||
| BearerToken string `json:"bearerToken"` | ||
| ServerUrl string `json:"serverUrl"` | ||
| InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify"` | ||
| KeyData string `json:"keyData"` | ||
| CertData string `json:"certData"` | ||
| CAData string `json:"CAData"` | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.