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

[OP-1708, OP-1709] Add patch types: helmDepUpdate & yaml #30

Merged
merged 21 commits into from
Apr 8, 2024

Conversation

applejag
Copy link
Member

@applejag applejag commented Mar 27, 2024

OP-1708, OP-1709

  • Updated Go to 1.22.2

  • Refactored away from line-based patching, as only the Regex patches uses that

  • Moved file field into regex (breaking change!)

    # before:
    - url: tmp/upstream-test
      patches:
        - file: go.mod   # <---
          regex:
            match: '(github.com/joho/godotenv) v.*'
            replace: '{{ index .Groups 1 }} {{ .Version }}'
    
    # after:
    - url: tmp/upstream-test
      patches:
        - regex:
            file: go.mod   # <---
            match: '(github.com/joho/godotenv) v.*'
            replace: '{{ index .Groups 1 }} {{ .Version }}'
  • Added YAML patch via VMWare's yaml-jsonpath: https://pkg.go.dev/github.com/vmware-labs/yaml-jsonpath/pkg/yamlpath

  • Added Helm dep update patch by just running helm dep update in the given directory

  • Added Helm & Git LFS to Dockerfile

  • Added config page where you can test out package configs

    image

@applejag applejag requested a review from a team as a code owner March 27, 2024 15:48
@applejag applejag added the enhancement New feature or request label Mar 27, 2024
@applejag applejag requested review from jadolg and removed request for a team March 27, 2024 15:48
@applejag applejag self-assigned this Mar 27, 2024
@applejag applejag changed the title Add patch types: helmDepUpdate & yaml [OP-1708, OP-1709] Add patch types: helmDepUpdate & yaml Mar 27, 2024
pkg/config/yamlpath.go Show resolved Hide resolved
pkg/patch/filestore.go Outdated Show resolved Hide resolved
pkg/patch/patch.go Outdated Show resolved Hide resolved
@applejag applejag requested a review from jadolg April 5, 2024 16:12
@applejag applejag merged commit 68349bb into main Apr 8, 2024
5 checks passed
@applejag applejag deleted the feature/more-patch-types branch April 8, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants