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

     1  kind: JackalPackageConfig
     2  metadata:
     3    name: manifests
     4    version: 0.0.1
     5  
     6  components:
     7    - name: httpd-local
     8      required: true
     9      manifests:
    10        - name: simple-httpd-deployment
    11          namespace: httpd
    12          files:
    13            # local manifests are specified relative to the `jackal.yaml` that uses them:
    14            - httpd-deployment.yaml
    15      actions:
    16        onDeploy:
    17        # the following checks were computed by viewing the success state of the package deployment
    18        # and creating `wait` actions that match
    19          after:
    20            - wait:
    21                cluster:
    22                  kind: deployment
    23                  name: httpd-deployment
    24                  namespace: httpd
    25                  condition: '{.status.readyReplicas}=2'
    26      # image discovery is supported in all manifests and charts using:
    27      # jackal prepare find-images
    28      images:
    29        - httpd:alpine3.18
    30    - name: nginx-remote
    31      required: true
    32      manifests:
    33        - name: simple-nginx-deployment
    34          namespace: nginx
    35          files:
    36            # remote manifests are specified with a URL and you can verify integrity of a manifest
    37            # by adding a sha256sum to the end of the URL, separated by an @:
    38            - https://k8s.io/examples/application/deployment.yaml@c57f73449b26eae02ca2a549c388807d49ef6d3f2dc040a9bbb1290128d97157
    39            # this sha256 can be discovered using:
    40            # jackal prepare sha256sum https://k8s.io/examples/application/deployment.yaml
    41      actions:
    42        onDeploy:
    43        # the following checks were computed by viewing the success state of the package deployment
    44        # and creating `wait` actions that match
    45          after:
    46            - wait:
    47                cluster:
    48                  kind: deployment
    49                  name: nginx-deployment
    50                  namespace: nginx
    51                  condition: available
    52      # image discovery is supported in all manifests and charts using:
    53      # jackal prepare find-images
    54      images:
    55        - nginx:1.14.2
    56    - name: podinfo-kustomize
    57      required: true
    58      manifests:
    59        - name: simple-podinfo-deployment
    60          namespace: podinfo
    61          kustomizations:
    62            # kustomizations can be specified relative to the `jackal.yaml` or as remoteBuild resources with the
    63            # following syntax: https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md:
    64            - github.com/stefanprodan/podinfo//kustomize?ref=6.4.0
    65            # while ?ref= is not a requirement, it is recommended to use a specific commit hash / git tag to
    66            # ensure that the kustomization is not changed in a way that breaks your deployment.
    67      actions:
    68        onDeploy:
    69        # the following checks were computed by viewing the success state of the package deployment
    70        # and creating `wait` actions that match
    71          after:
    72            - wait:
    73                cluster:
    74                  kind: deployment
    75                  name: podinfo
    76                  namespace: podinfo
    77                  condition: available
    78      # image discovery is supported in all manifests and charts using:
    79      # jackal prepare find-images
    80      images:
    81        - ghcr.io/stefanprodan/podinfo:6.4.0