👏

ArgoCDで、Githubリポジトリが追加できないとき

2023/07/01に公開

エラーメッセージ

time="2023-07-01T12:05:13Z" level=error msg="finished unary call with code Unknown" error="error creating SSH agent: \"SSH agent requested but SSH_AUTH_SOCK not-specified\"" grpc.code=Unknown grpc.method=GenerateManifest grpc.service=repository.RepoServerService grpc.start_time="2023-07-01T12:05:13Z" grpc.time_ms=0.152 span.kind=server system=grpc

HTTPSURLで設定するといけた

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: app
  namespace: argocd
spec:
  project: optional
  source:
    repoURL: https://github.com/vamdemic/app-backend.git
    path: app
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
  destination:
    server: https://kubernetes.default.svc
    namespace: app

ちなみにHelmチャートのバージョンargo-cd-5.29.1で確認

Discussion