Skip to content

Commit

Permalink
refactor kube example
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmdm committed Feb 27, 2024
1 parent 30067fc commit a5f85c4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cmd/examples/kube/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ func run() error {
WithSelector(metav1.LabelSelector().WithMatchLabels(labels)).
WithTemplate(
corev1.PodTemplateSpec().
WithLabels(labels).WithSpec(corev1.PodSpec().WithContainers(
corev1.Container().
WithName(name).
WithImage("alpine:latest").
WithCommand("watch", "echo", "hello", "world"),
)),
WithLabels(labels).
WithSpec(
corev1.PodSpec().WithContainers(
corev1.Container().
WithName(name).
WithImage("alpine:latest").
WithCommand("watch", "echo", "hello", "world"),
)),
),
)

Expand Down

0 comments on commit a5f85c4

Please sign in to comment.