Skip to content

Commit

Permalink
feat: add the id flag in the kardinal flow create cmd (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoporoli authored Oct 2, 2024
1 parent ff3d240 commit 09309f1
Show file tree
Hide file tree
Showing 6 changed files with 281 additions and 29 deletions.
3 changes: 3 additions & 0 deletions kardinal-cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ var (
templateYamlFile string
templateDescription string
templateArgsFile string
flowID string
)

var rootCmd = &cobra.Command{
Expand Down Expand Up @@ -641,6 +642,7 @@ func init() {
createCmd.Flags().StringSliceVarP(&serviceImagePairs, "service-image", "s", []string{}, "Extra service and respective image to include in the same flow (can be used multiple times)")
createCmd.Flags().StringVarP(&templateName, "template", "t", "", "Template name to use for the flow creation")
createCmd.Flags().StringVarP(&templateArgsFile, "template-args", "a", "", "JSON with the template arguments or path to YAML file containing template arguments")
createCmd.Flags().StringVarP(&flowID, "ID", "i", "", "Set the flow id")

deployCmd.PersistentFlags().StringVarP(&kubernetesManifestFile, "k8s-manifest", "k", "", "Path to the K8S manifest file")
deployCmd.MarkPersistentFlagRequired("k8s-manifest")
Expand Down Expand Up @@ -859,6 +861,7 @@ func createDevFlow(tenantUuid api_types.Uuid, pairsMap map[string]string, templa
}

resp, err := client.PostTenantUuidFlowCreateWithResponse(ctx, tenantUuid, api_types.PostTenantUuidFlowCreateJSONRequestBody{
FlowId: &flowID,
FlowSpec: devSpec,
TemplateSpec: templateSpec,
})
Expand Down
80 changes: 80 additions & 0 deletions libs/cli-kontrol-api/api/golang/client/client.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 09309f1

Please sign in to comment.