Skip to content

Commit

Permalink
Update OpenStackClusterStackRelease and OpenStackNodeImageRelease types
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Feder <matej.feder@dnation.cloud>
  • Loading branch information
matofeder committed Dec 21, 2023
1 parent 4086125 commit 271e0f1
Show file tree
Hide file tree
Showing 258 changed files with 33,806 additions and 1,542 deletions.
11 changes: 6 additions & 5 deletions api/v1alpha1/openstackclusterstackrelease_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ package v1alpha1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

capov1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha7"
)

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

// OpenStackClusterStackReleaseSpec defines the desired state of OpenStackClusterStackRelease.
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 *capov1.OpenStackIdentityReference `json:"identityRef,omitempty"`
}

// OpenStackClusterStackReleaseStatus defines the observed state of OpenStackClusterStackRelease.
Expand Down
20 changes: 13 additions & 7 deletions api/v1alpha1/openstacknodeimagerelease_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,30 @@ package v1alpha1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

capov1 "sigs.k8s.io/cluster-api-provider-openstack/api/v1alpha7"
)

// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

// OpenStackNodeImageReleaseSpec defines the desired state of OpenStackNodeImageRelease.
type OpenStackNodeImageReleaseSpec 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 OpenStackNodeImageRelease. Edit openstacknodeimagerelease_types.go to remove/update
Foo string `json:"foo,omitempty"`
// The name of the node image
Name string `json:"name"`
// The URL of the node image
Url string `json:"url"`
// 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 *capov1.OpenStackIdentityReference `json:"identityRef,omitempty"`
}

// OpenStackNodeImageReleaseStatus defines the observed state of OpenStackNodeImageRelease.
type OpenStackNodeImageReleaseStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
// +optional
// +kubebuilder:default:=false
Ready bool `json:"ready,omitempty"`
}

//+kubebuilder:object:root=true
Expand Down
21 changes: 16 additions & 5 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 @@ -44,10 +44,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
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,45 @@ spec:
description: OpenStackNodeImageReleaseSpec defines the desired state of
OpenStackNodeImageRelease.
properties:
foo:
description: Foo is an example field of OpenStackNodeImageRelease.
Edit openstacknodeimagerelease_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
name:
description: The name of the node image
type: string
url:
description: The URL of the node image
type: string
required:
- cloudName
- name
- url
type: object
status:
description: OpenStackNodeImageReleaseStatus defines the observed state
of OpenStackNodeImageRelease.
properties:
ready:
default: false
type: boolean
type: object
type: object
served: true
Expand Down
43 changes: 24 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ go 1.21
require (
github.com/onsi/ginkgo/v2 v2.13.2
github.com/onsi/gomega v1.30.0
k8s.io/apimachinery v0.28.3
k8s.io/client-go v0.28.3
k8s.io/apimachinery v0.28.4
k8s.io/client-go v0.28.4
sigs.k8s.io/cluster-api-provider-openstack v0.9.0
sigs.k8s.io/controller-runtime v0.16.3
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
github.com/evanphx/json-patch/v5 v5.7.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-logr/zapr v1.2.4 // indirect
Expand All @@ -30,8 +31,9 @@ require (
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/imdario/mergo v0.3.6 // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/gophercloud/gophercloud v1.7.0 // indirect
github.com/imdario/mergo v0.3.15 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
Expand All @@ -40,34 +42,37 @@ require (
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.16.0 // indirect
github.com/prometheus/client_model v0.4.0 // indirect
github.com/prometheus/client_golang v1.17.0 // indirect
github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect
github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.10.1 // indirect
github.com/prometheus/procfs v0.11.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/testify v1.8.4 // indirect
go.uber.org/goleak v1.3.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.25.0 // indirect
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.8.0 // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/oauth2 v0.14.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/term v0.14.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.14.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.30.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/api v0.28.3 // indirect
k8s.io/apiextensions-apiserver v0.28.3 // indirect
k8s.io/component-base v0.28.3 // indirect
k8s.io/api v0.28.4 // indirect
k8s.io/apiextensions-apiserver v0.28.4 // indirect
k8s.io/component-base v0.28.4 // indirect
k8s.io/klog/v2 v2.100.1 // indirect
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect
sigs.k8s.io/cluster-api v1.6.0 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)
Loading

0 comments on commit 271e0f1

Please sign in to comment.