-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working for statefulset, but not tested well
- Loading branch information
1 parent
bd2ffcc
commit 8dcb3c1
Showing
8 changed files
with
230 additions
and
45 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use serde_derive::{Deserialize, Serialize}; | ||
|
||
// Define a structure to deserialize relevant parts of the YAML. | ||
#[derive(Debug, Serialize, Deserialize)] | ||
pub struct Deployment { | ||
apiVersion: String, | ||
kind: String, | ||
// You might need to adjust the structure based on the actual content of your YAML files | ||
spec: Spec, | ||
} | ||
|
||
#[derive(Debug, Serialize, Deserialize)] | ||
pub struct Spec { | ||
template: Template, | ||
} | ||
|
||
#[derive(Debug, Serialize, Deserialize)] | ||
pub struct Template { | ||
spec: PodSpec, | ||
} | ||
|
||
#[derive(Debug, Serialize, Deserialize)] | ||
pub struct PodSpec { | ||
containers: Vec<Container>, | ||
} | ||
|
||
#[derive(Debug, Serialize, Deserialize)] | ||
pub struct Container { | ||
image: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
pub mod gitops_models; | ||
pub mod models; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.