Skip to content

Commit

Permalink
Add namespace field to function
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Sep 20, 2019
1 parent 878cd46 commit ba3fa3b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion types/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ type FunctionDeployment struct {
// ReadOnlyRootFilesystem removes write-access from the root filesystem
// mount-point.
ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem"`

// Namespace for the function to be deployed into
Namespace string `json:"namespace,omitempty"`
}

// FunctionResources Memory and CPU
Expand All @@ -72,7 +75,8 @@ type FunctionStatus struct {
// EnvProcess is the process to pass to the watchdog, if in use
EnvProcess string `json:"envProcess"`

// AvailableReplicas is the count of replicas ready to receive invocations as reported by the backend
// AvailableReplicas is the count of replicas ready to receive
// invocations as reported by the backend
AvailableReplicas uint64 `json:"availableReplicas"`

// Labels are metadata for functions which may be used by the
Expand All @@ -82,6 +86,9 @@ type FunctionStatus struct {
// Annotations are metadata for functions which may be used by the
// backend for management, orchestration, events and build tasks
Annotations *map[string]string `json:"annotations"`

// Namespace where the function can be accessed
Namespace string `json:"namespace,omitempty"`
}

// Secret for underlying orchestrator
Expand Down

0 comments on commit ba3fa3b

Please sign in to comment.