ploigos / ploigos-software-factory-operator

33 stars 22 forks source link

gitea - ensure ssh enabled and server identity persisted #72

Open itewk opened 4 years ago

itewk commented 4 years ago

See https://github.com/rhtconsulting/tssc-infra/blob/master/docs/gitea/README.adoc#configure-external-ssh

andykrohg commented 4 years ago

See https://github.com/rhtconsulting/tssc-infra/blob/master/docs/gitea/README.adoc#configure-external-ssh

@itewk I'm unable to view that repo. Could you please grant me read access?

itewk commented 4 years ago

@andykrohg done. sorry. that repo has a mix of notes and we never controled to be sure no user/passes ende dup in the notes. it was ment as a stop gap until we had something like this project which incapsulated all the notes as code.

theckang commented 3 years ago

Hello - I'm running a GitHub action to mirror a repo from GitHub into Gitea. The ssh port is not exposed on Gitea.

oc get svc gitea

Output:

NAME    TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)    AGE
gitea   ClusterIP   172.30.14.66   <none>        3000/TCP   38h

The container itself has this pod template:

Pod Template:
  Labels:           app=gitea
  Service Account:  gitea
  Containers:
   gitea:
    Image:      quay.io/redhatgov/gitea:latest
    Port:       3000/TCP
    Host Port:  0/TCP

This is the ssh link of my repo in the Gitea UI but it's not reachable:

ssh://gitea@gitea-tssc.apps.ftehp08f.eastus.aroapp.io:2022/platform/reference-quarkus-mvn_jenkins_workflow-standard-github.git

I'm using https (user/pass) as a workaround, but it would be great to expose ssh to interact with the repo.

andykrohg commented 3 years ago

AFAIK the gitea-operator doesn't currently support this, so we'll need to effect a change there. https://github.com/redhatgov/gitea-operator

Seems like a reasonable thing to enable by default

andykrohg commented 3 years ago

https://github.com/RedHatGov/gitea-operator/pull/32 got this PR opened, and testing successfully in my cluster. We still need to convert the travis build there to use github actions since we've used all of our build credits 😢