Skip to content
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

feat:[CI-15236]: Added IMAGE_TAR_PATH as output variable for the plugin. #132

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Anshika2203
Copy link

@Anshika2203 Anshika2203 commented Nov 18, 2024

IMAGE_TAR_PATH is now accessible via a output variable and can also be used in STO steps as expression -
<+steps.STEP_ID.output.outputVariables.IMAGE_TAR_PATH>

Screenshot 2024-11-18 at 4 37 36 PM

@Anshika2203 Anshika2203 changed the title feat:[CI-15236]: Added PLUGIN_TAR_PATH as output variable for the plugin. feat:[CI-15236]: Added IMAGE_TAR_PATH as output variable for the plugin. Nov 18, 2024
Copy link
Member

@Ompragash Ompragash left a comment

Choose a reason for hiding this comment

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

add a validation check to ensure the directory for plugin_tar_path exists before use by making use of filepath.Dir, you can add this in if p.Build.TarPath != ""

also add some ut's to cover the same functionality for edge scenarios like in case of privileged and non-privileged k8s scenarios

Comment on lines +17 to +20

if len(output) == 0 {
return fmt.Errorf("no values to write to output file")
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if len(output) == 0 {
return fmt.Errorf("no values to write to output file")
}

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.

2 participants