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 <[email protected]>
  • Loading branch information
michal-gubricky committed Dec 19, 2023
1 parent 1bf5835 commit bc39a36
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 8 deletions.
21 changes: 19 additions & 2 deletions api/v1alpha1/openstackclusterstackrelease_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,25 @@ 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"`
// The name of the cloud to use from the clouds secret
CloudName string `json:"cloudName"`

// IdentityRef is a reference to a identity to be used when reconciling this cluster
IdentityRef OpenStackIdentityReference `json:"identityRef,omitempty"`
}

// OpenStackIdentityReference is a reference to an infrastructure
// provider identity to be used to provision cluster resources.
type OpenStackIdentityReference struct {
// 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,29 @@ 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:
description: The name of the cloud to use from the clouds secret
type: string
identityRef:
description: IdentityRef is a reference to a identity to be used when
reconciling this cluster
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,32 @@ 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:
description: The name of the cloud to use from the clouds
secret
type: string
identityRef:
description: IdentityRef is a reference to a identity to be
used when reconciling this cluster
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 bc39a36

Please sign in to comment.