Skip to content

Commit

Permalink
simplify snapshot disable code (#4399)
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored Jan 26, 2024
1 parent ef18b36 commit ce358e8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/handlers/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,7 @@ func responseAppFromApp(a *apptypes.App) (*types.ResponseApp, error) {
return nil, errors.Wrap(err, "failed to check if snapshots is allowed")
}
allowSnapshots := s && license.Spec.IsSnapshotSupported
if allowSnapshots {
if util.IsEmbeddedCluster() {
allowSnapshots = false // snapshots are not allowed in embedded cluster installations today
}
}
allowSnapshots = allowSnapshots && !util.IsEmbeddedCluster() // snapshots are not allowed in embedded cluster installations today

isGitopsSupported := license.Spec.IsGitOpsSupported && !util.IsEmbeddedCluster() // gitops is not allowed in embedded cluster installations today

Expand Down

0 comments on commit ce358e8

Please sign in to comment.