Skip to content

Commit

Permalink
Add a default tail to rpk shell.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonybrice committed Apr 17, 2024
1 parent 829974c commit c92913e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 23 deletions.
2 changes: 1 addition & 1 deletion modules/cron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ timeZone: string
crontab: [...{
schedule!: string
command!: [string, ...]
args?: [...string]
args?: [...string]
}]
env: { [string]: string }
Expand Down
2 changes: 2 additions & 0 deletions modules/rpk-shell/templates/config.cue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ import (
add: *["CHOWN", "NET_BIND_SERVICE", "SETGID", "SETUID"] | [string]
}
}

command: *["/bin/sh", "-c", "tail -f /dev/null"] | [string]
}

// Instance takes the config values and outputs the Kubernetes objects.
Expand Down
23 changes: 1 addition & 22 deletions modules/rpk-shell/templates/deployment.cue
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,13 @@ import (
name: #config.metadata.name
image: #config.image.reference
imagePullPolicy: #config.image.pullPolicy
ports: [
{
name: "http"
containerPort: 80
protocol: "TCP"
},
]
readinessProbe: {
httpGet: {
path: "/"
port: "http"
}
initialDelaySeconds: 5
periodSeconds: 10
}
livenessProbe: {
tcpSocket: {
port: "http"
}
initialDelaySeconds: 5
periodSeconds: 5
}
if #config.resources != _|_ {
resources: #config.resources
}
if #config.securityContext != _|_ {
securityContext: #config.securityContext
}
command: #config.command
},
]
if #config.pod.affinity != _|_ {
Expand Down

0 comments on commit c92913e

Please sign in to comment.