RFC: Low effort GitOps on StackGuardian Platform #44
Akshat0694
started this conversation in
Ideas
Replies: 1 comment
-
Other benefits also include:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1. Introduction
1.1 Background
As the StackGuardian platform evolves and the user's Infrastructure as Code (IaC) footprint grows, the need for low-effort, consistent, and automated deployment processes becomes more critical. GitOps, a paradigm that uses Git as the single source of truth for declarative infrastructure and applications, offers a promising solution but comes with a complicated setup. This RFC proposes the introduction of a GitOps-based system that leverages a StackGuardian manifest file to define and run Workflows and stacks based on version-controlled input, stored in the user's Git repositories alongside their IaC configurations. Alternatively, templates can be created on the StackGuardian platform for self-service use cases.
1.2 Objective
The goal of this RFC is to outline a system that leverages GitOps concepts and allows users to define Workflows and stacks in a manifest file, with provisions for automatically triggering these Workflows/Stacks based on changes or specific triggers originating from a Git repository. This system aims to enhance automation, consistency, and reduce GitOps complexity in our deployment processes, allowing users to utilize the StackGuardian Platform without needing to pre-configure its native constructs like Workflows, Stacks, or Templates.
2. Proposal
2.1 Overview
The proposed system will introduce the StackGuardian manifest file, where users can define their Workflows, Stacks, or Templates. These Workflows will be executed in StackGuardian using the inputs specified in the manifest file.
2.2 Manifest File Structure
The manifest file will be a YAML file that users commit to their repositories. The structure of this manifest will be closely related to the HTTP JSON API definition of a Workflow or Stack and will also be compatible with sg-cli. If left empty, a default Workflow, Stack, or Template configuration will be assumed.
2.3 Execution Logic
The system will interpret the manifest file and execute the defined flow accordingly:
3. Benefits
3.1 Benefits
4. Use Cases
4.1 Automated Testing and Validation
4.2 Environment Management
5. Conclusion
The proposed low-effort GitOps Workflow system will significantly enhance our platform’s deployment processes by providing automation, consistency, and scalability. By adopting a manifest-based approach, we align our Workflow management with modern best practices, ensuring that our platform remains competitive and efficient.
Feedback on this RFC is encouraged, and collaboration is welcome to refine the proposal.
Beta Was this translation helpful? Give feedback.
All reactions