标签: argo

如何使用 Argo Workflows SSO 跳过登录页面

我有一个配置了 SSO 的 Argo Workflows 实例。当我单击工作流程链接时,如果我未登录,它会将我带到登录页面,这迫使我单击“登录”按钮将我重定向到我的 SSO 提供商,然后在成功时将我重定向到工作流程。

有谁知道是否可以配置 SSO 身份验证,以便跳过登录页面并将用户直接重定向到 SSO 登录页面?我一直在浏览文档和源代码,但没有运气,我想在放弃之前我会在这里问。

single-sign-on openid-connect argo argo-workflows

7
推荐指数
1
解决办法
800
查看次数

ArgoCD 应用程序陷入同步/终止状态

我们\xe2\x80\x99在生产中面临一个奇怪的问题,其中一个应用程序陷入终止和同步状态。

\n

ArgoCD版本:2.1.7

\n

背景

\n

我们手动终止了应用程序的同步,现在应用程序陷入终止同步状态,并且禁用自动同步按钮也不起作用。

\n

注意:\n使用类似的配置创建一个新应用程序是可行的,但我们想调查当前应用程序卡住的原因。

\n

执行的步骤:

\n
    \n
  • 我们尝试从 UI 和 CLI 禁用自动同步
  • \n
  • 我们尝试终止该应用程序
  • \n
  • 我们尝试同步应用程序
  • \n
\n

已尝试的命令

\n
argocd app terminate-op APPNAME\nargocd app sync APPNAME\nargocd app sync APPNAME --force --prune \n
Run Code Online (Sandbox Code Playgroud)\n

一些日志(不确定这些是否相关):

\n
time="2022-01-07T16:19:36Z" level=debug msg="Failed to apply normalization: error in remove for path: \'/spec/preserveUnknownFields\': Unable to remove nonexistent key: preserveUnknownFields: missing value"\ntime="2022-01-07T16:19:36Z" level=debug msg="Failed to apply normalization: error in remove for path: \'/status\': Unable to remove nonexistent key: …
Run Code Online (Sandbox Code Playgroud)

argo argocd

6
推荐指数
0
解决办法
1万
查看次数

ArgoCD - 在具有多个应用程序的 monorepo 中部署一个应用程序时,所有应用程序都会重新同步触发

全部 !:)

\n

I\xe2\x80\x99m 使用具有多应用程序架构的单一存储库。

\n
- foo\n  - dev\n  - alp\n  - prd\n- bar\n  - dev\n  - alp\n  - prd\n- argocd\n  - dev\n    - foo-application (argo cd app, target revision : master, destination cluster : dev, path: foo/dev)\n    - bar-application (argo cd app, target revision : master, destination cluster : dev, path: bar/dev)\n  - alp\n    - foo-application (argo cd app, target revision : master, destination cluster: alp, path: foo/alp)\n    - bar-application (argo cd app, target revision : master, destination …
Run Code Online (Sandbox Code Playgroud)

argo argocd

6
推荐指数
1
解决办法
4364
查看次数

Argo 工作流程:如何检查先前暂停步骤的输出是否已在后续步骤的“when”表达式内提供?

在 Argo 工作流程中,我有一个循环,如果尚未提供上一步的输出,我需要继续运行循环。到目前为止,我找不到任何方法来执行这个简单的空/空检查。以下“当”表达式:

当:“'{{steps.wait-completion.outputs.parameters.result}}'==''”

永远不会按预期计算,因为如果尚未提供值,Argo 将按原样返回标签名称(不被替换),然后我得到:

'{{steps.wait-completion.outputs.parameters.result}}' == ''' 评估为 false

这是一个错误还是一个功能?我有什么想法可以从“when”表达式中执行这样的检查吗?我还尝试使用“默认”标签来设置默认值,但它似乎被挂起步骤忽略(另一个错误或另一个功能?)

我真的很感激这里的一些想法。提前致谢!

我尝试过的:

当:“'{{steps.wait-completion.outputs.parameters.result}}'==''”

我所期望的:

如果尚未提供输出参数“result”,则上述表达式的计算结果为 true。

我得到了什么:

'{{steps.wait-completion.outputs.parameters.result}}' == ''' 评估为 false

argo argo-workflows

5
推荐指数
1
解决办法
1308
查看次数

argocd:为什么 helm 应用程序不应用values.yml

我想使用 argocd 安装 helm 版本,我以声明方式定义了一个 helm 应用程序,如下所示:

\n
apiVersion: argoproj.io/v1alpha1\nkind: Application\nmetadata:\n  name: moon\n  namespace: argocd\nspec:\n  project: aerokube\n  source:\n    chart: moon2\n    repoURL: https://charts.aerokube.com/\n    targetRevision: 2.4.0\n    helm:\n      valueFiles:\n      - values.yml\n  destination:\n    server: "https://kubernetes.default.svc"\n    namespace: moon1\n  syncPolicy:\n    syncOptions:\n      - CreateNamespace=true\n
Run Code Online (Sandbox Code Playgroud)\n

我的values.yml在哪里:

\n
customIngress:\n  enabled: true\n  annotations:\n    cert-manager.io/cluster-issuer: "letsencrypt"   \n  ingressClassName: nginx\n  host: moon3.benighil-mohamed.com\n  tls:\n  - secretName: moon-tls\n    hosts:\n    - moon3.benighil-mohamed.com\nconfigs:\n  default:\n    containers:\n      vnc-server:\n        repository: quay.io/aerokube/vnc-server\n        resources:\n          limits:\n            cpu: 400m\n            memory: 512Mi\n          requests:\n            cpu: 200m\n            memory: 512Mi\n
Run Code Online (Sandbox Code Playgroud)\n

请注意,该应用程序没有考虑values.yml,并且我收到以下错误:

\n
rpc error: code …
Run Code Online (Sandbox Code Playgroud)

kubernetes argo kubernetes-helm gitops argocd

2
推荐指数
1
解决办法
6562
查看次数

Argo - 解码方法中的箭头括号是什么意思?

我尝试掌握Argo进行json解码.在文档中有解码功能的例子

extension User: Decodable {
  static func decode(j: JSON) -> Decoded<User> {
    return curry(User.init)
     <^> j <| "id"
     <*> j <| "name"
    }  
}
Run Code Online (Sandbox Code Playgroud)

是什么<^><*>意味着什么?他们之间有什么区别?

ios swift argo

0
推荐指数
1
解决办法
72
查看次数