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

NE-1721: Merge 1.11.3 #118

Merged
merged 173 commits into from
Jul 23, 2024
Merged

Conversation

gcs278
Copy link

@gcs278 gcs278 commented May 9, 2024

Rebased to CoreDNS 1.11.3 (note that 1.11.2 was skipped because it was not an official release).

I made this PR using the same process as #94, #88, #76, #73, #52, #60, and #70:

  1. git remote update
  2. git checkout v1.11.3
  3. git checkout -b merge-1.11.3-tmp
  4. git checkout origin/master
  5. echo 'merge coredns/coredns v1.11.3' | git commit-tree 'merge-1.11.3-tmp^{tree}' -p HEAD -p merge-1.11.3-tmp -F -
    22d5f9e222defed49ffe0632ec224cf1b4f6c8a8
  6. git branch merge-1.11.3 22d5f9e222defed49ffe0632ec224cf1b4f6c8a8
  7. git checkout merge-1.11.3
  8. git rev-list --reverse --no-merges a63105089cf042df50b79c6ff4145aee7af2f83b..origin/master | git cherry-pick --stdin
    Note: a631050 is the merge commit from the last merge OCPBUGS-13968: Merge 1.11.1 #94
  9. My merge commit from the above process was commit 23fa201

Before the rebase, we had the following commits:

$ git --no-pager log --oneline --no-merges --no-decorate a63105089cf042df50b79c6ff4145aee7af2f83b..origin/master
8eab9cb1d UPSTREAM: <carry>: openshift: Bump the version of ocp_dnsnameresolver external plugin
c87f74bc4 UPSTREAM: 6692: openshift: Fix OCPBUGS-34619
2637e6580 Updating coredns-container image to be consistent with ART for 4.17 Reconciling with https://github.com/openshift/ocp-build-data/tree/4c1326094222f9209876f06833179a1b9178faf7/images/coredns.yml
c442a0b59 Updating coredns-container image to be consistent with ART for 4.17 Reconciling with https://github.com/openshift/ocp-build-data/tree/0a1310d4df1f00e3e218da6e356585997c7c0178/images/coredns.yml
583929976 UPSTREAM: <carry>: Address CVE-2023-49295 and CVE-2024-22189
6b897ee50 UPSTREAM: <carry>: openshift: Move ocp_dnsnameresolver before cache in plugin chaining order
7a9d9ea62 UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin
ad20b18fa Updating coredns-container image to be consistent with ART for 4.16 Reconciling with https://github.com/openshift/ocp-build-data/tree/16fcb965e08aba14bb4ea6caaeeaa99fe31141bd/images/coredns.yml
37a9afe69 UPSTREAM: 6277: openshift: Fix OCPBUGS-27397
2eea6bfc6 Updating coredns-container image to be consistent with ART for 4.16 Reconciling with https://github.com/openshift/ocp-build-data/tree/af2133c5194e28075efb48f4b508a98759b079d2/images/coredns.yml
59f7d2f51 UPSTREAM: 6354: openshift: Fix OCPBUGS-15755
c0451cddd UPSTREAM: <carry>: openshift: Address CVE-2023-39325
89d7d8c9a Updating coredns images to be consistent with ART Reconciling with https://github.com/openshift/ocp-build-data/tree/da6a5af1fa96762cc8410f09fc28c0457280f59a/images/coredns.yml
5378301ac UPSTREAM: <carry>: openshift: Disable dependabot
6a6aca3cc UPSTREAM: <carry>: openshift: Vendor required modules
a5843d819 UPSTREAM: <carry>: openshift: .gitignore: Properly ignore coredns binary
4c6110d88 UPSTREAM: <carry>: openshift: Make coredns exclusion more specific
78b2bdbb2 UPSTREAM: <carry>: openshift: Add a `make test` target
f5d39cfca UPSTREAM: <carry>: openshift: Add product build config
c6cbe9feb UPSTREAM: <carry>: openshift: Add OWNERS

