Skip to content

Commit ff58c14

Browse files
committed
Rename Checkpoint v1alpha1 -> v1
1 parent d102956 commit ff58c14

8 files changed

Lines changed: 33 additions & 33 deletions

File tree

cmd/dra-example-kubeletplugin/state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333

3434
checkpointapi "sigs.k8s.io/dra-example-driver/internal/api/checkpoint"
3535
checkpointinstall "sigs.k8s.io/dra-example-driver/internal/api/checkpoint/install"
36-
checkpointv1alpha1 "sigs.k8s.io/dra-example-driver/internal/api/checkpoint/v1alpha1"
36+
checkpointv1alpha1 "sigs.k8s.io/dra-example-driver/internal/api/checkpoint/v1"
3737
"sigs.k8s.io/dra-example-driver/internal/profiles"
3838
)
3939

common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ VERSION ?=
2121
vVERSION := v$(VERSION:v%=%)
2222

2323
VENDOR := example.com
24-
APIS := $(CURDIR)/api/$(VENDOR)/resource/gpu/v1alpha1 $(CURDIR)/internal/api/checkpoint $(CURDIR)/internal/api/checkpoint/v1alpha1
24+
APIS := $(CURDIR)/api/$(VENDOR)/resource/gpu/v1alpha1 $(CURDIR)/internal/api/checkpoint $(CURDIR)/internal/api/checkpoint/v1
2525

2626
PLURAL_EXCEPTIONS = DeviceClassParameters:DeviceClassParameters
2727
PLURAL_EXCEPTIONS += GpuClaimParameters:GpuClaimParameters

internal/api/checkpoint/install/install.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ import (
2424
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
2525

2626
checkpointapi "sigs.k8s.io/dra-example-driver/internal/api/checkpoint"
27-
"sigs.k8s.io/dra-example-driver/internal/api/checkpoint/v1alpha1"
27+
v1 "sigs.k8s.io/dra-example-driver/internal/api/checkpoint/v1"
2828
)
2929

30-
// Install registers the internal and v1alpha1 checkpoint types with the given scheme.
30+
// Install registers the internal and v1 checkpoint types with the given scheme.
3131
func Install(scheme *runtime.Scheme) {
3232
utilruntime.Must(checkpointapi.AddToScheme(scheme))
33-
utilruntime.Must(v1alpha1.AddToScheme(scheme))
33+
utilruntime.Must(v1.AddToScheme(scheme))
3434
}
3535

3636
// NewScheme returns a new runtime.Scheme with all checkpoint versions registered.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ limitations under the License.
1717
// +k8s:deepcopy-gen=package
1818
// +k8s:conversion-gen=sigs.k8s.io/dra-example-driver/internal/api/checkpoint
1919

20-
// Package v1alpha1 contains the v1alpha1 serialization format for checkpoints.
20+
// Package v1 contains the v1 serialization format for checkpoints.
2121
// These types include JSON tags and are used for reading/writing files on disk.
22-
package v1alpha1
22+
package v1

internal/api/checkpoint/v1alpha1/register.go renamed to internal/api/checkpoint/v1/register.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package v1alpha1
17+
package v1
1818

1919
import (
2020
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -25,8 +25,8 @@ import (
2525
// GroupName is the group name for checkpoints.
2626
const GroupName = "checkpoint.internal.example.com"
2727

28-
// SchemeGroupVersion is the group version for v1alpha1 types.
29-
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
28+
// SchemeGroupVersion is the group version for v1 types.
29+
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
3030

3131
var (
3232
// localSchemeBuilder is used to add types and conversion functions to the scheme.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package v1alpha1
17+
package v1
1818

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

internal/api/checkpoint/v1alpha1/zz_generated.conversion.go renamed to internal/api/checkpoint/v1/zz_generated.conversion.go

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/api/checkpoint/v1alpha1/zz_generated.deepcopy.go renamed to internal/api/checkpoint/v1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)