1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-06 00:48:45 +01:00
Files
installer/hack/verify-codegen.sh
staebler abca904596 rhcos: ami regions from rhcos stream at runtime
Currently, the installer relies on a generated go file for determining
the AWS region in which the RHCOS image is published. The `go generate`
directive was inadvertently removed in https://github.com/openshift/installer/pull/4582.
Rather than resurrecting the directive, this commit removes the generated
code in favor of gathering the regions directly from the rhcos stream
data when needed.

https://issues.redhat.com/browse/CORS-1838
2021-12-09 15:19:54 -05:00

16 lines
399 B
Bash
Executable File

#!/bin/sh
if [ "$IS_CONTAINER" != "" ]; then
set -xe
go generate ./pkg/types/installconfig.go
set +ex
git diff --exit-code
else
podman run --rm \
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/openshift/origin-release:golang-1.16 \
./hack/verify-codegen.sh "${@}"
fi