-
Notifications
You must be signed in to change notification settings - Fork 2
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
Configurable container images for cert-csi #53
Conversation
Will there be a csm-docs update describing how to use this? |
@@ -835,6 +842,12 @@ func (cts *CapacityTrackingSuite) Run(ctx context.Context, storageClass string, | |||
if sc.HasError() { | |||
return delFunc, sc.GetError() | |||
} | |||
|
|||
if cts.Image == "" { | |||
log.Info("Using default image") |
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.
Can we enhance this log by stating that 'docker.io/centos:latest' is the default image?
pkg/cmd/testcmd.go
Outdated
@@ -841,10 +1004,22 @@ func getBlockSnapCommand(globalFlags []cli.Flag) cli.Command { | |||
snapClass := c.String("volumeSnapshotClass") | |||
size := c.String("size") | |||
accessMode := c.String("access-mode") | |||
imageConfigPath := c.String("image-config") | |||
var testImage string |
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.
@rishabhatdell , what are your thoughts on incorporating a generic/common function to eliminate code duplication? It seems we've duplicated the same logic across multiple sections, checking for the same conditions in each suite.
here is the PR: dell/csm-docs#928 |
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.
LGTM
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.
LGTM
Description
This PR allows cert-csi to use custom images for creating containers by passing an image config YAML file as an argument. The YAML file should have linux(test) and postgres images name with their corresponding image URL. For example:
To use this feature, run cert-csi with the option --image-config /path/to/config.yaml along with any other arguments.
GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
Built binary and executed unit tests
![image](https://private-user-images.githubusercontent.com/120644626/287243847-531c0ff3-acd8-48b2-8af8-716e84426993.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMjM5NjUsIm5iZiI6MTczOTIyMzY2NSwicGF0aCI6Ii8xMjA2NDQ2MjYvMjg3MjQzODQ3LTUzMWMwZmYzLWFjZDgtNDhiMi04YWY4LTcxNmU4NDQyNjk5My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQyMTQxMDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zODBjYTc2YTY5MTYyOGJjNmJlYTY3YjZiZjY2ZTg1YmI0Zjk2MzYyYzkxZjc4ZDRkNGIyMTc3M2NiYmUzZjM3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.RFUxg5EnrlwUUlsAJ-JdM19cUFz0KncbARs2P88HPZs)
Executed the cert-csi to verify whether the provided image was utilized in the container build process
![287244359-8c8bdbe3-6996-4bcc-93bd-c99e8daea067](https://private-user-images.githubusercontent.com/120644626/287602920-36b151bf-052c-4011-b8cd-7db8993e9635.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMjM5NjUsIm5iZiI6MTczOTIyMzY2NSwicGF0aCI6Ii8xMjA2NDQ2MjYvMjg3NjAyOTIwLTM2YjE1MWJmLTA1MmMtNDAxMS1iOGNkLTdkYjg5OTNlOTYzNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQyMTQxMDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMTUyZTdkMzFjNTU5NDg2ZmUzODhkYmVhOWU2ZDhjYWRiNDM3NmI2MzUyZjQ3MDgzMTUzZTcxMjRmMjg2MzQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.tpJJZg2bsektCae1q14mdfGsx3xjvKqq3sHSbmxsbko)