Skip to content

Commit

Permalink
Fix the api path to autoscaling.x-k8s.io
Browse files Browse the repository at this point in the history
  • Loading branch information
kisieland committed Sep 15, 2023
1 parent 3b08870 commit 678caa5
Show file tree
Hide file tree
Showing 30 changed files with 79 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
api-approved.kubernetes.io: https://github.com/kubernetes/autoscaler/pull/5848
controller-gen.kubebuilder.io/version: v0.13.0
name: provisioningrequests.provisioning.k8s.io
name: provisioningrequests.autoscaling.x-k8s.io
spec:
group: provisioning.k8s.io
group: autoscaling.x-k8s.io
names:
kind: ProvisioningRequest
listKind: ProvisioningRequestList
Expand Down
2 changes: 1 addition & 1 deletion cluster-autoscaler/hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ chmod +x "${CODEGEN_PKG}"/generate-internal-groups.sh
bash "${CODEGEN_PKG}"/generate-groups.sh "applyconfiguration,client,deepcopy,informer,lister" \
k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/client \
k8s.io/autoscaler/cluster-autoscaler/provisioningrequests/apis \
provisioning.k8s.io:v1beta1 \
autoscaling.x-k8s.io:v1beta1 \
--go-header-file "${SCRIPT_ROOT}"/../hack/boilerplate/boilerplate.generatego.txt

chmod -x "${CODEGEN_PKG}"/generate-groups.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ limitations under the License.
// Package v1beta1 contains definitions of Provisioning Request related objects.
// +k8s:deepcopy-gen=package
// +k8s:defaulter-gen=TypeMeta
// +groupName=provisioning.k8s.io
// +groupName=autoscaling.x-k8s.io
package v1beta1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

const (
// GroupName represents the group name for ProvisioningRequest resources.
GroupName = "provisioning.k8s.io"
GroupName = "autoscaling.x-k8s.io"
// GroupVersion represents the group name for ProvisioningRequest resources.
GroupVersion = "v1beta1"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import (
//
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:metadata:annotations="api-approved.kubernetes.io=https://github.com/kubernetes/autoscaler/pull/5848"
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type ProvisioningRequest struct {
metav1.TypeMeta `json:",inline"`
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 678caa5

Please sign in to comment.