Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

remove bootstrap ignition as part of rm-assets#2958

Merged
enxebre merged 1 commit intocoreos:ut2-integrationfrom
enxebre:rm-ignition
Feb 16, 2018
Merged

remove bootstrap ignition as part of rm-assets#2958
enxebre merged 1 commit intocoreos:ut2-integrationfrom
enxebre:rm-ignition

Conversation

@enxebre
Copy link
Contributor

@enxebre enxebre commented Feb 15, 2018

overwrite bootstrap ignition as part of rm-assets service

@coreosbot
Copy link

Can one of the admins verify this patch?

set -o pipefail
REGION=$(wget -q -O - http://169.254.169.254/latest/meta-data/placement/availability-zone | sed '"'"'s/[a-zA-Z]$//'"'"')
/usr/bin/aws --region="$REGION" s3 cp /tmp/assets.zip s3://"$LOCATION"
/usr/bin/aws --region="$REGION" s3 cp /tmp/assets.zip s3://"$LOCATION/assets.zip"
Copy link
Contributor

@alexsomesan alexsomesan Feb 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we actually want to invalidate both assets.zip and ignition.
Would something like echo > ignition and echo > assets.zip before each cp operation work for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't what we are doing by touch /tmp/assets.zip? I can rename if it's not clear

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless /tmp/assets.zip doesn't already exist.
In that case it just gets it's timestamps updated and ends up being uploaded to S3.
Not the right time and place to obsess about edge cases tough, so this might be nitpicking.

@enxebre enxebre merged commit 1fde22a into coreos:ut2-integration Feb 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants