Skip to content

Commit

Permalink
option to BUILD_EKS_AMI
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
  • Loading branch information
dims committed Jul 4, 2023
1 parent acde55d commit 188b307
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Empty file modified hack/build-ami.sh
100644 → 100755
Empty file.
14 changes: 14 additions & 0 deletions hack/make-rules/test-e2e-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)"
build_eks_ami=${BUILD_EKS_AMI:-"false"}
if [[ ${build_eks_ami} != "false" ]]; then
${ROOT}/hack/build-ami.sh
ami_id=$(jq -r ".builds[].artifact_id" $(go env GOPATH)/src/github.com/awslabs/amazon-eks-ami/manifest.json | cut -f 2 -d ':')
cat > ${ROOT}/config/aws-instance-eks.yaml <<EOF
images:
eks-ami-126:
ami_id: ${ami_id}
instance_type: m6a.large
user_data_file: userdata.sh
EOF
fi

KUBE_ROOT="${KUBE_ROOT:-"$(go env GOPATH)/src/k8s.io/kubernetes"}"
export KUBE_ROOT

Expand Down

0 comments on commit 188b307

Please sign in to comment.