Skip to content

Commit

Permalink
fix: rebase main
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkYuan committed Sep 4, 2023
1 parent d891380 commit 8837878
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import (
"kusionstack.io/kusion/pkg/projectstack"
)

// workloadServiceGenerator is a struct for generating service
// workload resources.
// workloadServiceGenerator is a struct for generating service workload resources.
type workloadServiceGenerator struct {
project *projectstack.Project
stack *projectstack.Stack
Expand All @@ -26,8 +25,7 @@ type workloadServiceGenerator struct {
monitoring *monitoring.Monitor
}

// NewWorkloadServiceGenerator returns a new workloadServiceGenerator
// instance.
// NewWorkloadServiceGenerator returns a new workloadServiceGenerator instance.
func NewWorkloadServiceGenerator(
project *projectstack.Project,
stack *projectstack.Stack,
Expand Down Expand Up @@ -56,8 +54,7 @@ func NewWorkloadServiceGenerator(
}, nil
}

// NewWorkloadServiceGeneratorFunc returns a new NewGeneratorFunc that
// returns a workloadServiceGenerator instance.
// NewWorkloadServiceGeneratorFunc returns a new NewGeneratorFunc that returns a workloadServiceGenerator instance.
func NewWorkloadServiceGeneratorFunc(
project *projectstack.Project,
stack *projectstack.Stack,
Expand Down Expand Up @@ -133,8 +130,8 @@ func (g *workloadServiceGenerator) Generate(spec *models.Spec) error {
}
}

labels := appconfiguration.MergeMaps(appconfiguration.UniqueAppLabels(g.project.Name, g.appName), g.service.Labels,monitoringLabels)
annotations := appconfiguration.MergeMaps(g.service.Annotations,monitoringAnnotations)
labels := appconfiguration.MergeMaps(appconfiguration.UniqueAppLabels(g.project.Name, g.appName), g.service.Labels, monitoringLabels)
annotations := appconfiguration.MergeMaps(g.service.Annotations, monitoringAnnotations)
selector := appconfiguration.UniqueAppLabels(g.project.Name, g.appName)

// Create a K8s workload object based on the app's configuration.
Expand Down

0 comments on commit 8837878

Please sign in to comment.