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

Copying firmware files in day1 feature #1216

Conversation

TomerNewman
Copy link
Member

After making KMM's day1 feature to copy the files using an init container, we also need to support copying firmware files.
This PR adds the option to the user to add the path to the firmware files, and copy them.


In addition, this PR deleting the pod in the end of the script.


/cc @ybettan @yevgeny-shnaidman

Copy link

openshift-ci bot commented Sep 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: TomerNewman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

netlify bot commented Sep 22, 2024

Deploy Preview for openshift-kmm ready!

Name Link
🔨 Latest commit 3c6649a
🔍 Latest deploy log https://app.netlify.com/sites/openshift-kmm/deploys/66f1a21f4ab0cb00085b1e64
😎 Deploy Preview https://deploy-preview-1216--openshift-kmm.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@TomerNewman TomerNewman force-pushed the feature/copying-firmware-day1-support branch from b18e466 to 2102801 Compare September 22, 2024 13:12
@TomerNewman
Copy link
Member Author

/retest

Comment on lines +76 to +70
echo "removing kmm-pod"
podman pod rm $worker_pod_name
Copy link
Collaborator

Choose a reason for hiding this comment

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

Won't the pod be automatically removed if all its containers are using the --rm flag?

Copy link
Member Author

Choose a reason for hiding this comment

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

the pod remains with status of Exited, even though the containers were removed

@@ -21,6 +21,7 @@ spec:
Type=oneshot
TimeoutSec=10
EnvironmentFile=/etc/mco/proxy.env
Environment="FIRMWARE_FILES_PATH=/tmp/test"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would use a path that is not in the /tmp directory.
Is this working with /tmp? I think that everything in /tmp in the container is going to be overwritten by the mounted directory isn't it?

Copy link
Member Author

Choose a reason for hiding this comment

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

The unit test will pass but you're right, I will change it to a different path to make it consistent.

@TomerNewman TomerNewman force-pushed the feature/copying-firmware-day1-support branch 2 times, most recently from e5e7635 to 69c6d74 Compare September 23, 2024 09:26
After making KMM's day1 feature to copy the files using an init container,
we also need to support copying firmware files.
This PR adds the option to the user to add the path to the firmware files, and copy them.
@TomerNewman TomerNewman force-pushed the feature/copying-firmware-day1-support branch from 69c6d74 to 3c6649a Compare September 23, 2024 17:15
@TomerNewman
Copy link
Member Author

/retest

@ybettan
Copy link
Collaborator

ybettan commented Sep 24, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 24, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 6bda6ab into rh-ecosystem-edge:main Sep 24, 2024
19 checks passed
@TomerNewman TomerNewman deleted the feature/copying-firmware-day1-support branch November 6, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants