Skip to content

how do I set the image for keystore-create? #715

@farnsworth2008

Description

@farnsworth2008

This morning our automation broke because ForgeOps uses the latest image from the public repo for the keystore-create job. The error seems to be an inability to find jq on the path.

Regardless, we want our scripting to always use our images.

From the documentation, it is not clear how to set the image for the keystore-create job prior to running forgeops apply. I attempted to use forgeops image with the following result:

invalid choice: 'keystore-create' (choose from 'platform', 'apps', 'ui', 'am', 'amster', 'am-config-upgrader', 'idm', 'ds', 'admin-ui', 'end-user-ui', 'login-ui', 'ig', [])

My workaround for now is to execute the following just prior to running forgeops apply. The workaround works but I was expecting to be able to use forgeops image for this.

yq ./kustomize/base/keystore-create/keystore-create-job.yaml |
yq ".spec.template.spec.initContainers[0].image=\"$am_url\"" > \
edit.yaml
mv edit.yaml ./kustomize/base/keystore-create/keystore-create-job.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions