1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Merge pull request #259 from fluxcd/fix-bootstrap-sync

Always apply sync manifests on bootstrap
This commit is contained in:
Stefan Prodan
2020-09-22 15:13:08 +03:00
committed by GitHub
2 changed files with 10 additions and 10 deletions

View File

@@ -239,13 +239,13 @@ func bootstrapGitHubCmdRun(cmd *cobra.Command, args []string) error {
return err
}
logger.Successf("sync manifests pushed")
}
// apply manifests and waiting for sync
logger.Actionf("applying sync manifests")
if err := applySyncManifests(ctx, kubeClient, namespace, namespace, ghPath, tmpDir); err != nil {
return err
}
}
if withErrors {
return fmt.Errorf("bootstrap completed with errors")

View File

@@ -211,13 +211,13 @@ func bootstrapGitLabCmdRun(cmd *cobra.Command, args []string) error {
return err
}
logger.Successf("sync manifests pushed")
}
// apply manifests and waiting for sync
logger.Actionf("applying sync manifests")
if err := applySyncManifests(ctx, kubeClient, namespace, namespace, glPath, tmpDir); err != nil {
return err
}
}
logger.Successf("bootstrap finished")
return nil