Skip to content

Commit

Permalink
Merge pull request #29 from twelho/fix-manifest-apply
Browse files Browse the repository at this point in the history
fix: skip apply if no manifests were generated
  • Loading branch information
twelho authored Sep 5, 2024
2 parents a505025 + 8e613da commit adbe97a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,10 @@ def apply_configuration(node_set, configuration_file, global_patches):
manifests.append(manifest)

# Apply CRDs before everything else
kubectl("apply", "-f", "-", stdin=yaml.safe_dump_all(crds))
kubectl("apply", "-f", "-", stdin=yaml.safe_dump_all(manifests))
if len(crds):
kubectl("apply", "-f", "-", stdin=yaml.safe_dump_all(crds))
if len(manifests):
kubectl("apply", "-f", "-", stdin=yaml.safe_dump_all(manifests))

# Wait for the cluster to be healthy
talosctl("health")
Expand Down

0 comments on commit adbe97a

Please sign in to comment.