Skip to content

Add "kn service export" #653

@rhuss

Description

@rhuss

In what area(s)?

Describe the feature:

A kn service export should export a specific Knative service in yaml/json so that it can be easily recreated. It's different to kn service describe -o yaml as it strips all runtime specific elements like the status and metadata like the namespace. The idea is that the exported description can be easily committed to a CM system and re-created with kn service import (or kubectl apply -f if direct Kubernetes access is possible).

An extension could be to allow also an export of all attached revisions (like with --history), but that would imly also to export owner references and not sure whether revisions can be created manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions