Skip to content

Commit

Permalink
Add 'spec.template.spec' for openstackclusterstackreleasetemplate (#17)
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
Co-authored-by: Matej Feder <feder.mato@gmail.com>
  • Loading branch information
chess-knight and matofeder authored Dec 19, 2023
1 parent 4693c2d commit 117823d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 8 deletions.
9 changes: 5 additions & 4 deletions api/v1alpha1/openstackclusterstackreleasetemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ import (

// OpenstackClusterStackReleaseTemplateSpec defines the desired state of OpenstackClusterStackReleaseTemplate.
type OpenstackClusterStackReleaseTemplateSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file
Template OpenstackClusterStackReleaseTemplateResource `json:"template"`
}

// Foo is an example field of OpenstackClusterStackReleaseTemplate. Edit openstackclusterstackreleasetemplate_types.go to remove/update
Foo string `json:"foo,omitempty"`
// OpenstackClusterStackReleaseTemplateResource describes the data needed to create a OpenstackClusterStackRelease from a template.
type OpenstackClusterStackReleaseTemplateResource struct {
Spec OpenstackClusterStackReleaseSpec `json:"spec"`
}

// OpenstackClusterStackReleaseTemplateStatus defines the observed state of OpenstackClusterStackReleaseTemplate.
Expand Down
17 changes: 17 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,25 @@ spec:
description: OpenstackClusterStackReleaseTemplateSpec defines the desired
state of OpenstackClusterStackReleaseTemplate.
properties:
foo:
description: Foo is an example field of OpenstackClusterStackReleaseTemplate.
Edit openstackclusterstackreleasetemplate_types.go to remove/update
type: string
template:
description: OpenstackClusterStackReleaseTemplateResource describes
the data needed to create a OpenstackClusterStackRelease from a
template.
properties:
spec:
description: OpenstackClusterStackReleaseSpec defines the desired
state of OpenstackClusterStackRelease.
properties:
foo:
description: Foo is an example field of OpenstackClusterStackRelease.
Edit openstackclusterstackrelease_types.go to remove/update
type: string
type: object
required:
- spec
type: object
required:
- template
type: object
status:
description: OpenstackClusterStackReleaseTemplateStatus defines the observed
Expand Down

0 comments on commit 117823d

Please sign in to comment.