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

     1  kind: JackalPackageConfig
     2  metadata:
     3    name: package-flavors
     4    description: Simple example to show how to use the `only.flavor` key to build package variants.
     5    version: 1.0.0
     6  
     7  components:
     8    - name: image
     9      required: true
    10      description: "Sets the Enterprise Linux flavor to Rocky Linux"
    11      only:
    12        flavor: rocky-road
    13      images:
    14        - rockylinux:9-minimal
    15      actions:
    16        onDeploy:
    17          before:
    18            - cmd: echo "rockylinux:9-minimal"
    19              setVariables:
    20                - name: IMAGE
    21  
    22    - name: image
    23      required: true
    24      description: "Sets the Enterprise Linux flavor to Oracle Linux"
    25      only:
    26        flavor: oracle-cookie-crunch
    27      images:
    28        - oraclelinux:9-slim
    29      actions:
    30        onDeploy:
    31          before:
    32            - cmd: echo "oraclelinux:9-slim"
    33              setVariables:
    34                - name: IMAGE
    35  
    36    - name: image
    37      required: true
    38      description: "Sets the Enterprise Linux flavor to Alma Linux"
    39      only:
    40        flavor: vanilla-alma-nd
    41      images:
    42        - almalinux:9-minimal
    43      actions:
    44        onDeploy:
    45          before:
    46            - cmd: echo "almalinux:9-minimal"
    47              setVariables:
    48                - name: IMAGE
    49  
    50    - name: image
    51      required: true
    52      description: "Sets the Enterprise Linux flavor to OpenSUSE"
    53      only:
    54        flavor: strawberry-suse
    55      images:
    56        - opensuse/leap:15
    57      actions:
    58        onDeploy:
    59          before:
    60            - cmd: echo "opensuse/leap:15"
    61              setVariables:
    62                - name: IMAGE
    63  
    64    - name: pod
    65      description: "The pod that runs the specified flavor of Enterprise Linux"
    66      required: true
    67      manifests:
    68        - name: enterprise-linux
    69          namespace: enterprise-linux
    70          files:
    71            - pod.yaml