Skip to content

Commit aa61ee7

Browse files
yujunzmpvl
authored andcommitted
doc/tutorial/kubernetes: fix invalid user commands
Closes #994 cuelang/cue#994 GitOrigin-RevId: 867ab688ab1d58abcc44e7583b6fdd2f6544c229 Change-Id: Ia60d93adc87d2059771df78cf00e9ecfce143e35 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9921 Reviewed-by: CUE cueckoo <cueckoo@gmail.com> Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
1 parent 67bf363 commit aa61ee7

File tree

3 files changed

+66
-218
lines changed

3 files changed

+66
-218
lines changed

doc/tutorial/kubernetes/manual/services/k8s.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ _k8sSpec: X: kubernetes: {
114114
for v in X.volume {
115115
name: v.name
116116
mountPath: v.mountPath
117-
if v.subPath != null | true {
117+
if v.subPath != null {
118118
subPath: v.subPath
119119
}
120120
if v.readOnly {

doc/tutorial/kubernetes/manual/services/ls_tool.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "strings"
55
command: ls: {
66
task: print: {
77
kind: "print"
8-
Lines = [
8+
let Lines = [
99
for x in objects {
1010
"\(x.kind) \t\(x.metadata.labels.component) \t\(x.metadata.name)"
1111
}

0 commit comments

Comments
 (0)