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

Extend hidden_fields to allow more complicated field definitions #643

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Sep 4, 2023

  1. Extend hidden_fields to allow more complicated field definitions

    This allows us to ignore e.g. the last-applied-configuration
    annotation by specifying
    `metadata.annotations[kubectl.kubernetes.io/last-applied-configuration]`
    willthames committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    80d9316 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. Improved refactor of hide_fields to better cope

    Needed to cope with multiple levels of bracketed keys
    
    e.g. spec.template.spec[securityContext][runAsUser]
    
    and implementing that lead to a much simpler version
    that finds the first key and the rest, and deals with
    just those two.
    
    Added more tests to cover some of the new supported
    cases.
    willthames committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    4f60378 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. Improve diff_objects to better hide hidden fields

    Ensure test correctly captures that hidden fields should be hidden
    in diffs too
    willthames committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    99cfa89 View commit details
    Browse the repository at this point in the history