Skip to content

feat(argocd): add install pc-apps command#442

Open
Jcing95 wants to merge 2 commits into
mainfrom
add-install-pc-apps
Open

feat(argocd): add install pc-apps command#442
Jcing95 wants to merge 2 commits into
mainfrom
add-install-pc-apps

Conversation

@Jcing95
Copy link
Copy Markdown
Contributor

@Jcing95 Jcing95 commented May 22, 2026

No description provided.

@Jcing95 Jcing95 self-assigned this May 22, 2026
Signed-off-by: Jcing95 <23337729+Jcing95@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new beta CLI subcommand to install/upgrade the pc-apps Helm chart from a private OCI registry, including support for merging multiple values files and adding Helm registry authentication plumbing.

Changes:

  • Introduces internal/installer/pc_apps.go implementing install/upgrade logic for the pc-apps OCI Helm chart, including YAML values deep-merge.
  • Extends HelmClient with LoginRegistry and wires registry login into Helm environment creation; updates generated mocks accordingly.
  • Adds oms beta install pc-apps cobra command and corresponding documentation pages/links.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
internal/installer/pc_apps.go New installer for pc-apps OCI chart with registry auth + values merge.
internal/installer/pc_apps_test.go Ginkgo tests covering install/upgrade flows, URL validation, and values merging.
internal/installer/mocks.go Updates generated MockHelmClient to include LoginRegistry.
internal/installer/helm_client.go Adds LoginRegistry to interface and hooks registry login into Helm env setup.
docs/oms_beta_install.md Adds docs index entry for the new pc-apps install command.
docs/oms_beta_install_pc-apps.md Adds generated docs page for oms beta install pc-apps.
cli/cmd/pc_apps.go Adds cobra command implementation and flag handling for installing pc-apps.
cli/cmd/beta_install.go Registers the new pc-apps command under oms beta install.
Files not reviewed (1)
  • internal/installer/mocks.go: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +86 to +93
func (h *helmClient) LoginRegistry(_ context.Context, host, username, password string) error {
h.registryCreds = &registryCredentials{
host: host,
username: username,
password: password,
}
return nil
}
Comment thread cli/cmd/pc_apps.go
Comment on lines +96 to +101
If not set, it will be prompted interactively (hidden input).`),
Example: formatExamples("install pc-apps", []packageio.Example{
{Cmd: "--chart oci://ghcr.io/codesphere-cloud/charts/pc-apps --version 1.0.0 --username CodesphereBot", Desc: "Install a specific version (prompts for password)"},
{Cmd: "--chart oci://ghcr.io/codesphere-cloud/charts/pc-apps --username CodesphereBot -f base.yaml -f dc-overlay.yaml", Desc: "Install latest with multiple values files"},
{Cmd: "--chart oci://ghcr.io/codesphere-cloud/charts/pc-apps --username CodesphereBot --namespace custom-ns", Desc: "Install into a custom namespace"},
}),
Comment on lines +22 to +28
$ oms install pc-apps --chart oci://ghcr.io/codesphere-cloud/charts/pc-apps --version 1.0.0 --username CodesphereBot

# Install latest with multiple values files
$ oms install pc-apps --chart oci://ghcr.io/codesphere-cloud/charts/pc-apps --username CodesphereBot -f base.yaml -f dc-overlay.yaml

# Install into a custom namespace
$ oms install pc-apps --chart oci://ghcr.io/codesphere-cloud/charts/pc-apps --username CodesphereBot --namespace custom-ns
Comment thread cli/cmd/pc_apps.go
Comment on lines +22 to +29
type InstallPCAppsOpts struct {
*GlobalOptions
Chart string
Version string
Namespace string
Username string
ValuesFiles []string
}
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