Skip to main content

Argo Workflows Client


Go Client

Kubernetes 토큰을 사용하는 경우 아래 설정이 필요합니다.

argo-workflows-values.yaml
server:
authModes:
- client

gRPC

HTTP

	ctx, client, err := apiclient.NewClientFromOpts(
apiclient.Opts{
ArgoServerOpts: apiclient.ArgoServerOpts{
HTTP1: true,
Secure: false,
URL: "localhost:2746",
},
AuthSupplier: func() string {
return "Bearer <token>"
},
},
)
  • Opts
    • ArgoServerOpts
      • HTTP1: true, HTTP Client를 사용합니다.
      • Secure: HTTPS or HTTP
      • URL: <host>:<port>
    • AuthSupplier: Authorization 헤더에 사용될 값을 반환하는 함수입니다.