Skip to content

Commit 6be06a3

Browse files
committed
Fix docs YAML generation setting "kubernetes" for "swarm"
Due to a copy/paste error, commands annotated with "swarm" were incorrectly setting the "kubernetes" property. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 4c7749e commit 6be06a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/yaml/yaml.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func GenYamlCustom(cmd *cobra.Command, w io.Writer) error {
123123
cliDoc.Kubernetes = true
124124
}
125125
if _, ok := curr.Annotations["swarm"]; ok && !cliDoc.Swarm {
126-
cliDoc.Kubernetes = true
126+
cliDoc.Swarm = true
127127
}
128128
}
129129

@@ -208,7 +208,7 @@ func genFlagResult(flags *pflag.FlagSet) []cmdOption {
208208
opt.Kubernetes = true
209209
}
210210
if _, ok := flag.Annotations["swarm"]; ok {
211-
opt.Kubernetes = true
211+
opt.Swarm = true
212212
}
213213

214214
result = append(result, opt)

0 commit comments

Comments
 (0)