Skip to content
This repository was archived by the owner on Oct 21, 2021. It is now read-only.
This repository was archived by the owner on Oct 21, 2021. It is now read-only.

to_yaml should produce valid Argo spec #22

@process0

Description

@process0

Currently the to_yaml function will produce output that is not valid to be used with argo. Examples:

api_version: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generate_name: child-
  name: ''

Running yaml.dump(sanitize_for_serialization(wf)) will produce valid spec.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: child-
  name: ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions