Skip to content

Commit

Permalink
project: remove pointer from project request template ref
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed Jan 17, 2019
1 parent 7e08e1f commit 5444d86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
8 changes: 6 additions & 2 deletions config/v1/types_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,24 @@ type Project struct {
Status ProjectStatus `json:"status"`
}

// TemplateReference references a project request template in a 'openshift-config' namespace.
// TemplateReference references a template in a specific namespace.
// The namespace must be specified at the point of use.
type TemplateReference struct {
// name is the metadata.name of the referenced project request template
Name string `json:"name"`
}

// ProjectSpec holds the project creation configuration.
type ProjectSpec struct {
// projectRequestMessage is the string presented to a user if they are unable to request a project via the projectrequest api endpoint
ProjectRequestMessage string `json:"projectRequestMessage"`

// projectRequestTemplate is the template to use for creating projects in response to projectrequest.
// This must point to a template in 'openshift-config' namespace. It is optional.
// If it is not specified, a default template is used.
ProjectRequestTemplate *TemplateReference `json:"projectRequestTemplate"`
//
// +optional
ProjectRequestTemplate TemplateReference `json:"projectRequestTemplate,omitempty"`
}

type ProjectStatus struct {
Expand Down
12 changes: 2 additions & 10 deletions config/v1/zz_generated.deepcopy.go

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

3 changes: 2 additions & 1 deletion config/v1/zz_generated.swagger_doc_generated.go

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

0 comments on commit 5444d86

Please sign in to comment.