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

[KEP-0009] feat: add expression based assertions #576

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

Commits on Nov 27, 2024

  1. [KEP-0009] feat: add expression based assertions

    This PR adds CEL-expression based assertions to `TestAsserts`. See https://github.com/kudobuilder/kuttl/blob/main/keps/0009-expression-based-assertions.md for more details.
    
    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    77c33cd View commit details
    Browse the repository at this point in the history
  2. fix: prevent redundant client construction

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    fd5aae1 View commit details
    Browse the repository at this point in the history
  3. chore: rename Id->Ref and make linter happy

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    0e43475 View commit details
    Browse the repository at this point in the history
  4. refactor: add method for building resource ref

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    dc2b416 View commit details
    Browse the repository at this point in the history
  5. chore: add validation for resourceRefs

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    2e36db6 View commit details
    Browse the repository at this point in the history
  6. chore: make assertion syntax consistent with the KEP

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    52b4835 View commit details
    Browse the repository at this point in the history
  7. refactor: rename Validate method for TestResourceRef

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    5dcbef9 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2024

  1. chore: pre-build environment and program for expressions

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Dec 3, 2024
    Configuration menu
    Copy the full SHA
    a7e5287 View commit details
    Browse the repository at this point in the history
  2. chore: make linter happy and initialize Programs only if assertions a…

    …re present
    
    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Dec 3, 2024
    Configuration menu
    Copy the full SHA
    a85752a View commit details
    Browse the repository at this point in the history
  3. chore: incorporate review comments

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Dec 3, 2024
    Configuration menu
    Copy the full SHA
    212b993 View commit details
    Browse the repository at this point in the history
  4. chore: move RunAssertExpressions() to pkg/expressions

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Dec 3, 2024
    Configuration menu
    Copy the full SHA
    32ec715 View commit details
    Browse the repository at this point in the history
  5. refactor: move CEL program loading to a dedicated function

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Dec 3, 2024
    Configuration menu
    Copy the full SHA
    65dd813 View commit details
    Browse the repository at this point in the history
  6. refactor: move program-loading to Step out of LoadPrograms()

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Dec 3, 2024
    Configuration menu
    Copy the full SHA
    79c6f84 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2024

  1. chore: add tests for TestResourceRef

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    8ac7cb1 View commit details
    Browse the repository at this point in the history
  2. fix: correct evaluation for assertAll

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    a4ebcef View commit details
    Browse the repository at this point in the history
  3. chore: add integration tests for expressions

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    f2422ae View commit details
    Browse the repository at this point in the history
  4. chore: make linter happy

    Signed-off-by: Kumar Mallikarjuna <kumarmallikarjuna.work@gmail.com>
    kumar-mallikarjuna committed Dec 4, 2024
    Configuration menu
    Copy the full SHA
    e6b22fc View commit details
    Browse the repository at this point in the history