Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-6769

OC Plugin (or enhancement to explain) that provides yaml/json samples/snippets

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • oc
    • None
    • False
    • None
    • False
    • Not Selected

      There are simply too many kube/openshift objects (and they change at a rapid frequency) for us to properly document and explain how to use them. This makes it hard for developers, admins and users to create properly structured objects (against the api versions that the cluster supports). 

      What is the nature and description of the request?

      Thus this proposal is to provide a mechanism (enhancement or additional plugin) to `oc` that allows users to generate samples or examples of objects (in yaml or json) so that they can be modified/patched and used to be productive with administrative/development actions. 

      Concept

      `oc explain OBJ --recurisve` already allows us to get the openapi specification of objects. 

      Thus being able to convert this to yaml/json output (feels/seems) like low hanging fruit; to produce a 'sample'; that a user could then 'patch' to fill in the right fields.

              gausingh@redhat.com Gaurav Singh
              rhn-support-edrich Eric Rich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: