我们正在尝试在我的公司使用 ArgoCD 使用 GitOps,我们有一个主要问题:
Jenkins, our CI tool, currently pushed to our docker repo on merge of any PR with a tag relating to the git commit hash currently in use.
Edit: We would like, upon choosing a targetRevision, to get its git hash as a string to use in value overwriting the imageTag in our helm charts.
Now Option 1 is we just have it also change the imageTag in any relevant kubernetes files.
However I wonder if there …
我理解如何使用 aes,但我不理解程序化范例.
当我使用ggplot时,假设我有一个名为"animal"和"weight"的data.frame,我可以执行以下操作.
ggplot(df, aes(x=weight)) + facet_grid(~animal) + geom_histogram()
Run Code Online (Sandbox Code Playgroud)
我不明白的是,重量和动物不应该是字符串,它们只是按原样键入.我怎么能这样做?它应该是这样的:
ggplot(df, aes(x='weight')) + facet_grid('~animal') + geom_histogram()
Run Code Online (Sandbox Code Playgroud)
我不会在任何地方"宣称"体重或动物作为载体吗?这似乎......非常不寻常?这是一个宏还是某些东西让它变得"整体",它会查看df的列名,然后填补它在aes中看到这些变量名称的空白?
我想我想要的是在R中看到一些类似的函数,它可以获取未在作用域中声明的变量,以及该特性的名称,因此我可以进一步阅读并可能实现我自己的类似函数.