Rebase Interactions:

  1. error: could not apply 5378301... UPSTREAM: : openshift: Disable dependabot
    CONFLICT (modify/delete): .github/dependabot.yml deleted in 5378301ac (UPSTREAM: <carry>: openshift: Disable dependabot) and modified in HEAD.  Version HEAD of .github/dependabot.yml left in tree.
    
    • Upstream modified .github/dependabot.yml while this commit deletes it.
    • Resolved by deleting .github/dependabot.yml again
  2. error: could not apply c0451cd... UPSTREAM: : openshift: Address CVE-2023-39325
    CONFLICT (content): Merge conflict in go.mod
    CONFLICT (content): Merge conflict in go.sum
    
    • I skipped this cherry-pick with git cherry-pick --skip since 1.11.3 now vendors x/net v0.23.0 and this commit is no longer needed, effectively dropping this carry patch.
  3. Empty commit due to UPSTREAM: 6354: openshift: Fix OCPBUGS-15755 now in v1.11.3 upstream:
    nothing to commit, working tree clean
    The previous cherry-pick is now empty, possibly due to conflict resolution.
    If you wish to commit it anyway, use:
    
      git commit --allow-empty
    
    Otherwise, please use 'git cherry-pick --skip'
    
    • Did a git cherry-pick --skip to just skip this. Note that the cherry-pick output was very terse (it didn't tell me what commit was empty...that was confusing).
  4. Empty commit due to UPSTREAM: 6277: openshift: Fix OCPBUGS-27397 now in v1.11.3 upstream:
    nothing to commit, working tree clean
    The previous cherry-pick is now empty, possibly due to conflict resolution.
    If you wish to commit it anyway, use:
    
        git commit --allow-empty
    
    Otherwise, please use 'git cherry-pick --skip'
    
    • Did a git cherry-pick --skip to just skip this. Note that the cherry-pick output was very terse (it didn't tell me what commit was empty...that was confusing).
  5. error: could not apply 7a9d9ea... UPSTREAM: : openshift: Add ocp_dnsnameresolver external plugin
    CONFLICT (content): Merge conflict in go.mod
    CONFLICT (content): Merge conflict in go.sum
    
    • Accepted github.com/openshift/coredns-ocp-dnsnameresolver v0.0.0-20240326070009-fc0f61729b14 from 7a9d9ea and ensured other dependencies were met.
    • Ran go mod tidy and go mod vendor with merged go.mod
  6. error: could not apply 5839299... UPSTREAM: : Address CVE-2023-49295 and CVE-2024-22189
    CONFLICT (content): Merge conflict in go.mod
    CONFLICT (content): Merge conflict in go.sum
    CONFLICT (rename/delete): vendor/github.com/golang/mock/mockgen/version.1.11.go renamed to vendor/go.opentelemetry.io/otel/version.go in HEAD, but deleted in 583929976 (UPSTREAM: <carry>: Address CVE-2023-49295 and CVE-2024-22189).
     CONFLICT (modify/delete): vendor/go.opentelemetry.io/otel/version.go deleted in 583929976 (UPSTREAM: <carry>: Address CVE-2023-49295 and CVE-2024-22189) and modified in HEAD.  Version HEAD of vendor/go.opentelemetry.io/otel/version.go left in tree.
    CONFLICT (content): Merge conflict in vendor/golang.org/x/mod/modfile/rule.go
    CONFLICT (content): Merge conflict in vendor/modules.txt
    
    • I skipped this cherry-pick with git cherry-pick --skip since 1.11.3 now vendors quic-go v0.42.0 and this commit is no longer needed, effectively dropping this carry patch.
  7. error: could not apply 8eab9cb... UPSTREAM: : openshift: Bump the version of ocp_dnsnameresolver external plugin
    CONFLICT (content): Merge conflict in go.mod
    
    • Accepted github.com/openshift/coredns-ocp-dnsnameresolver v0.0.0-20240712094134-af651cec05d1 from 8eab9cb
    • Ran go mod tidy and go mod vendor with merged go.mod

Actions I took after doing Rebase:

  1. I squashed the following commit into the existing UPSTREAM: <carry>: openshift: Add product build config commit:
    ad20b18fa Updating coredns-container image to be consistent with ART for 4.16 Reconciling with https://github.com/openshift/ocp-build-data/tree/16fcb965e08aba14bb4ea6caaeeaa99fe31141bd/images/coredns.yml
    2eea6bfc6 Updating coredns-container image to be consistent with ART for 4.16 Reconciling with https://github.com/openshift/ocp-build-data/tree/af2133c5194e28075efb48f4b508a98759b079d2/images/coredns.yml
    89d7d8c9a Updating coredns images to be consistent with ART Reconciling with https://github.com/openshift/ocp-build-data/tree/da6a5af1fa96762cc8410f09fc28c0457280f59a/images/coredns.yml
    1c65c490f Updating coredns-container image to be consistent with ART for 4.17 Reconciling with https://github.com/openshift/ocp-build-data/tree/0a1310d4df1f00e3e218da6e356585997c7c0178/images/coredns.yml
    8a5c3fbf5 Updating coredns-container image to be consistent with ART for 4.17 Reconciling with https://github.com/openshift/ocp-build-data/tree/4c1326094222f9209876f06833179a1b9178faf7/images/coredns.yml
    
  2. I squashed UPSTREAM: <carry>: Move ocp_dnsnameresolver before cache in plugin chaining order and UPSTREAM: <carry>: openshift: Bump the version of ocp_dnsnameresolver external plugin into UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin to simplify future rebases:
    50a1e581c UPSTREAM: <carry>: openshift: Move ocp_dnsnameresolver before cache in plugin chaining order
    c9bba25a4 UPSTREAM: <carry>: openshift: Bump the version of ocp_dnsnameresolver external plugin
    
  3. I vendored changed in the UPSTREAM: <carry>: openshift: Vendor required modules commit to ensure this commit contains the updated vendor packages from upstream:
    go mod tidy
    go mod vendor
    
    • Caused another merge conflict with UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin, but that was resolved by running go mod tidy and go mod vendor again in that commit.
      $ git rebase --continue 
      Auto-merging vendor/k8s.io/client-go/applyconfigurations/policy/v1beta1/podsecuritypolicy.go
      CONFLICT (rename/rename): vendor/k8s.io/client-go/applyconfigurations/policy/v1beta1/podsecuritypolicy.go renamed to vendor/k8s.io/clientgo/applyconfigurations/admissionregistration/v1beta1/validatingadmissionpolicybinding.go in 
      HEAD and to vendor/github.com/openshift/client-go/network/applyconfigurations/network/v1alpha1/dnsnameresolver.go in 006eed0a8 (UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin).
      Auto-merging vendor/modules.txt
      error: could not apply 006eed0a8... UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin
      $ go mod tidy
      $ go mod vendor
      $ git add -A
      $ go rebase --continue
      
  4. I rearranged the order of UPSTREAM: 6692: openshift: Fix OCPBUGS-34619 and UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin to ensure ocp_dnsnameresolver comes last because OCPBUGS-34619 fixes the go generate coredns.go generation for ocp_dnsnameresolver.
    • If OCPBUGS-34619 didn't come first, then the commit for ocp_dnsnameresolver will cause incorrect generation of the core/plugin/zplugin.go. The zplugin.go file was regenerated in 8eab9cb
    • See d5789eb#r1635284124

dependabot bot and others added 30 commits August 21, 2023 09:32
coredns#6284)

Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](actions/dependency-review-action@7d90b4f...f6fff72)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…oredns#6285)

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3.6.0...v3.7.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.27.4 to 0.28.0.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](kubernetes/client-go@v0.27.4...v0.28.0)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…coredns#6279)

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.322 to 1.44.327.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](aws/aws-sdk-go@v1.44.322...v1.44.327)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…oredns#6282)

Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.37.4 to 0.38.0.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Changelog](https://github.com/quic-go/quic-go/blob/master/Changelog.md)
- [Commits](quic-go/quic-go@v0.37.4...v0.38.0)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* plugin/forward add ignore_server_failure for masking upstream server faults

Signed-off-by: schou <[email protected]>

* Switch from a ignore_server_fail to a rewrite rcode type.

Signed-off-by: schou <[email protected]>

* trim down the tests

Signed-off-by: schou <[email protected]>

* fixing readme TTL and using map for rcode

Signed-off-by: schou <[email protected]>

* add newline

Signed-off-by: schou <[email protected]>

---------

Signed-off-by: schou <[email protected]>
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.28.0 to 0.28.1.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](kubernetes/client-go@v0.28.0...v0.28.1)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…dns#6293)

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.136.0 to 0.138.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](googleapis/google-api-go-client@v0.136.0...v0.138.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…coredns#6291)

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.327 to 1.44.332.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](aws/aws-sdk-go@v1.44.327...v1.44.332)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…redns#6301)

Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.11.2 to 0.12.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@41f05d9...fbd1636)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…oredns#6297)

Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.38.0 to 0.38.1.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Changelog](https://github.com/quic-go/quic-go/blob/master/Changelog.md)
- [Commits](quic-go/quic-go@v0.38.0...v0.38.1)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…oredns#6298)

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.332 to 1.45.2.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](aws/aws-sdk-go@v1.44.332...v1.45.2)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.11.0 to 0.12.0.
- [Commits](golang/sys@v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…6309)

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.12.0 to 0.13.0.
- [Commits](golang/crypto@v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
coredns#6312)

Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3.0.8 to 3.1.0.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](actions/dependency-review-action@f6fff72...6c5ccda)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…s#6311)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@0b7f8ab...a8a3f3a)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…redns#6308)

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.45.2 to 1.45.6.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](aws/aws-sdk-go@v1.45.2...v1.45.6)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…dns#6307)

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.138.0 to 0.139.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](googleapis/google-api-go-client@v0.138.0...v0.139.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ns#6306)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.57.0 to 1.58.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.57.0...v1.58.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
….1 (coredns#6310)

Bumps gopkg.in/DataDog/dd-trace-go.v1 from 1.54.0 to 1.54.1.

---
updated-dependencies:
- dependency-name: gopkg.in/DataDog/dd-trace-go.v1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](golang/net@v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
….0 (coredns#6340)

Bumps gopkg.in/DataDog/dd-trace-go.v1 from 1.54.1 to 1.55.0.

---
updated-dependencies:
- dependency-name: gopkg.in/DataDog/dd-trace-go.v1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…oredns#6358)

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.45.6 to 1.45.25.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](aws/aws-sdk-go@v1.45.6...v1.45.25)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…oredns#6362)

Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.38.1 to 0.39.1.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Changelog](https://github.com/quic-go/quic-go/blob/master/Changelog.md)
- [Commits](quic-go/quic-go@v0.38.1...v0.39.1)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@rfredette
Copy link

/approve
/lgtm

Thanks!

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 22, 2024
Copy link

openshift-ci bot commented Jul 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rfredette

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 22, 2024
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD d95440d and 2 for PR HEAD ccc7fc0 in total

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 22, 2024
@alebedev87
Copy link

@gcs278: sorry about the rebase after #122, I should let this one go first.

gcs278 and others added 10 commits July 22, 2024 13:16
Add an OWNERS file so that we can maintain this fork.

Co-authored-by: Andrey Lebedev <[email protected]>
Co-authored-by: Benjamin Bennett <[email protected]>
Co-authored-by: Miciah Dashiel Butler Masters <[email protected]>
Co-authored-by: Stephen Greene <[email protected]>
Co-authored-by: Grant Spence <[email protected]>
Add Dockerfiles and .ci-operator.yaml.

Co-authored-by: Antoni Segura Puimedon <[email protected]>
Co-authored-by: Dan Mace <[email protected]>
Co-authored-by: AOS Automation Release Team <[email protected]>
Co-authored-by: Justin Pierce <[email protected]>
Co-authored-by: openshift-bot <[email protected]>
Co-authored-by: openshift-ci-robot <[email protected]>
Modified-by: Grant Spence <[email protected]>
Previous coredns versions had a `make test` target and our ci-operator
currently uses this target to kick off the tests. So, at least to get
tests running against this PR without requiring changes to the
openshift/release ci-operator setup, I'm adding that target back.

This just runs the full litany of tests that Travis would run except
for the coverage targets and the tests that require a running etcd
server.
The coredns exclusion in .gitignore was ignoring anything that was named
coredns. This patch makes it specifically just the binary in the main dir.
Should be reevaluated next rebase.

Co-authored-by: Ryan Fredette <[email protected]>
Modified-by: Grant Spence <[email protected]>
Disable dependabot in the openshift fork
Generate zplugin.go correctly with third-party plugins (coredns#6692)

Previously, the generation of zplugin.go would not separate
third-party external plugins from CoreDNS plugins in the go
import block. This leads to the TestImportOrdering unit test
failing, as it requires that third-party imports paths to be
in a separate import block.

While this issue does not affect the main CoreDNS repo, it can cause
unit test failures in forks of CoreDNS that include external third-party
plugins.

Signed-off-by: Grant Spence <[email protected]>
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jul 22, 2024

@gcs278: This pull request references NE-1721 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.17.0" version, but no target version was set.

In response to this:

Rebased to CoreDNS 1.11.3 (note that 1.11.2 was skipped because it was not an official release).

I made this PR using the same process as #94, #88, #76, #73, #52, #60, and #70:

  1. git remote update
  2. git checkout v1.11.3
  3. git checkout -b merge-1.11.3-tmp
  4. git checkout origin/master
  5. echo 'merge coredns/coredns v1.11.3' | git commit-tree 'merge-1.11.3-tmp^{tree}' -p HEAD -p merge-1.11.3-tmp -F -
    22d5f9e222defed49ffe0632ec224cf1b4f6c8a8
  6. git branch merge-1.11.3 22d5f9e222defed49ffe0632ec224cf1b4f6c8a8
  7. git checkout merge-1.11.3
  8. git rev-list --reverse --no-merges a63105089cf042df50b79c6ff4145aee7af2f83b..origin/master | git cherry-pick --stdin
    Note: a631050 is the merge commit from the last merge OCPBUGS-13968: Merge 1.11.1 #94
  9. My merge commit from the above process was commit 23fa201

Before the rebase, we had the following commits:

$ git --no-pager log --oneline --no-merges --no-decorate a63105089cf042df50b79c6ff4145aee7af2f83b..origin/master
8eab9cb1d UPSTREAM: <carry>: openshift: Bump the version of ocp_dnsnameresolver external plugin
c87f74bc4 UPSTREAM: 6692: openshift: Fix OCPBUGS-34619
2637e6580 Updating coredns-container image to be consistent with ART for 4.17 Reconciling with https://github.com/openshift/ocp-build-data/tree/4c1326094222f9209876f06833179a1b9178faf7/images/coredns.yml
c442a0b59 Updating coredns-container image to be consistent with ART for 4.17 Reconciling with https://github.com/openshift/ocp-build-data/tree/0a1310d4df1f00e3e218da6e356585997c7c0178/images/coredns.yml
583929976 UPSTREAM: <carry>: Address CVE-2023-49295 and CVE-2024-22189
6b897ee50 UPSTREAM: <carry>: openshift: Move ocp_dnsnameresolver before cache in plugin chaining order
7a9d9ea62 UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin
ad20b18fa Updating coredns-container image to be consistent with ART for 4.16 Reconciling with https://github.com/openshift/ocp-build-data/tree/16fcb965e08aba14bb4ea6caaeeaa99fe31141bd/images/coredns.yml
37a9afe69 UPSTREAM: 6277: openshift: Fix OCPBUGS-27397
2eea6bfc6 Updating coredns-container image to be consistent with ART for 4.16 Reconciling with https://github.com/openshift/ocp-build-data/tree/af2133c5194e28075efb48f4b508a98759b079d2/images/coredns.yml
59f7d2f51 UPSTREAM: 6354: openshift: Fix OCPBUGS-15755
c0451cddd UPSTREAM: <carry>: openshift: Address CVE-2023-39325
89d7d8c9a Updating coredns images to be consistent with ART Reconciling with https://github.com/openshift/ocp-build-data/tree/da6a5af1fa96762cc8410f09fc28c0457280f59a/images/coredns.yml
5378301ac UPSTREAM: <carry>: openshift: Disable dependabot
6a6aca3cc UPSTREAM: <carry>: openshift: Vendor required modules
a5843d819 UPSTREAM: <carry>: openshift: .gitignore: Properly ignore coredns binary
4c6110d88 UPSTREAM: <carry>: openshift: Make coredns exclusion more specific
78b2bdbb2 UPSTREAM: <carry>: openshift: Add a `make test` target
f5d39cfca UPSTREAM: <carry>: openshift: Add product build config
c6cbe9feb UPSTREAM: <carry>: openshift: Add OWNERS

Rebase Interactions:

  1. error: could not apply 5378301... UPSTREAM: : openshift: Disable dependabot
CONFLICT (modify/delete): .github/dependabot.yml deleted in 5378301ac (UPSTREAM: <carry>: openshift: Disable dependabot) and modified in HEAD.  Version HEAD of .github/dependabot.yml left in tree.
  • Upstream modified .github/dependabot.yml while this commit deletes it.
  • Resolved by deleting .github/dependabot.yml again
  1. error: could not apply c0451cd... UPSTREAM: : openshift: Address CVE-2023-39325
CONFLICT (content): Merge conflict in go.mod
CONFLICT (content): Merge conflict in go.sum
  • I skipped this cherry-pick with git cherry-pick --skip since 1.11.3 now vendors x/net v0.23.0 and this commit is no longer needed, effectively dropping this carry patch.
  1. Empty commit due to UPSTREAM: 6354: openshift: Fix OCPBUGS-15755 now in v1.11.3 upstream:
nothing to commit, working tree clean
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:

  git commit --allow-empty

Otherwise, please use 'git cherry-pick --skip'
  • Did a git cherry-pick --skip to just skip this. Note that the cherry-pick output was very terse (it didn't tell me what commit was empty...that was confusing).
  1. Empty commit due to UPSTREAM: 6277: openshift: Fix OCPBUGS-27397 now in v1.11.3 upstream:
    nothing to commit, working tree clean
    The previous cherry-pick is now empty, possibly due to conflict resolution.
    If you wish to commit it anyway, use:
    
        git commit --allow-empty
    
    Otherwise, please use 'git cherry-pick --skip'
    
  • Did a git cherry-pick --skip to just skip this. Note that the cherry-pick output was very terse (it didn't tell me what commit was empty...that was confusing).
  1. error: could not apply 7a9d9ea... UPSTREAM: : openshift: Add ocp_dnsnameresolver external plugin
CONFLICT (content): Merge conflict in go.mod
CONFLICT (content): Merge conflict in go.sum
  • Accepted github.com/openshift/coredns-ocp-dnsnameresolver v0.0.0-20240326070009-fc0f61729b14 from 7a9d9ea and ensured other dependencies were met.
  • Ran go mod tidy and go mod vendor with merged go.mod
  1. error: could not apply 5839299... UPSTREAM: : Address CVE-2023-49295 and CVE-2024-22189
CONFLICT (content): Merge conflict in go.mod
CONFLICT (content): Merge conflict in go.sum
CONFLICT (rename/delete): vendor/github.com/golang/mock/mockgen/version.1.11.go renamed to vendor/go.opentelemetry.io/otel/version.go in HEAD, but deleted in 583929976 (UPSTREAM: <carry>: Address CVE-2023-49295 and CVE-2024-22189).
 CONFLICT (modify/delete): vendor/go.opentelemetry.io/otel/version.go deleted in 583929976 (UPSTREAM: <carry>: Address CVE-2023-49295 and CVE-2024-22189) and modified in HEAD.  Version HEAD of vendor/go.opentelemetry.io/otel/version.go left in tree.
CONFLICT (content): Merge conflict in vendor/golang.org/x/mod/modfile/rule.go
CONFLICT (content): Merge conflict in vendor/modules.txt
  • I skipped this cherry-pick with git cherry-pick --skip since 1.11.3 now vendors quic-go v0.42.0 and this commit is no longer needed, effectively dropping this carry patch.
  1. error: could not apply 8eab9cb... UPSTREAM: : openshift: Bump the version of ocp_dnsnameresolver external plugin
CONFLICT (content): Merge conflict in go.mod
  • Accepted github.com/openshift/coredns-ocp-dnsnameresolver v0.0.0-20240712094134-af651cec05d1 from 8eab9cb
  • Ran go mod tidy and go mod vendor with merged go.mod

Actions I took after doing Rebase:

  1. I squashed the following commit into the existing UPSTREAM: <carry>: openshift: Add product build config commit:
ad20b18fa Updating coredns-container image to be consistent with ART for 4.16 Reconciling with https://github.com/openshift/ocp-build-data/tree/16fcb965e08aba14bb4ea6caaeeaa99fe31141bd/images/coredns.yml
2eea6bfc6 Updating coredns-container image to be consistent with ART for 4.16 Reconciling with https://github.com/openshift/ocp-build-data/tree/af2133c5194e28075efb48f4b508a98759b079d2/images/coredns.yml
89d7d8c9a Updating coredns images to be consistent with ART Reconciling with https://github.com/openshift/ocp-build-data/tree/da6a5af1fa96762cc8410f09fc28c0457280f59a/images/coredns.yml
1c65c490f Updating coredns-container image to be consistent with ART for 4.17 Reconciling with https://github.com/openshift/ocp-build-data/tree/0a1310d4df1f00e3e218da6e356585997c7c0178/images/coredns.yml
8a5c3fbf5 Updating coredns-container image to be consistent with ART for 4.17 Reconciling with https://github.com/openshift/ocp-build-data/tree/4c1326094222f9209876f06833179a1b9178faf7/images/coredns.yml
  1. I squashed UPSTREAM: <carry>: Move ocp_dnsnameresolver before cache in plugin chaining order and UPSTREAM: <carry>: openshift: Bump the version of ocp_dnsnameresolver external plugin into UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin to simplify future rebases:
50a1e581c UPSTREAM: <carry>: openshift: Move ocp_dnsnameresolver before cache in plugin chaining order
c9bba25a4 UPSTREAM: <carry>: openshift: Bump the version of ocp_dnsnameresolver external plugin
  1. I vendored changed in the UPSTREAM: <carry>: openshift: Vendor required modules commit to ensure this commit contains the updated vendor packages from upstream:
go mod tidy
go mod vendor
  • Caused another merge conflict with UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin, but that was resolved by running go mod tidy and go mod vendor again in that commit.
    $ git rebase --continue 
    Auto-merging vendor/k8s.io/client-go/applyconfigurations/policy/v1beta1/podsecuritypolicy.go
    CONFLICT (rename/rename): vendor/k8s.io/client-go/applyconfigurations/policy/v1beta1/podsecuritypolicy.go renamed to vendor/k8s.io/clientgo/applyconfigurations/admissionregistration/v1beta1/validatingadmissionpolicybinding.go in 
    HEAD and to vendor/github.com/openshift/client-go/network/applyconfigurations/network/v1alpha1/dnsnameresolver.go in 006eed0a8 (UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin).
    Auto-merging vendor/modules.txt
    error: could not apply 006eed0a8... UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin
    $ go mod tidy
    $ go mod vendor
    $ git add -A
    $ go rebase --continue
    
  1. I rearranged the order of UPSTREAM: 6692: openshift: Fix OCPBUGS-34619 and UPSTREAM: <carry>: openshift: Add ocp_dnsnameresolver external plugin to ensure ocp_dnsnameresolver comes last because OCPBUGS-34619 fixes the go generate coredns.go generation for ocp_dnsnameresolver.
  • If OCPBUGS-34619 didn't come first, then the commit for ocp_dnsnameresolver will cause incorrect generation of the core/plugin/zplugin.go. The zplugin.go file was regenerated in 8eab9cb
  • See d5789eb#r1635284124

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 22, 2024
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 22, 2024
@gcs278
Copy link
Author

gcs278 commented Jul 22, 2024

@rfredette Thanks for the review. Just rebased for picking up #122.

@arkadeepsen, also mind taking a look to make sure everything looks correct? I see you generated zplugin.go in #122, that's good. I put all of your ocp_dnsnameresolver in 1 commit as usual, and moved it to the end to make sure it keeps correct zplugin.go generation fix, just to be safe.

CC: @alebedev87

@gcs278
Copy link
Author

gcs278 commented Jul 22, 2024

infra error:
/test e2e-aws-ovn-upgrade

Copy link

openshift-ci bot commented Jul 22, 2024

@gcs278: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@arkadeepsen
Copy link
Member

@arkadeepsen, also mind taking a look to make sure everything looks correct? I see you generated zplugin.go in #122, that's good. I put all of your ocp_dnsnameresolver in 1 commit as usual, and moved it to the end to make sure it keeps correct zplugin.go generation fix, just to be safe.

@gcs278 The commit looks good to me 👍

@alebedev87
Copy link

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 23, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit d3b441c into openshift:master Jul 23, 2024
7 checks passed
@openshift-bot
Copy link

[ART PR BUILD NOTIFIER]

Distgit: coredns
This PR has been included in build coredns-container-v4.17.0-202407231314.p0.gd3b441c.assembly.stream.el9.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.