Skip to content

assets: replace embedded base64 blobs with plain files and template encoding#186

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift-virtualization:mainfrom
tiraboschi:ref_files
May 26, 2026
Merged

assets: replace embedded base64 blobs with plain files and template encoding#186
openshift-merge-bot[bot] merged 1 commit into
openshift-virtualization:mainfrom
tiraboschi:ref_files

Conversation

@tiraboschi
Copy link
Copy Markdown
Member

Extract the three opaque base64/gzip payloads from 01-swap-enable.yaml into readable plain-text files under assets/active/machine-config/01-swap-enable/. Convert the asset to a template that encodes them at render time via readAsset | b64enc (kubelet config) and readAsset | gzip | b64enc (Python scripts).

Add readAsset and gzip as custom template functions. readAsset is a package-level helper that reads directly from the embedded FS, prepending active/ internally so templates use clean relative paths. gzip is needed because sprig v3.3.0 does not include it.

@tiraboschi
Copy link
Copy Markdown
Member Author

/rebase

…ncoding

Extract the three opaque base64/gzip payloads from 01-swap-enable.yaml
into readable plain-text files under assets/active/machine-config/01-swap-enable/.
Convert the asset to a template that encodes them at render time via
readAsset | b64enc (kubelet config) and readAsset | gzip | b64enc (Python scripts).

Add readAsset and gzip as custom template functions. readAsset is a
package-level helper that reads directly from the embedded FS, prepending
active/ internally so templates use clean relative paths. gzip is needed
because sprig v3.3.0 does not include it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Simone Tiraboschi <stirabos@redhat.com>
Copy link
Copy Markdown
Member

@enp0s3 enp0s3 left a comment

Choose a reason for hiding this comment

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

@tiraboschi Looks good to me, thank you!

/lgtm

@tiraboschi
Copy link
Copy Markdown
Member Author

/approve

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 26, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tiraboschi

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

The pull request process is described here

Details 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

@openshift-merge-bot openshift-merge-bot Bot merged commit 5ea98fb into openshift-virtualization:main May 26, 2026
7 checks passed
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