Skip to content

Commit

Permalink
Update CRD API version to V1alpha6 (#384)
Browse files Browse the repository at this point in the history
Co-authored-by: Toby Pinfold <[email protected]>
Co-authored-by: Aidan Dunlop <[email protected]>
Co-authored-by: Ian <[email protected]>
  • Loading branch information
4 people authored Nov 19, 2024
1 parent 477120a commit a3f73fa
Show file tree
Hide file tree
Showing 229 changed files with 5,171 additions and 6,484 deletions.
7 changes: 7 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
We use [kubebuilder](https://github.com/kubernetes-sigs/kubebuilder) to scaffold the kubernetes controllers.
The [Kubebuilder Book](https://book.kubebuilder.io/) is a good introduction to the topic and we recommend reading it before proceeding.

Please install kubebuilder `3.15.1` before upgrading or adding new Custom Resources:
```
asdf plugin-add kubebuilder https://github.com/virtualstaticvoid/asdf-kubebuilder.git
asdf install kubebuilder 3.15.1
```
Note that we currently need to use kubebuilder version 3 or below, as [work is required to support later versions](https://github.com/sky-uk/kfp-operator/issues/381).

## Set up the development environment

Install Go by following the instructions on the [website](https://golang.org/doc/install).
Expand Down
6 changes: 0 additions & 6 deletions apis/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,3 @@ func (nv NamedValue) GetKey() string {
func (nv NamedValue) GetValue() string {
return nv.Value
}

var ResourceAnnotations = struct {
Provider string
}{
Provider: Group + "/provider",
}
37 changes: 0 additions & 37 deletions apis/config/v1alpha2/kfp_controller_config_types.go

This file was deleted.

60 changes: 0 additions & 60 deletions apis/config/v1alpha2/zz_generated.deepcopy.go

This file was deleted.

20 changes: 0 additions & 20 deletions apis/config/v1alpha3/groupversion_info.go

This file was deleted.

40 changes: 0 additions & 40 deletions apis/config/v1alpha3/kfp_controller_config_types.go

This file was deleted.

59 changes: 0 additions & 59 deletions apis/config/v1alpha3/zz_generated.deepcopy.go

This file was deleted.

20 changes: 0 additions & 20 deletions apis/config/v1alpha4/groupversion_info.go

This file was deleted.

42 changes: 0 additions & 42 deletions apis/config/v1alpha4/kfp_controller_config_types.go

This file was deleted.

10 changes: 4 additions & 6 deletions apis/config/v1alpha5/kfp_controller_config_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package v1alpha5

import (
"fmt"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
cfg "sigs.k8s.io/controller-runtime/pkg/config/v1alpha1"
)
Expand Down Expand Up @@ -31,19 +32,16 @@ type ServiceConfiguration struct {
Endpoints []Endpoint `json:"endpoints,omitempty"`
}

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:storageversion

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
type KfpControllerConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec KfpControllerConfigSpec `json:"spec,omitempty"`
cfg.ControllerManagerConfigurationSpec `json:"controller,omitempty"`
}

//+kubebuilder:object:root=true

// +kubebuilder:object:root=true
func init() {
SchemeBuilder.Register(&KfpControllerConfig{})
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Package v2 contains API Schema definitions for the config v2 API group
// +kubebuilder:object:generate=true
// +groupName=config.kubeflow.org
package v1alpha2
package v1alpha6

import (
"k8s.io/apimachinery/pkg/runtime/schema"
Expand All @@ -10,7 +10,7 @@ import (

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "config.kubeflow.org", Version: "v1alpha2"}
GroupVersion = schema.GroupVersion{Group: "config.kubeflow.org", Version: "v1alpha6"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
Expand Down
Loading

0 comments on commit a3f73fa

Please sign in to comment.