RoutingTemplate

The RoutingTemplate resource contains a Go template that the controller uses to render routing configuration for OcNOS.

spec

Field

Type

Required

Description

body

string

Yes

Go template body used to render OcNOS CLI configuration. Minimum length is 1.

The following operations are blocked by validation rules and cause the resource to be rejected:

Forbidden string

Reason

os.Exit

Prevents process termination

syscall.

Prevents system-level calls

exec.Command

Prevents arbitrary command execution

os.Remove

Prevents file deletion

os.RemoveAll

Prevents recursive file deletion

ioutil.WriteFile

Prevents file writes

os.WriteFile

Prevents file writes