Skip to content

Commit

Permalink
Rename the api group name to be healthcheck.config.k8s.io (#3848)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyue-101 committed Feb 28, 2023
1 parent 5cd9a99 commit 1291cfb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions healthcheck/api/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

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

import (
Expand All @@ -24,7 +24,7 @@ import (

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "healthcheck.cloud.google.com", Version: "v1alpha1"}
GroupVersion = schema.GroupVersion{Group: "config.healthcheck.kpt.dev", Version: "v1alpha1"}
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
// AddToScheme adds the types in this group-version to the given scheme.
Expand Down
6 changes: 3 additions & 3 deletions healthcheck/api/v1alpha1/healthcheck_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ type HealthCheckCondition struct {

const (
// LabelComponent indicates the component to which the health check belongs.
LabelComponent = "healthcheck.cloud.google.com/component"
LabelComponent = "config.healthcheck.kpt.dev/component"
// LabelServiceError should be set to true if the health check is service level.
// LabelServiceError should be set to false if the health check is user level.
// Example: healthcheck.cloud.google.io/serviceError: true
LabelServiceError = "healthcheck.cloud.google.com/serviceError"
// Example: config.healthcheck.kpt.dev/serviceError: true
LabelServiceError = "config.healthcheck.kpt.dev/serviceError"
)

// +kubebuilder:object:root=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.11.3
creationTimestamp: null
name: healthchecks.healthcheck.cloud.google.com
name: healthchecks.config.healthcheck.kpt.dev
spec:
group: healthcheck.cloud.google.com
group: config.healthcheck.kpt.dev
names:
kind: HealthCheck
listKind: HealthCheckList
Expand Down

0 comments on commit 1291cfb

Please sign in to comment.