Skip to content

Feature request: ability to process include directives recursively #4

@dudinea

Description

@dudinea

Add ability to process include directives recursively.

An example of such a use-case (from argocd-cm):

# List of Lua Scripts to introduce custom actions
  resource.customizations.actions.apps_Deployment: |
    # Lua Script to indicate which custom actions are available on the resource
    discovery.lua: |
      actions = {}
      actions["restart"] = {}
      return actions
    definitions:
      - name: restart
        # Lua Script to modify the obj
        action.lua: |
          local os = require("os")
          ...

Sould be defined as something like:

argocd-cm:

resource.customizations.actions.apps_Deployment!rtextfile: filename.yaml

filename.yaml:

discovery.lua!textfile: discovery.lua
definitions:
  - name: restart
    action.lua!textfile:  restart_action.lua

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions