-
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.
- Loading branch information
Showing
6 changed files
with
166 additions
and
29 deletions.
There are no files selected for viewing
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
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,32 @@ | ||
/* | ||
Copyright © 2023 NAME HERE <EMAIL ADDRESS> | ||
*/ | ||
package cmd | ||
|
||
import ( | ||
"goff/util" | ||
|
||
"github.com/spf13/cobra" | ||
) | ||
|
||
var outputSplitDir *string | ||
|
||
// diffCmd represents the diff command | ||
var splitCmd = &cobra.Command{ | ||
Use: "split", | ||
Short: "Split manifests [manifestFile]", | ||
Args: cobra.ExactArgs(1), | ||
Long: `Split multi document yaml`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
err := util.SplitManifests(args[0], *outputSplitDir) | ||
if err != nil { | ||
panic(err) | ||
} | ||
}, | ||
} | ||
|
||
func init() { | ||
rootCmd.AddCommand(splitCmd) | ||
outputSplitDir = splitCmd.Flags().StringP("output-dir", "o", ".", "Output directory") | ||
} |
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,14 @@ | ||
version: "3.9" | ||
services: | ||
redis: | ||
image: "redis" | ||
ports: | ||
- "6379:6379" | ||
repos: | ||
image: "quay.io/argoproj/argocd:latest" | ||
command: | ||
- "--redis" | ||
- "redis:6379" | ||
ports: | ||
- "8081:8081" | ||
entrypoint: argocd-repo-server |
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