Skip to content

Commit 54fb8ee

Browse files
authored
chore: set podService default false (#8743)
1 parent 4207df1 commit 54fb8ee

File tree

6 files changed

+11
-0
lines changed

6 files changed

+11
-0
lines changed

apis/apps/v1alpha1/cluster_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,7 @@ type ClusterComponentService struct {
12691269
// Indicates whether to generate individual Services for each Pod.
12701270
// If set to true, a separate Service will be created for each Pod in the Cluster.
12711271
//
1272+
// +kubebuilder:default=false
12721273
// +optional
12731274
PodService *bool `json:"podService,omitempty"`
12741275
}

config/crd/bases/apps.kubeblocks.io_clusters.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5144,6 +5144,7 @@ spec:
51445144
maxLength: 25
51455145
type: string
51465146
podService:
5147+
default: false
51475148
description: |-
51485149
Indicates whether to generate individual Services for each Pod.
51495150
If set to true, a separate Service will be created for each Pod in the Cluster.
@@ -13790,6 +13791,7 @@ spec:
1379013791
maxLength: 25
1379113792
type: string
1379213793
podService:
13794+
default: false
1379313795
description: |-
1379413796
Indicates whether to generate individual Services for each Pod.
1379513797
If set to true, a separate Service will be created for each Pod in the Cluster.

config/crd/bases/apps.kubeblocks.io_opsrequests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8640,6 +8640,7 @@ spec:
86408640
maxLength: 25
86418641
type: string
86428642
podService:
8643+
default: false
86438644
description: |-
86448645
Indicates whether to generate individual Services for each Pod.
86458646
If set to true, a separate Service will be created for each Pod in the Cluster.

controllers/apps/transformer_cluster_component.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,14 @@ func (c *compPhasePrecondition) match(transCtx *clusterTransformContext, dag *gr
479479
return false, client.IgnoreNotFound(err)
480480
}
481481
if comp.Generation != comp.Status.ObservedGeneration || !c.phaseExpectation(comp) {
482+
transCtx.Logger.Info("component waiting: predecessor has generation mismatch or not in upWorking state",
483+
"component", comp.Name, "predecessor", predecessor)
482484
return false, nil
483485
}
484486
// create or update if exists in DAG
485487
if dagGet(compKey) {
488+
transCtx.Logger.Info("waiting for predecessor component in DAG",
489+
"component", comp.Name, "predecessor", predecessor)
486490
return false, nil
487491
}
488492
}

deploy/helm/crds/apps.kubeblocks.io_clusters.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5144,6 +5144,7 @@ spec:
51445144
maxLength: 25
51455145
type: string
51465146
podService:
5147+
default: false
51475148
description: |-
51485149
Indicates whether to generate individual Services for each Pod.
51495150
If set to true, a separate Service will be created for each Pod in the Cluster.
@@ -13790,6 +13791,7 @@ spec:
1379013791
maxLength: 25
1379113792
type: string
1379213793
podService:
13794+
default: false
1379313795
description: |-
1379413796
Indicates whether to generate individual Services for each Pod.
1379513797
If set to true, a separate Service will be created for each Pod in the Cluster.

deploy/helm/crds/apps.kubeblocks.io_opsrequests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8640,6 +8640,7 @@ spec:
86408640
maxLength: 25
86418641
type: string
86428642
podService:
8643+
default: false
86438644
description: |-
86448645
Indicates whether to generate individual Services for each Pod.
86458646
If set to true, a separate Service will be created for each Pod in the Cluster.

0 commit comments

Comments
 (0)