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 92af321
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 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
14 changes: 7 additions & 7 deletions api/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/crd/bases/tinkerbell.org_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ spec:
description: Name is a name for the action.
type: string
namespaces:
description: Namespaces defines the Linux namespaces this container should execute in.
description: Namespace defines the Linux namespaces this container should execute in.
properties:
network:
description: Network defines the network namespace.
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/tinkerbell.org_workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ spec:
description: Name is a name for the action.
type: string
namespaces:
description: Namespaces defines the Linux namespaces this container should execute in.
description: Namespace defines the Linux namespaces this container should execute in.
properties:
network:
description: Network defines the network namespace.
Expand Down

0 comments on commit 92af321

Please sign in to comment.