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

Strip irrelevant nodes generated by resolved nodeSelector #52

Merged
merged 1 commit into from
Oct 15, 2020

Conversation

g-pavlov
Copy link
Contributor

What this PR does / why we need it:
Documentation structures featuring nodeSelectors had some irrelevant, erroneous leftover nodes in the resolved nodes tree.
In particular some nodes can could contain contentSelector source that referenced tree GitHub object. This happened when a resolved folder contained no markdown, e.g. images or assets folders containing only multimedia files used in markdowns.
In these cases the result was a node with contentSelector referencing the folder tree object and no child nodes.
This PR introduces a post build cleanup procedure that force removes all references to tree objects and empty folder nodes.

Release note:

Fixed the reasons for warning about not being able to read from tree object when nodeSelectors resolve to empty nodes referencing folders.

@g-pavlov g-pavlov added the component/documentation Gardener Documentation label Oct 15, 2020
@g-pavlov g-pavlov self-assigned this Oct 15, 2020
@gardener-robot gardener-robot added needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Oct 15, 2020
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Oct 15, 2020
@g-pavlov g-pavlov merged commit 07ac25d into master Oct 15, 2020
@gardener-robot-ci-3 gardener-robot-ci-3 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Oct 15, 2020
@g-pavlov g-pavlov deleted the removeemptynodes branch October 15, 2020 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/documentation Gardener Documentation needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants