Skip to content

Commit

Permalink
Update meshery_operator.go
Browse files Browse the repository at this point in the history
Signed-off-by: Mohd Uzair <[email protected]>
  • Loading branch information
Mohd Uzair authored Sep 30, 2022
1 parent a7f6555 commit 5b3b495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/controllers/meshery_operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (mo *mesheryOperator) GetStatus() MesheryControllerStatus {
deployment, err := mo.client.DynamicKubeClient.Resource(schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "deployments"}).Namespace("meshery").Get(context.TODO(), "meshery-operator", metav1.GetOptions{})
if err != nil {
if kubeerror.IsNotFound(err) {
mo.setStatus(Undeployed)
mo.setStatus(NotDeployed)
return mo.status
}
return Unknown
Expand Down

0 comments on commit 5b3b495

Please sign in to comment.