Skip to content

Commit

Permalink
Make the Template API namespace field singular
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Doherty <[email protected]>
  • Loading branch information
chrisdoherty4 committed Oct 25, 2023
1 parent cfd9232 commit a42b9aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/v1alpha2/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ type Action struct {
// +optional
Volumes []Volume `json:"volumes,omitempty"`

// Namespaces defines the Linux namespaces this container should execute in.
// Namespace defines the Linux namespaces this container should execute in.
// +optional
Namespaces *Namespaces `json:"namespaces,omitempty"`
Namespace *Namespace `json:"namespaces,omitempty"`
}

// Volume is a specification for mounting a volume in an action. Volumes take the form
Expand All @@ -71,7 +71,7 @@ type Volume string

// Namespace defines the Linux namespaces to use for the container.
// See https://man7.org/linux/man-pages/man7/namespaces.7.html.
type Namespaces struct {
type Namespace struct {
// Network defines the network namespace.
// +optional
Network *string `json:"network,omitempty"`
Expand Down

0 comments on commit a42b9aa

Please sign in to comment.