Fix restart command for GitOps deployments

- Remove init_operation() from restart - don't regenerate spec from
  commands.py defaults, use existing git-tracked spec.yml instead
- Add docs/deployment_patterns.md documenting GitOps workflow
- Add pre-commit rule to CLAUDE.md
- Fix line length issues in helpers.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
A. F. DudleyandClaude Opus 4.5 committed 2026-02-03 17:15:19 -05:00
1 parent 3fbd854b8c
commit 14258500bc
5 files changed
+158 -81

No files matched your search

+1 -1
View File
@@ -180,7 +180,7 @@ class Spec:
return self.obj.get(constants.deploy_to_key)
def get_acme_email(self):
return self.obj.get(constants.acme_email_key, "")
return self.obj.get(constants.network_key, {}).get(constants.acme_email_key, "")
def is_kubernetes_deployment(self):
return self.get_deployment_type() in [