diff --git a/pkg/app/piped/driftdetector/kubernetes/detector.go b/pkg/app/piped/driftdetector/kubernetes/detector.go index e6ebb79a13..8d560fe0c7 100644 --- a/pkg/app/piped/driftdetector/kubernetes/detector.go +++ b/pkg/app/piped/driftdetector/kubernetes/detector.go @@ -198,9 +198,6 @@ func (d *detector) checkApplication(ctx context.Context, app *model.Application, } state := makeSyncState(result, headCommit.Hash) - if state.Status == model.ApplicationSyncStatus_SYNCED { - return d.reporter.ReportApplicationSyncState(ctx, app.Id, state) - } return d.reporter.ReportApplicationSyncState(ctx, app.Id, state) } diff --git a/pkg/config/deployment_test.go b/pkg/config/deployment_test.go index b0ea97872d..8afb997882 100644 --- a/pkg/config/deployment_test.go +++ b/pkg/config/deployment_test.go @@ -189,12 +189,12 @@ func TestValidateEncryption(t *testing.T) { wantErr: false, }, { - name: "invalid because key is an empty", + name: "invalid because key is empty", encryptedSecrets: map[string]string{"": "pw"}, wantErr: true, }, { - name: "invalid because value is an empty", + name: "invalid because value is empty", encryptedSecrets: map[string]string{"password": ""}, wantErr: true, },