-
Couldn't load subscription status.
- Fork 9
Add Azure Linux base image API. #483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add API that allows an Azure Linux image to be specified as a base] image. This is mostly just syntactic sugar around the OCI API except that the OCI artifact's signature is checked against the known Azure Linux Certificate Authority.
toolkit/tools/pkg/imagecustomizerlib/downloadimageazurelinux.go
Outdated
Show resolved
Hide resolved
toolkit/tools/pkg/imagecustomizerlib/downloadimageazurelinux.go
Outdated
Show resolved
Hide resolved
| CertificateFsPath string | ||
| } | ||
|
|
||
| func checkNotationSignature(ctx context.Context, buildDir string, remoteRepo *remote.Repository, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we consider updating this function to reuse subfunctions and improve readability?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand. I don't believe there is any duplicated code in this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current implementation is all inline, but I think breaking it down could make it clearer. Could you try refactoring it into smaller subfunctions?
| ancestor: Image Customizer | ||
| --- | ||
|
|
||
| # azureLinuxImage type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we expect customers to always use azureLinuxImage if they are using AZL images ? when should one use OCI image type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Customers should use the dedicated API. The OCI is a generic API that can be used for debug (e.g. private ACR) and/or with other distros.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a note in the OCI documentation mentioning that there is a dedicated azureLinuxImage API and provide a link to it?
Add API that allows an Azure Linux image to be specified as a base] image. This is mostly just syntactic sugar around the OCI API except that the OCI artifact's signature is checked against the known Azure Linux Certificate Authority.
Checklist