Skip to content

Commit

Permalink
fix(manifests): fix manifests of resources
Browse files Browse the repository at this point in the history
  • Loading branch information
smrutisenapati authored and pallabpain committed Sep 4, 2024
1 parent 7891a5c commit 4f5e9bb
Show file tree
Hide file tree
Showing 18 changed files with 55 additions and 67 deletions.
5 changes: 2 additions & 3 deletions riocli/apply/manifests/deployment-nonros-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ metadata:
nameOrGUID: "package-nonros-cloud"
version: "v1.0.0"
project: "project-guid"
region: jp
labels:
app: test
#rapyuta.io/region: us
spec:
runtime: cloud # Options: [device, cloud]
depends:
Expand Down Expand Up @@ -41,5 +41,4 @@ spec:
enabled: true
trees:
- config01
- config02
disableSync: false
- config02
5 changes: 1 addition & 4 deletions riocli/apply/manifests/deployment-ros-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ metadata:
nameOrGUID: "package-ros-cloud"
version: "v1.0.0"
project: "project-guid"
region: jp
labels:
app: test
#rapyuta.io/region: us
spec:
runtime: cloud # Options: [device, cloud]
depends:
Expand Down Expand Up @@ -38,8 +38,6 @@ spec:
- depends:
kind: network
nameOrGUID: "network-routed-cloud"
topics:
- "/telemetry"
managedServices:
- depends:
kind: managedservice
Expand All @@ -52,7 +50,6 @@ spec:
trees:
- config01
- config02
disableSync: false
rosBagJobs:
- name: "testbag1" # Required
recordOptions: # Required
Expand Down
3 changes: 0 additions & 3 deletions riocli/apply/manifests/deployment-ros-device-no-rosbag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ spec:
trees:
- config01
- config02
disableSync: false
envArgs:
- name: TEST_KEY
value: test_value
Expand All @@ -41,6 +40,4 @@ spec:
- depends:
kind: network
nameOrGUID: "network-routed-device"
topics:
- "/telemetry"
interface: eth0
5 changes: 3 additions & 2 deletions riocli/apply/manifests/deployment-ros-device-rosbag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ spec:
- execName: exec-docker
mountPath: "/tmp" # Path on container
subPath: "/tmp" # Path on device
uid: 1000 # Optional userid for subpath
gid: 1000 # Optional groupid for subpath
perm: 755 # Optional permissions for subpath
rosNetworks:
- depends:
kind: network
Expand All @@ -32,8 +35,6 @@ spec:
- depends:
kind: network
nameOrGUID: "network-routed-device"
topics:
- "/telemetry"
interface: eth0
rosBagJobs:
- name: "testbag1" # Required
Expand Down
23 changes: 12 additions & 11 deletions riocli/apply/manifests/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ metadata:
nameOrGUID: "package-ros-cloud"
version: "v1.0.0"
project: "project-guid"
region: jp
labels:
app: test
#rapyuta.io/region: us
spec:
runtime: cloud # Options: [device, cloud]
depends:
Expand Down Expand Up @@ -38,8 +38,6 @@ spec:
- depends:
kind: network
nameOrGUID: "network-routed-cloud"
topics:
- "/telemetry"
managedServices:
- depends:
kind: managedservice
Expand All @@ -52,7 +50,6 @@ spec:
trees:
- config01
- config02
disableSync: false
rosBagJobs:
- name: "testbag1" # Required
recordOptions: # Required
Expand Down Expand Up @@ -108,9 +105,9 @@ metadata:
nameOrGUID: "package-nonros-cloud"
version: "v1.0.0"
project: "project-guid"
region: jp
labels:
app: test
#rapyuta.io/region: us
spec:
runtime: cloud # Options: [device, cloud]
depends:
Expand Down Expand Up @@ -143,7 +140,6 @@ spec:
trees:
- config01
- config02
disableSync: false
---
apiVersion: apiextensions.rapyuta.io/v1
kind: Deployment
Expand All @@ -170,6 +166,9 @@ spec:
- execName: exec-docker
mountPath: "/tmp" # Path on container
subPath: "/tmp" # Path on device
uid: 1000 # Optional userid for subpath
gid: 1000 # Optional groupid for subpath
perm: 755 # Optional permissions for subpath
rosNetworks:
- depends:
kind: network
Expand All @@ -178,8 +177,6 @@ spec:
- depends:
kind: network
nameOrGUID: "network-routed-device"
topics:
- "/telemetry"
interface: eth0
---
apiVersion: apiextensions.rapyuta.io/v1
Expand Down Expand Up @@ -207,6 +204,9 @@ spec:
- execName: exec-docker
mountPath: "/tmp" # Path on container
subPath: "/tmp" # Path on device
uid: 1000 # Optional userid for subpath
gid: 1000 # Optional groupid for subpath
perm: 755 # Optional permissions for subpath
rosNetworks:
- depends:
kind: network
Expand All @@ -215,8 +215,6 @@ spec:
- depends:
kind: network
nameOrGUID: "network-routed-device"
topics:
- "/telemetry"
interface: eth0
rosBagJobs:
- name: "testbag1" # Required
Expand Down Expand Up @@ -302,4 +300,7 @@ spec:
volumes:
- execName: exec-docker
mountPath: "/tmp" # Path on container
subPath: "/tmp" # Path on device
subPath: "/tmp" # Path on device
uid: 1000 # Optional userid for subpath
gid: 1000 # Optional groupid for subpath
perm: 755 # Optional permissions for subpath
2 changes: 1 addition & 1 deletion riocli/apply/manifests/network-native-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: "apiextensions.rapyuta.io/v1"
kind: "Network"
metadata:
name: "network-native-cloud"
region: jp
labels:
app: test
#rapyuta.io/region: us
spec:
type: "native" # Required, Options: [routed, native]
rosDistro: "melodic" # Required, Options: [kinetic, melodic, noetic]
Expand Down
3 changes: 2 additions & 1 deletion riocli/apply/manifests/network-native-device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
type: "native" # Required, Options: [routed, native]
rosDistro: "melodic" # Required, Options: [kinetic, melodic, noetic]
runtime: "device" # Required, Options: [cloud, device]
deviceGUID: "299a436f-9d7f-4bbf-adce-21be06bfbbce" # Required
depends: # Required
nameOrGuid: device-name
networkInterface: "eth0" # Required
restartPolicy: "always" # Options: [always, never, onFailure]
2 changes: 1 addition & 1 deletion riocli/apply/manifests/network-routed-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ kind: "Network"
metadata:
name: "network-routed-cloud"
project: "project-guid"
region: jp
labels:
app: test
#rapyuta.io/region: us
spec:
type: "routed" # Required, Options: [routed, native]
rosDistro: "melodic" # Required, Options: [kinetic, melodic, noetic]
Expand Down
3 changes: 2 additions & 1 deletion riocli/apply/manifests/network-routed-device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
type: "routed" # Required, Options: [routed, native]
rosDistro: "melodic" # Required, Options: [kinetic, melodic, noetic]
runtime: "device" # Required, Options: [cloud, device]
deviceGUID: "299a436f-9d7f-4bbf-adce-21be06bfbbce" # Required
depends: # Required
nameOrGuid: device-name
networkInterface: "eth0" # Required
restartPolicy: "always" # Options: [always, never, onFailure]
10 changes: 6 additions & 4 deletions riocli/apply/manifests/network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: "Network"
metadata:
name: "network-routed-cloud"
project: "project-guid"
region: jp
labels:
app: test
#rapyuta.io/region: us
spec:
type: "routed" # Required, Options: [routed, native]
rosDistro: "melodic" # Required, Options: [kinetic, melodic, noetic]
Expand All @@ -26,7 +26,8 @@ spec:
type: "routed" # Required, Options: [routed, native]
rosDistro: "melodic" # Required, Options: [kinetic, melodic, noetic]
runtime: "device" # Required, Options: [cloud, device]
deviceGUID: "0eac4320-b36e-4104-b3a9-6bdc2cd37aec" # Required
depends: # Required
nameOrGuid: device-name
networkInterface: "eth0" # Required
restartPolicy: "always" # Options: [always, never, onFailure]
---
Expand All @@ -35,9 +36,9 @@ kind: "Network"
metadata:
name: "network-native-cloud"
project: "project-guid"
region: jp
labels:
app: test
#rapyuta.io/region: us
spec:
type: "native" # Required, Options: [routed, native]
rosDistro: "melodic" # Required, Options: [kinetic, melodic, noetic]
Expand All @@ -57,6 +58,7 @@ spec:
type: "native" # Required, Options: [routed, native]
rosDistro: "melodic" # Required, Options: [kinetic, melodic, noetic]
runtime: "device" # Required, Options: [cloud, device]
deviceGUID: "0eac4320-b36e-4104-b3a9-6bdc2cd37aec" # Required
depends: # Required
nameOrGuid: device-name
networkInterface: "eth0" # Required
restartPolicy: "always" # Options: [always, never, onFailure]
6 changes: 3 additions & 3 deletions riocli/apply/manifests/package-nonros-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ spec:
executables: # Required
- name: "exec-docker"
type: docker # Options: [docker (default), preInstalled]
command:
- "sleep infinity"
command: # Command supports both array and string
- "sleep infinity"
# command: "sleep infinity"
runAsBash: True
simulation: False
limits:
cpu: 0.025 # Unit: Core Options: [Multiple of 0.025, <= 8]
memory: 128 # Unit: MB Options: [Multiple of 128, <= 32768]
Expand Down
6 changes: 3 additions & 3 deletions riocli/apply/manifests/package-nonros-device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ spec:
executables: # Required
- name: "exec-docker"
type: preInstalled # Options: [docker (default), preInstalled]
command:
- "roslaunch talker talker.launch"
command: # Command supports both array and string
- "sleep infinity"
# command: "sleep infinity"
runAsBash: True
limits: # Optional
cpu: 0.025 # Unit: Core (Optional)
Expand All @@ -30,7 +31,6 @@ spec:
failureThreshold: 1 # Minimum consecutive failures for the probe to be considered failed after having succeeded.
successThreshold: 3 # Minimum consecutive successes for the probe to be considered successful after having failed.
timeoutSeconds: 10 # Number of seconds after which the probe times out. Minimun: 10

