github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/examples/composable-packages/jackal.yaml (about)

     1  kind: JackalPackageConfig
     2  metadata:
     3    name: composable-packages
     4    description: Demo Jackal package composability
     5  
     6  components:
     7    - name: local-games-path
     8      # The component logic keys ('required', 'group', and 'default') always override those of the imported package
     9      required: true
    10      # group: ""         # the initial value overrides the child component
    11      # default: false    # the initial value overrides the child component
    12      description: "Example of a local composed package with a unique description for this component"
    13      import:
    14        # The local relative path to the folder containing this component's package definition
    15        path: ../dos-games
    16        # Example optional custom name to point to in the imported package (default is to use this component's name)
    17        name: baseline
    18      # 'name'd Jackal primitives will merge the arrays together on import:
    19      # - 'manifests' of the same name will merge namespace, files and kustomizations
    20      # - 'charts' of the same name will merge namespace, releaseName and valuesFiles
    21      # Jackal primitives without matching 'name's will be appended to the end of the primitive's list for that component.
    22      manifests:
    23        - name: multi-games
    24          files:
    25            - quake-service.yaml
    26  
    27    - name: oci-games-url
    28      # The component logic keys ('required', 'group', and 'default') always override those of the imported package
    29      # required: false   # the initial value overrides the child component
    30      # group: ""         # the initial value overrides the child component
    31      # default: false    # the initial value overrides the child component
    32      import:
    33        # The URL to the skeleton package containing this component's package definition
    34        url: oci://🦄/dos-games:1.0.0
    35        # Example optional custom name to point to in the imported package (default is to use this component's name)
    36        name: baseline
    37      # Un'name'd Jackal primitives will be appended to the end of the primitive's list for that component.
    38      actions:
    39        onDeploy:
    40          before:
    41            - cmd: ./jackal tools kubectl get -n dos-games deployment -o jsonpath={.items[0].metadata.creationTimestamp}