Skip to content

add workflow to add list of all images in gpu-operator release as asset to release#2367

Open
rahulait wants to merge 2 commits intoNVIDIA:mainfrom
rahulait:main
Open

add workflow to add list of all images in gpu-operator release as asset to release#2367
rahulait wants to merge 2 commits intoNVIDIA:mainfrom
rahulait:main

Conversation

@rahulait
Copy link
Copy Markdown
Contributor

@rahulait rahulait commented Apr 16, 2026

Description

Fixes #1266

See sample run output from a forked repo where this GHA was run: https://github.com/rahulait/gpu-operator/releases/tag/v26.3.1

Checklist

  • No secrets, sensitive information, or unrelated changes
  • Lint checks passing (make lint)
  • Generated assets in-sync (make validate-generated-assets)
  • Go mod artifacts in-sync (make validate-modules)
  • Test cases are added for new code paths

Testing

Signed-off-by: Rahul Sharma <rahulsharm@nvidia.com>
@rahulait rahulait changed the title add workflow to publish images in gpu-operator release add workflow to add all images in gpu-operator release as asset to release Apr 16, 2026
@rahulait rahulait changed the title add workflow to add all images in gpu-operator release as asset to release add workflow to add list of all images in gpu-operator release as asset to release Apr 16, 2026
@rahulait rahulait self-assigned this Apr 16, 2026
--output "${ARTIFACT_NAME}"
echo "artifact_name=${ARTIFACT_NAME}" >> "${GITHUB_OUTPUT}"
- name: Upload image list artifact
uses: actions/upload-artifact@v4
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7

with:
ref: ${{ github.event.release.tag_name }}
- name: Set up Python
uses: actions/setup-python@v5
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
uses: actions/setup-python@v5
uses: actions/setup-python@v6

Comment thread Makefile
sed '/^--/d' | \
./gpuop-cfg validate clusterpolicy --input="-"

# Generate a list of all container images required to run the GPU Operator.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
# Generate a list of all container images required to run the GPU Operator.
# Generate a list of all container images that could be deployed by the GPU Operator.

- uses: actions/checkout@v6
name: Check out code
- name: Download image list artifact
uses: actions/download-artifact@v4
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8

# See the License for the specific language governing permissions and
# limitations under the License.

"""Generate a complete list of container images required to run the GPU Operator.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
"""Generate a complete list of container images required to run the GPU Operator.
"""Generate a complete list of container images that could be pulled and deployed the GPU Operator.

)

# k8s-driver-manager sidecar
dm = driver.get("manager", {})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: instead of abbreviations, i prefer using the expanded names as variables here.

"""
images: set[str] = set()

def add(repo: str, img: str, ver: str | None) -> None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

let's choose a better name here please. add is too short and non-specific

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.

Image List for AirGap Install

3 participants