docker:
image: "busybox:latest"
imagePullPolicy: "Always" # Always, Never, IfNotPresent(default)
Expand Down
7 changes: 3 additions & 4 deletions riocli/apply/manifests/package-ros-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ spec:
executables: # Required
- name: "exec-docker"
type: docker # Options: [docker (default), preInstalled]
command:
- "roslaunch talker talker.launch"
command: # Command supports both array and string
- "roslaunch talker talker.launch"
# command: "roslaunch talker talker.launch"
runAsBash: True
simulation: False
limits:
cpu: 0.025 # Unit: Core Options: [Multiple of 0.025, <= 8]
memory: 128 # Unit: MB Options: [Multiple of 128, <= 32768]
Expand Down Expand Up @@ -111,7 +111,6 @@ spec:
ros:
enabled: True
version: melodic # Required, Options: [ kinetic, melodic, noetic ]
inboundScopedTargeted: False
rosEndpoints:
- type: topic # Required, Options: [ topic, service, action ]
name: "/telemetry"
Expand Down
5 changes: 3 additions & 2 deletions riocli/apply/manifests/package-ros-device-no-rosbag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ spec:
executables: # Required
- name: "exec-docker"
type: docker # Options: [docker (default), preInstalled]
command: "roslaunch talker talker.launch"
command: # Command supports both array and string
- "roslaunch talker talker.launch"
# command: "roslaunch talker talker.launch"
runAsBash: True
limits: # Optional
cpu: 0.025 # Unit: Core (Optional)
Expand Down Expand Up @@ -52,7 +54,6 @@ spec:
ros:
enabled: True
version: melodic # Required, Options: [ kinetic, melodic, noetic ]
inboundScopedTargeted: False
rosEndpoints:
- type: topic # Required, Options: [ topic, service, action ]
name: "/telemetry"
Expand Down
6 changes: 3 additions & 3 deletions riocli/apply/manifests/package-ros-device-rosbag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ spec:
executables: # Required
- name: "exec-docker"
type: docker # Options: [docker (default), preInstalled]
command:
- "roslaunch talker talker.launch"
command: # Command supports both array and string
- "roslaunch talker talker.launch"
# command: "roslaunch talker talker.launch"
runAsBash: True
limits: # Optional
cpu: 0.025 # Unit: Core (Optional)
Expand Down Expand Up @@ -109,7 +110,6 @@ spec:
ros:
enabled: True
version: melodic # Required, Options: [ kinetic, melodic, noetic ]
inboundScopedTargeted: False
rosEndpoints:
- type: topic # Required, Options: [ topic, service, action ]
name: "/telemetry"
Expand Down
Loading

0 comments on commit 4f5e9bb

Please sign in to comment.