Skip to content

❇️ : Add image pull secret input field for deploying from existing images - #371

Merged
pdettori merged 2 commits into
rossoctl:mainfrom
cwiklik:support-remote-registry
Nov 1, 2025
Merged

pdettori merged 2 commits into
rossoctl:mainfrom
cwiklik:support-remote-registry

Conversation

@cwiklik

@cwiklik cwiklik commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor

Summary

This PR adds a new input field to the Kagenti UI that allows users to specify a custom image pull secret name when deploying Agents or MCP Servers from existing container images. The specified secret name is then added to the Component CR's imagePullSecrets field.

Example Component CR output:

spec:
  deployer:
    kubernetes:
      imageSpec:
        image: myrepo/myimage
        imageTag: v1.0.0
        imageRegistry: docker.io
        imagePullSecrets:
          - name: my-custom-secret

Motivation

Previously, users could only specify image pull secrets when building from source via registry_config. This PR extends that capability to deployments from existing images, allowing users to:

  • Deploy from private Docker registries (Quay, Docker Hub, GHCR , etc.)
  • Use custom secret names instead of hardcoded values
  • Deploy both public and private images with the same workflow

Related issue(s)

Depends on: rossoctl/operator#124
Fixes #370

@cwiklik
cwiklik requested a review from pdettori October 31, 2025 20:28

Args:
build_from_source: Boolean indicating if building from source
registry_config: Registry configuration dict (used when build_from_source=True)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If the user is deploying a container image (no build_from_source), they may also need to credentials secret. For example, if the image is us.icr.io/research3/snible/mcp-everything:v0.0.1 I need to use a secret.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Indeed and this PR fixes it. Here is the screenshot:

image

Comment thread kagenti/ui/lib/build_utils.py Outdated
repo_secret_name = st_object.text_input(
"Image Pull Secret Name (optional, leave empty for public images)",
key=f"{resource_type.lower()}_repo_secret",
help="Name of the Kubernetes secret containing credentials for private Docker registries",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
help="Name of the Kubernetes secret containing credentials for private Docker registries",
help="Name of the Kubernetes secret containing credentials for private container registries",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This PR depends on changes in the platform-operator Component CR API. There is a related PR rossoctl/operator#124 which should be merged first.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've addressed the "Docker" issues mentioned above in a new commit.

@cwiklik
cwiklik force-pushed the support-remote-registry branch from 34b0ac0 to e23d6eb Compare October 31, 2025 21:45

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@pdettori
pdettori merged commit 34147e1 into rossoctl:main Nov 1, 2025
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.

bug: When Deploying Agent from Image the Form Does Not Ask For Remote Repo Secret

3 participants