Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

feat: inline resources #292

Open
scottd018 opened this issue Jun 2, 2022 · 0 comments
Open

feat: inline resources #292

scottd018 opened this issue Jun 2, 2022 · 0 comments

Comments

@scottd018
Copy link
Contributor

scottd018 commented Jun 2, 2022

Add the ability to specify resources inline with the operator-builder workload configuration. This obviously is not to encourage someone to type out an entire deployment in their workload config, rather it would be useful for something like a Namespace resource where one may need to be created, but it is not desirable to manage a separate file for that resource. That would change the spec for resources to:

resources:
  - inline: |
      apiVersion: v1
      kind: Namespace
      metadata:
        name: my-namespace # +operator-builder:field:name=myField,default=my-namespace,type=string
  - file: path/to/another/resource.yaml

We should also maintain backwards compatibility and assume that the absence of a file or inline key would default to it being a file. E.g. this would still be valid:

resources:
  - path/to/legacy/resource.yaml
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant