Commit c7df70d
refactor: migrate Kubernetes functions to filter_functions (Phase 12)
Migrate k8s_label_safe, k8s_dns_label_safe, k8s_annotation_safe to the
unified filter-functions architecture, supporting both function and
filter syntax:
- Function: {{ k8s_label_safe(value="My App") }}
- Filter: {{ "My App" | k8s_label_safe }}
Other Kubernetes functions remain function-only as they don't fit the
filter pattern (multi-argument or complex objects).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 16fdd04 commit c7df70d
6 files changed
Lines changed: 476 additions & 29 deletions
File tree
- src
- filter_functions
- functions
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3090 | 3090 | | |
3091 | 3091 | | |
3092 | 3092 | | |
3093 | | - | |
| 3093 | + | |
3094 | 3094 | | |
3095 | 3095 | | |
3096 | 3096 | | |
| |||
3105 | 3105 | | |
3106 | 3106 | | |
3107 | 3107 | | |
3108 | | - | |
| 3108 | + | |
3109 | 3109 | | |
3110 | 3110 | | |
3111 | 3111 | | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
3112 | 3116 | | |
3113 | 3117 | | |
3114 | 3118 | | |
3115 | | - | |
3116 | | - | |
| 3119 | + | |
| 3120 | + | |
3117 | 3121 | | |
3118 | 3122 | | |
3119 | | - | |
| 3123 | + | |
3120 | 3124 | | |
3121 | 3125 | | |
3122 | 3126 | | |
| |||
3127 | 3131 | | |
3128 | 3132 | | |
3129 | 3133 | | |
3130 | | - | |
| 3134 | + | |
3131 | 3135 | | |
3132 | 3136 | | |
3133 | 3137 | | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
3134 | 3142 | | |
3135 | 3143 | | |
3136 | 3144 | | |
3137 | 3145 | | |
3138 | | - | |
| 3146 | + | |
3139 | 3147 | | |
3140 | 3148 | | |
3141 | 3149 | | |
| |||
3290 | 3298 | | |
3291 | 3299 | | |
3292 | 3300 | | |
3293 | | - | |
| 3301 | + | |
3294 | 3302 | | |
3295 | 3303 | | |
3296 | 3304 | | |
3297 | 3305 | | |
3298 | | - | |
| 3306 | + | |
3299 | 3307 | | |
3300 | | - | |
| 3308 | + | |
3301 | 3309 | | |
3302 | 3310 | | |
3303 | 3311 | | |
3304 | | - | |
3305 | | - | |
| 3312 | + | |
| 3313 | + | |
3306 | 3314 | | |
3307 | 3315 | | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
3308 | 3320 | | |
3309 | 3321 | | |
3310 | 3322 | | |
3311 | | - | |
3312 | | - | |
| 3323 | + | |
| 3324 | + | |
3313 | 3325 | | |
3314 | 3326 | | |
3315 | 3327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
| 671 | + | |
672 | 672 | | |
673 | | - | |
| 673 | + | |
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
687 | 691 | | |
688 | 692 | | |
689 | 693 | | |
| |||
0 commit comments