Skip to content

feat: add support for ssh_endpoint#140

Open
rxbn wants to merge 2 commits intoprojectsyn:masterfrom
containeroo:master
Open

feat: add support for ssh_endpoint#140
rxbn wants to merge 2 commits intoprojectsyn:masterfrom
containeroo:master

Conversation

@rxbn
Copy link
Copy Markdown
Contributor

@rxbn rxbn commented Feb 5, 2026

Checklist

  • The PR has a meaningful title. It will be used to auto-generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Update the documentation.
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.
  • Link this PR to related issues or PRs.

Copy link
Copy Markdown
Member

@simu simu left a comment

Choose a reason for hiding this comment

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

Hi @rxbn, I just saw this PR (shortly after creating a new release). Overall, the change looks good, I've left some comments inline.

If you rebase this onto the latest master branch, we should be able to release this.

Comment thread component/app.jsonnet
local argocd = import 'lib/argocd.libjsonnet';

local app = argocd.App('lieutenant', params.namespace);
local app = argocd.App('lieutenant', params.namespace) {
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.

This change has already been merged in #143, can you please drop the commit from this PR?

Comment on lines +14 to +19
local gh = params.githosts[name];
{
endpoint: gh.endpoint,
token: gh.token,
hostKeys: gh.host_keys,
} + if std.objectHas(gh, 'ssh_endpoint') then { sshEndpoint: gh.ssh_endpoint } else {},
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.

I'd probably write this as follows, but no hard feelings either way:

Suggested change
local gh = params.githosts[name];
{
endpoint: gh.endpoint,
token: gh.token,
hostKeys: gh.host_keys,
} + if std.objectHas(gh, 'ssh_endpoint') then { sshEndpoint: gh.ssh_endpoint } else {},
local gh = params.githosts[name];
{
endpoint: gh.endpoint,
token: gh.token,
hostKeys: gh.host_keys,
[if std.objectHas(gh, 'ssh_endpoint') then 'sshEndpoint']: std.get(gh, ssh_endpoint),
},

githosts:
your-gitlab:
endpoint: https://git.yourdomain.net/
ssh_endpoint: ssh://gitlab-ssh.yourdomain.net
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.

I'd use a callout here for the note below.

Suggested change
ssh_endpoint: ssh://gitlab-ssh.yourdomain.net
ssh_endpoint: ssh://gitlab-ssh.yourdomain.net <1>

Comment on lines 37 to +40
----

`ssh_endpoint` is optional. If omitted, the operator uses the same host as `endpoint` for SSH.
Provide a full SSH URL (for example `ssh://gitlab-ssh.example.com`) or just a host name.
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
----
`ssh_endpoint` is optional. If omitted, the operator uses the same host as `endpoint` for SSH.
Provide a full SSH URL (for example `ssh://gitlab-ssh.example.com`) or just a host name.
----
<1> `ssh_endpoint` is optional. If omitted, the operator uses the same host as `endpoint` for SSH.
Provide a full SSH URL (for example `ssh://gitlab-ssh.example.com`) or just a host name.

githosts:
your-gitlab:
endpoint: https://git.yourdomain.net/
ssh_endpoint: ssh://gitlab-ssh.yourdomain.net
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.

May not be necessary to mention the optional parameter here.

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