Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Fix tag_all pseudo policy on default-namespaced wokloads #1901

Merged
merged 1 commit into from
Apr 4, 2019

Conversation

2opremio
Copy link
Contributor

@2opremio 2opremio commented Apr 4, 2019

This fixes a regression introduced by #1442 in which applying the tag_all pseudo policy failed for workload manifests in which the namespace is omitted.

The effective namespace of the workload wasn't set after parsing, causing a mismatch in the resource identifier (the parsed resource identifier was cluster-scoped due to the lack of explicit namespace in the manifest).

This fixes a regression introduced by fluxcd#1442 in which applying the `tag_all`
pseudo policy failed for workload manifests in which the namespace is omitted.

The effective namespace of the workload wasn't set after parsing, causing a
mismatch in the resource identifier (the parsed resource identifier was
cluster-scoped due to the lack of explicit namespace in the manifest).
@2opremio 2opremio requested a review from squaremo April 4, 2019 13:39
Copy link
Member

@squaremo squaremo left a comment

Choose a reason for hiding this comment

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

Yup, looks right to me

@2opremio 2opremio merged commit 4fa5fd4 into fluxcd:master Apr 4, 2019
@2opremio 2opremio deleted the fix-all-tag-with-default-ns branch April 4, 2019 13:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants