Skip to content

Commit 3302804

Browse files
committed
use new name in log output
Signed-off-by: Daniel Brown <[email protected]>
1 parent f0c1018 commit 3302804

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

internal/controller/kustomization_controller.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ type KustomizationReconciler struct {
9898
statusManager string
9999
NoCrossNamespaceRefs bool
100100
NoRemoteBases bool
101-
EsLogging bool
102101
FailFast bool
103102
DefaultServiceAccount string
104103
KubeConfigOpts runtimeClient.KubeConfigOptions
@@ -801,7 +800,7 @@ func (r *KustomizationReconciler) apply(ctx context.Context,
801800
if changeSet != nil && len(changeSet.Entries) > 0 {
802801
resultSet.Append(changeSet.Entries)
803802

804-
if r.EsLogging {
803+
if r.GroupChangeLog {
805804
log.Info("server-side apply for cluster definitions completed", "output", changeSet.ToGroupedMap())
806805
} else {
807806
log.Info("server-side apply for cluster definitions completed", "output", changeSet.ToMap())
@@ -831,7 +830,7 @@ func (r *KustomizationReconciler) apply(ctx context.Context,
831830
if changeSet != nil && len(changeSet.Entries) > 0 {
832831
resultSet.Append(changeSet.Entries)
833832

834-
if r.EsLogging {
833+
if r.GroupChangeLog {
835834
log.Info("server-side apply for cluster definitions completed", "output", changeSet.ToGroupedMap())
836835
} else {
837836
log.Info("server-side apply for cluster class types completed", "output", changeSet.ToMap())
@@ -862,7 +861,7 @@ func (r *KustomizationReconciler) apply(ctx context.Context,
862861
if changeSet != nil && len(changeSet.Entries) > 0 {
863862
resultSet.Append(changeSet.Entries)
864863

865-
if r.EsLogging {
864+
if r.GroupChangeLog {
866865
log.Info("server-side apply for cluster definitions completed", "output", changeSet.ToGroupedMap())
867866
} else {
868867
log.Info("server-side apply completed", "output", changeSet.ToMap(), "revision", revision)

0 commit comments

Comments
 (0)