Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Restore inclusion of ReferencePolicy in Grant lookup #280

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

nathancoleman
Copy link
Member

@nathancoleman nathancoleman commented Jul 12, 2022

Changes proposed in this PR:

The ReferencePolicy needs to be included for backward compatibility; however, it couldn't be included until v0.5.0-rc2 of kubernetes-sigs/gateway-api which restored the ReferencePolicy CRD to the default set and fixed a listing bug.

v0.5.0-rc2 was consumed in #279, but I wasn't aware of this related TODO until I attempted the Learn guide which still uses the deprecated ReferencePolicy instead of the new ReferenceGrant.

How I've tested this PR:

How I expect reviewers to test this PR:

See above

Checklist:

  • Tests added
  • CHANGELOG entry added

    Run make changelog-entry for guidance in authoring a changelog entry, and
    commit the resulting file, which should have a name matching your PR number.
    Entries should use imperative present tense (e.g. Add support for...)

The ReferencePolicy needs to be included for backward compatibility; however, it couldn't be included until v0.5.0-rc2 of kubernetes-sigs/gateway-api
@nathancoleman nathancoleman added pr/no-changelog Skip the CI check that requires a changelog entry pr/run-conformance labels Jul 12, 2022
@nathancoleman nathancoleman marked this pull request as ready for review July 12, 2022 20:04
@nathancoleman nathancoleman merged commit 6c63d38 into main Jul 12, 2022
@nathancoleman nathancoleman deleted the restore-refpolicy-list branch July 12, 2022 20:11
@mikemorris mikemorris mentioned this pull request Jul 19, 2022
2 tasks
@mikemorris
Copy link
Contributor

mikemorris commented Jul 19, 2022

There's an additional lingering TODO from #224 (comment) that may cause a panic now that kubernetes-sigs/gateway-api#1239 has been fixed.

After double-checking, this is actually fine. The only place we use ReferencePolicyList infers the type of the list items, so didn't need to be updated, and ReferencePolicy did keep the changes to use ReferenceGrantSpec internally for its' Spec field in the final Gateway API v0.5.0 release.

@nathancoleman
Copy link
Member Author

@mikemorris we did have one panic due to the list type being incorrect; however, that was resolved w/ the merge of #279 which contained the fix you linked from upstream

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr/no-changelog Skip the CI check that requires a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants