Skip to content

Commit 1291cfb

Browse files
authored
Rename the api group name to be healthcheck.config.k8s.io (#3848)
1 parent 5cd9a99 commit 1291cfb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

healthcheck/api/v1alpha1/groupversion_info.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// Package v1alpha1 contains API Schema definitions for the healthcheck v1alpha1 API group
1616
// +kubebuilder:object:generate=true
17-
// +groupName=healthcheck.cloud.google.com
17+
// +groupName=config.healthcheck.kpt.dev
1818
package v1alpha1
1919

2020
import (
@@ -24,7 +24,7 @@ import (
2424

2525
var (
2626
// GroupVersion is group version used to register these objects
27-
GroupVersion = schema.GroupVersion{Group: "healthcheck.cloud.google.com", Version: "v1alpha1"}
27+
GroupVersion = schema.GroupVersion{Group: "config.healthcheck.kpt.dev", Version: "v1alpha1"}
2828
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
2929
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
3030
// AddToScheme adds the types in this group-version to the given scheme.

healthcheck/api/v1alpha1/healthcheck_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ type HealthCheckCondition struct {
6464

6565
const (
6666
// LabelComponent indicates the component to which the health check belongs.
67-
LabelComponent = "healthcheck.cloud.google.com/component"
67+
LabelComponent = "config.healthcheck.kpt.dev/component"
6868
// LabelServiceError should be set to true if the health check is service level.
6969
// LabelServiceError should be set to false if the health check is user level.
70-
// Example: healthcheck.cloud.google.io/serviceError: true
71-
LabelServiceError = "healthcheck.cloud.google.com/serviceError"
70+
// Example: config.healthcheck.kpt.dev/serviceError: true
71+
LabelServiceError = "config.healthcheck.kpt.dev/serviceError"
7272
)
7373

7474
// +kubebuilder:object:root=true

healthcheck/config/crd/healthcheck.cloud.google.com_healthchecks.yaml renamed to healthcheck/config/crd/config.healthcheck.kpt.dev_healthchecks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ metadata:
1919
annotations:
2020
controller-gen.kubebuilder.io/version: v0.11.3
2121
creationTimestamp: null
22-
name: healthchecks.healthcheck.cloud.google.com
22+
name: healthchecks.config.healthcheck.kpt.dev
2323
spec:
24-
group: healthcheck.cloud.google.com
24+
group: config.healthcheck.kpt.dev
2525
names:
2626
kind: HealthCheck
2727
listKind: HealthCheckList

0 commit comments

Comments
 (0)