Commit 9c984e1
fix: resolve CI lint and gen-check failures for RateLimitRule name
The CEL validation test used ptr.To from k8s.io/utils/ptr, which is
forbidden by forbidigo (use new() builtin or a typed helper instead).
Replace the 7 ptr.To(...) call sites with a small file-local ptrString
helper that matches the existing SectionNamePtr/ObjectNamePtr convention,
and drop the now-unused ptr import.
The new ratelimit-rule-names testdata YAML was missing a trailing
newline, which fails yamllint's new-line-at-end-of-file rule (part of
make lint / gen-check). Add the trailing newline.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent fa9461b commit 9c984e1
2 files changed
Lines changed: 15 additions & 9 deletions
File tree
- internal/gatewayapi/testdata
- test/cel-validation
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
3744 | 3750 | | |
3745 | 3751 | | |
3746 | 3752 | | |
3747 | | - | |
| 3753 | + | |
3748 | 3754 | | |
3749 | 3755 | | |
3750 | 3756 | | |
| |||
3774 | 3780 | | |
3775 | 3781 | | |
3776 | 3782 | | |
3777 | | - | |
| 3783 | + | |
3778 | 3784 | | |
3779 | 3785 | | |
3780 | 3786 | | |
3781 | 3787 | | |
3782 | 3788 | | |
3783 | 3789 | | |
3784 | | - | |
| 3790 | + | |
3785 | 3791 | | |
3786 | 3792 | | |
3787 | 3793 | | |
| |||
3813 | 3819 | | |
3814 | 3820 | | |
3815 | 3821 | | |
3816 | | - | |
| 3822 | + | |
3817 | 3823 | | |
3818 | 3824 | | |
3819 | 3825 | | |
3820 | 3826 | | |
3821 | 3827 | | |
3822 | 3828 | | |
3823 | | - | |
| 3829 | + | |
3824 | 3830 | | |
3825 | 3831 | | |
3826 | 3832 | | |
| |||
3852 | 3858 | | |
3853 | 3859 | | |
3854 | 3860 | | |
3855 | | - | |
| 3861 | + | |
3856 | 3862 | | |
3857 | 3863 | | |
3858 | 3864 | | |
| |||
3884 | 3890 | | |
3885 | 3891 | | |
3886 | 3892 | | |
3887 | | - | |
| 3893 | + | |
3888 | 3894 | | |
3889 | 3895 | | |
3890 | 3896 | | |
| |||
0 commit comments