Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit target namespace on the stage log #970

Merged
merged 2 commits into from
Oct 19, 2020
Merged

Emit target namespace on the stage log #970

merged 2 commits into from
Oct 19, 2020

Conversation

nakabonne
Copy link
Member

@nakabonne nakabonne commented Oct 19, 2020

What this PR does / why we need it:
The below log shows the contents of the manifest, so it appears to be correct:

- applied manifest: name="playground", kind="Deployment", namespace="default", apiVersion="apps/v1"

Instead, I appended target namespace info to another log.

Which issue(s) this PR fixes:

Fixes #969

Does this PR introduce a user-facing change?:

NONE

@pipecd-bot
Copy link
Collaborator

KAPETANIOS

Failed while validating Kapetanios configuration.

Details
Error: rpc error: code = NotFound desc = not found

@@ -189,7 +189,7 @@ func (e *Executor) addBuiltinAnnontations(manifests []provider.Manifest, variant
}

func (e *Executor) applyManifests(ctx context.Context, manifests []provider.Manifest) error {
e.LogPersister.Infof("Start applying %d manifests", len(manifests))
e.LogPersister.Infof("Start applying %d manifests to %q namespace", len(manifests), e.config.Input.Namespace)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will be logged when the Input.Namespace was not specified?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're quite right. Can't really say which namespace this applies to, so make sure to show when only specified.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 26.32%. This pull request does not change code coverage.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 26.32%. This pull request decreases coverage by -0.01%.

File Function Base Head Diff
pkg/app/piped/executor/kubernetes/kubernetes.go Executor.applyManifests 0.00% 0.00% +0.00%

@nghialv
Copy link
Member

nghialv commented Oct 19, 2020

Thank you.
/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by nghialv.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

@pipecd-bot pipecd-bot merged commit 37c1b24 into master Oct 19, 2020
@pipecd-bot pipecd-bot deleted the emit-namespace branch October 19, 2020 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Confusing namespace log
3 participants