Skip to content

Commit

Permalink
Add identityRef and cloudName into OpenStackClusterStackReleaseSpec
Browse files Browse the repository at this point in the history
Signed-off-by: michal.gubricky <michal.gubricky@dnation.cloud>
  • Loading branch information
michal-gubricky committed Dec 19, 2023
1 parent 1bf5835 commit 326c038
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 8 deletions.
16 changes: 14 additions & 2 deletions api/v1alpha1/openstackclusterstackrelease_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,20 @@ type OpenStackClusterStackReleaseSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

// Foo is an example field of OpenStackClusterStackRelease. Edit openstackclusterstackrelease_types.go to remove/update
Foo string `json:"foo,omitempty"`
IdentityRef OpenStackIdentityReference `json:"identityRef,omitempty"`
CloudName string `json:"cloudName"`

Check failure on line 32 in api/v1alpha1/openstackclusterstackrelease_types.go

View workflow job for this annotation

GitHub Actions / Lint Pull Request

File is not `gofmt`-ed with `-s` (gofmt)
}

type OpenStackIdentityReference struct {

Check warning on line 35 in api/v1alpha1/openstackclusterstackrelease_types.go

View workflow job for this annotation

GitHub Actions / Lint Pull Request

exported: exported type OpenStackIdentityReference should have comment or be unexported (revive)
// Kind of the identity. Must be supported by the infrastructure
// provider and may be either cluster or namespace-scoped.
// +kubebuilder:validation:MinLength=1
Kind string `json:"kind"`

// Name of the infrastructure identity to be used.
// Must be either a cluster-scoped resource, or namespaced-scoped
// resource the same namespace as the resource(s) being provisioned.
Name string `json:"name"`
}

// OpenStackClusterStackReleaseStatus defines the observed state of OpenStackClusterStackRelease.
Expand Down
16 changes: 16 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 @@ -40,10 +40,26 @@ 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
cloudName:
type: string
identityRef:
properties:
kind:
description: Kind of the identity. Must be supported by the infrastructure
provider and may be either cluster or namespace-scoped.
minLength: 1
type: string
name:
description: Name of the infrastructure identity to be used. Must
be either a cluster-scoped resource, or namespaced-scoped resource
the same namespace as the resource(s) being provisioned.
type: string
required:
- kind
- name
type: object
required:
- cloudName
type: object
status:
description: OpenStackClusterStackReleaseStatus defines the observed state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,28 @@ 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
cloudName:
type: string
identityRef:
properties:
kind:
description: Kind of the identity. Must be supported by
the infrastructure provider and may be either cluster
or namespace-scoped.
minLength: 1
type: string
name:
description: Name of the infrastructure identity to be
used. Must be either a cluster-scoped resource, or namespaced-scoped
resource the same namespace as the resource(s) being
provisioned.
type: string
required:
- kind
- name
type: object
required:
- cloudName
type: object
required:
- spec
Expand Down

0 comments on commit 326c038

Please sign in to comment.