Skip to content

[wip] automate the capi image building and publishing#959

Closed
sayanchowdhury wants to merge 2 commits intomainfrom
sayan/capi-automation
Closed

[wip] automate the capi image building and publishing#959
sayanchowdhury wants to merge 2 commits intomainfrom
sayan/capi-automation

Conversation

@sayanchowdhury
Copy link
Copy Markdown
Member

This is a WIP PR, not yet tested.

ref flatcar/Flatcar#1104

Comment thread ci-automation/azure-sig.sh Outdated
Comment on lines +10 to +13
_="
${AZURE_CLIENT_ID}
${AZURE_CLIENT_SECRET}
"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we don't require them as env vars, we can remove this

Copy link
Copy Markdown
Member

@pothos pothos Jun 30, 2023

Choose a reason for hiding this comment

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

If you want to also support usage through manual invocation, you can move this to the else case of the block below.

Comment thread ci-automation/capi_image.sh Outdated
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# >>> This file is supposed to be SOURCED from the repository ROOT. <<<
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we don't really need sourcing, we can simplify this and expect the script to be invoked directly. Sourcing always modifies shared global state and is hard to reason about.

Comment thread ci-automation/azure-sig.sh Outdated
Comment on lines +80 to +82
if sig-image-version-exists; then
return
fi
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not the wanted behavior when we have to rerun the release step. It should replace/republish.

Comment thread ci-automation/azure-sig.sh Outdated
Comment on lines +112 to +114
if sig-image-version-exists; then
return
fi
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not the wanted behavior when we have to rerun the release step. It should replace/republish.

Comment thread ci-automation/azure-sig.sh Outdated
Comment thread ci-automation/capi_image.sh Outdated
}

function _capi_image_build_impl() {
local arch="$1"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For the high level entry point maybe let's not require the architecture to be passed from the jenkins job where it would have to have a for loop. Either this script here can build and publish arm64 or it can't because the feature is missing.



for elem in parsed_data.get('schedules', []):
print(elem.get('next').get('release'))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should filter out releases with a target in the future. The yaml entry looks like that: targetDate: 2023-07-12

Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
@John15321
Copy link
Copy Markdown
Member

Hey guys, Im just trying to clean up some old PRs and Issues. @pothos @sayanchowdhury Can we close this PR?

@sayanchowdhury
Copy link
Copy Markdown
Member Author

Let's close this PR as the recommended way is to use sysext.

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.

3 participants