Skip to content

Commit

Permalink
Merge pull request #355 from abdullah1308/kubeconfig-permission-info
Browse files Browse the repository at this point in the history
Updates error messages for kubeconfig permission
  • Loading branch information
leecalcote authored Aug 28, 2023
2 parents be5ca0b + 0e6bf4e commit b4e728e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/controllers/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func ErrGetControllerStatus(err error) error {
}

func ErrDeployController(err error) error {
return errors.New(ErrDeployControllerCode, errors.Alert, []string{"Error deploying meshery controller"}, []string{err.Error()}, []string{"Controller configuration may not be valid"}, []string{"Make sure the controller configuration is valid"})
return errors.New(ErrDeployControllerCode, errors.Alert, []string{"Error deploying Meshery Operator"}, []string{err.Error()}, []string{"Meshery Server could not connect to the Kubernetes cluster. Meshery Operator was not deployed", "Insufficient file permission to read kubeconfig"}, []string{"Verify that the available kubeconfig is accessible by Meshery Server - verify sufficient file permissions (only needs read permission)"})
}

func ErrGetControllerPublicEndpoint(err error) error {
Expand Down
2 changes: 1 addition & 1 deletion utils/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func ErrReadingRemoteFile(err error) error {
}

func ErrReadingLocalFile(err error) error {
return errors.New(ErrReadingLocalFileCode, errors.Alert, []string{"error reading local file"}, []string{err.Error()}, []string{"File doesnt exist in the location", "File name is incorrect"}, []string{"Make sure to input the right file name and location"})
return errors.New(ErrReadingLocalFileCode, errors.Alert, []string{"error reading local file"}, []string{err.Error()}, []string{"File does not exist in the location (~/.kube/config)", "File is absent. Filename is not 'config'.", "Insufficient permissions to read file"}, []string{"Verify that the available kubeconfig is accessible by Meshery Server - verify sufficient file permissions (only needs read permission)."})
}

func ErrGettingLatestReleaseTag(err error) error {
Expand Down

0 comments on commit b4e728e

Please sign in to comment.