mayadata-io / d-operators

Declarative patterns to write kubernetes controllers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: add clone action to recipe

AmitKumarDas opened this issue · comments

kind: Recipe
spec:
  tasks:
  - name:
    clone:
      # state will provide apiversion, kind to filter the gvk
      # name is mandatory
      state:
      generate: 
        name:
        namespace:
        nameReplicas: # these many names i.e. resources will get created
        namespaceReplicas: # these many namespaces will get created
kind: Recipe
spec:
  tasks:
  - name:
    cloneAll:
      apiVersion:
      kind:
      labelSelector: 
      generate:
        name:
        namespace:
        nameReplicas:
        namespaceReplicas:
kind: Recipe
spec:
  tasks:
  - name:
    bulkClone:
      resources:
      - apiVersion:
        kind:
      labelSelector: 
      generate:
        name:
        namespace:
        nameReplicas:
        namespaceReplicas: