Skip to content

feat(k8s-deploy): add image_project input for multi-repo apps#4

Merged
chriswydra merged 1 commit into
mainfrom
feat/k8s-deploy-image-project
Jul 9, 2026
Merged

feat(k8s-deploy): add image_project input for multi-repo apps#4
chriswydra merged 1 commit into
mainfrom
feat/k8s-deploy-image-project

Conversation

@chriswydra

Copy link
Copy Markdown
Contributor

The `k8s-deploy` action passes only `APP_NAME`, `ENVIRONMENT`, `CLUSTER`, `BUILD_KEY` to the k8s-apps-config `update-app-manifest` pipeline.

But `update-app-manifest.sh` already supports `IMAGE_PROJECT` (defaults to `APP_NAME`) precisely so that a repo whose image slug differs from the k8s app name can bump the right image ref and look up the right build metadata - the documented `edr-dde` pattern (`APP_NAME=edr-dde`, `IMAGE_PROJECT=edr-dde-api`).

Because the action never sent it, multi-repo apps could only ever bump the image matching `APP_NAME` - any sibling repo would build an image that nothing consumes.

Change

  • New optional input `image_project` (defaults to `app_name`).
  • Passes `IMAGE_PROJECT` through to the pipeline: `"value": "${{ inputs.image_project || inputs.app_name }}"`.
  • Tidied the now-stale `build_key` description (metadata is a Harbor OCI artifact, Artifactory fallback).

Backwards compatible - callers that omit it get `IMAGE_PROJECT == APP_NAME`, i.e. the current behaviour.

Why now

Surfaced onboarding metadata-editor (MT-32): one k8s app fed by two repos - `metadata-editor` (web) and `metadata-editor-fastapi` (api). Without this, the FastAPI image builds and pushes to Harbor but its manifest ref can never be updated.

update-app-manifest.sh already honours IMAGE_PROJECT (defaults to APP_NAME) so a
repo whose image slug differs from the k8s app name can bump the right image ref.
The action never passed it, so multi-repo apps could only ever bump the image
matching APP_NAME. Falls back to app_name, so existing callers are unaffected.
@chriswydra
chriswydra merged commit 901562b into main Jul 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant