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

     1  kind: JackalPackageConfig
     2  metadata:
     3    name: init-package-jackal-agent
     4    description: Install the jackal agent mutating webhook on a new cluster
     5  
     6  constants:
     7    - name: AGENT_IMAGE
     8      value: "###JACKAL_PKG_TMPL_AGENT_IMAGE###"
     9    - name: AGENT_IMAGE_TAG
    10      value: "###JACKAL_PKG_TMPL_AGENT_IMAGE_TAG###"
    11  
    12  components:
    13    - name: jackal-agent
    14      description: |
    15        A Kubernetes mutating webhook to enable automated URL rewriting for container
    16        images and git repository references in Kubernetes manifests. This prevents
    17        the need to manually update URLs from their original sources to the Jackal-managed
    18        docker registry and git server.
    19      required: true
    20      images:
    21        - "###JACKAL_PKG_TMPL_AGENT_IMAGE_DOMAIN######JACKAL_PKG_TMPL_AGENT_IMAGE###:###JACKAL_PKG_TMPL_AGENT_IMAGE_TAG###"
    22      manifests:
    23        - name: jackal-agent
    24          namespace: jackal
    25          files:
    26            - manifests/service.yaml
    27            - manifests/secret.yaml
    28            - manifests/deployment.yaml
    29            - manifests/webhook.yaml
    30      actions:
    31        onCreate:
    32          before:
    33            - cmd: "test \"###JACKAL_PKG_TMPL_AGENT_IMAGE_TAG###\" != \"local\" || make build-local-agent-image AGENT_IMAGE_TAG=\"###JACKAL_PKG_TMPL_AGENT_IMAGE_TAG###\" ARCH=\"###JACKAL_PKG_ARCH###\""
    34              shell:
    35                windows: pwsh
    36              dir: ../..
    37              description: Build the local agent image (if 'AGENT_IMAGE_TAG' was specified as 'local')
    38        onDeploy:
    39          after:
    40            - wait:
    41                cluster:
    42                  kind: pod
    43                  namespace: jackal
    44                  name: app=agent-hook
    45                  condition: Ready