mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-03 08:38:52 +00:00
Do not try to reconcile a suspended object
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
ffdaa9dfe9
commit
c813eaf6d1
7 changed files with 31 additions and 2 deletions
|
|
@ -86,6 +86,10 @@ func reconcileHrCmdRun(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if helmRelease.Spec.Suspend {
|
||||
return fmt.Errorf("resource is suspended")
|
||||
}
|
||||
|
||||
if syncHrWithSource {
|
||||
switch helmRelease.Spec.Chart.Spec.SourceRef.Kind {
|
||||
case sourcev1.HelmRepositoryKind:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue