我有一个这样的 YAML 文件 file.yaml:
<pre><code>category: fruits
some_dummy_key: value
</code></pre>
现在我想使用
YAML 文档类似于:
<pre class="lang-yaml prettyprint-override"><code>---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
me
给定一个 yaml 文件:
<pre><code>Organizations:
- &org-o1
O_Endpoints:
- o1.address:1234
- &org-p1
An
是否可以在查询中使用带有通配符的环境变量?
给定:
<pre><code>LevelA:
levelB:
- sometexthere
我想合并两个 yaml 文档,结果包含
<ul>
<li>所有映射值(最后一个优先)</li>
<li>连接数组</li>
</ul>
我有一个像这样的 YAML 文件:
<pre><code>$ yq '.' test.yaml
{
"entries": {
"entry1": {
我有一个包含数组的 YAML 文档。我想使用 mikefarah 的 <a href="https://mikefarah.gitbook.io/yq/v/v4.x/upgrading-from-v3" r
我正在尝试使用 <code>jq</code> 转换 OpenAPI 规范文件。我想'识别'模式
<pre class="lang-json prettyprint-override">
我正在尝试在 PowerShell 中运行这个 yq 命令:
<pre><code>yq eval '.. | select(has(""CK_RUN_CASE""))&
我在数组文件中有一个数组,如下所示,
<pre><code> networkPolicies:
enforced: 'true'
namespace
我最近刚开始使用 yq 工具,并且一直在努力寻找一种方法来检查 yml 文件的键中是否存在特定单词。
在我的 Mac 上,我有 <code>yq</code> 并且我想更改以下 YAML 文件:
<pre><code>---
- type: replace
path: /mypath1
使用<a href="https://mikefarah.gitbook.io/yq/" rel="nofollow noreferrer">the yq tool</a>,有没有办法让它分配/更新一个空
我有一个这样的 YAML 文件
<pre class="lang-yaml prettyprint-override"><code>---
apps_membership:
children:
apps_prometh
我有以下 yq 命令
<pre><code>yq e '.values.tags="{tag1:'value1', tag2:'value2'}"' -i my file.yam
我有这个结构:
<pre><code>foo:
image: 123
bar:
image: 456
baz:
config: "my config"
</code></pre>
并且我
我正在研究一种使用 Mike Farah 的 yq 为 kubernetes 操作 ConfigMap 的方法。
<pre><code>apiVersion: v1
kind: ConfigMap
我对 yq 2.12.0 版的就地编辑标志有一个大问题。
我们正在尝试更新我们的 .yaml 脚本之一中变量的值。以
我有一个这样结构的 .yml 文件
<pre><code>key_1:
some_other_key
owners: value
key_2:
some_other_key
owners: valu
如何使用 Mike Farah 的 YQ v4 更新具有特殊字符的字段。
例如操作如下:
<pre><code> containers: