Skip to content

Commit

Permalink
feat(package): supports hostPID for package
Browse files Browse the repository at this point in the history
  • Loading branch information
YaswanthKumar-eng committed Dec 27, 2024
1 parent afc25e2 commit 78e017b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions riocli/apply/manifests/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -500,3 +500,34 @@ spec:
ros:
enabled: True
version: melodic # Required, Options: [ kinetic, melodic, noetic ]
---
apiVersion: "apiextensions.rapyuta.io/v1"
kind: "Package"
metadata:
name: "package-hostpid-enabled" # Required
version: "v1.0.0" # Required
description: "A RIO package with hostpid enabled"
labels:
app: test
spec:
runtime: device # Options: [device, cloud (default)]
cloud:
replicas: 1 # Required
executables: # Required
- name: "exec-docker"
type: docker # Options: [docker (default), preInstalled]
command: # Command supports both array and string
- "sleep infinity"
runAsBash: True
docker:
image: "busybox:latest"
pullSecret:
depends:
kind: secret
nameOrGUID: "secret-docker"
hostPID: True # Enable hostpid to give the host process namespace access to executables
environmentVars:
- name: "key1" # Required
default: "value1"
description: "An environment variable"
exposed: False
2 changes: 2 additions & 0 deletions riocli/jsonschema/schemas/package-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ definitions:
type: array
items:
"$ref": "#/definitions/deviceROSBagJobSpec"
hostPID:
type: boolean

- properties:
runtime:
Expand Down

0 comments on commit 78e017b

Please sign in to comment.