Skip to content

Commit 54fd807

Browse files
committed
add action item if kubebuilder freshness check fails
1 parent b40893e commit 54fd807

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/supported_features.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ jobs:
1515
run: |
1616
RED='\033[0;31m'
1717
GREEN='\033[0;32m'
18+
YELLOW='‘\033[1;33m'
1819
NC='\033[0m'
1920
current_features=$(grep -B 1 'type SupportedFeature string' apis/v1/gatewayclass_types.go | grep -oP '// \+kubebuilder:validation:Enum=\K.*')
2021
expected_features=$(go run hack/supportedfeatures/main.go)
2122
if [[ "$current_features" != "$expected_features" ]]; then
2223
echo "found diff between the current and the expected supportedFeatures"
2324
echo -e "expected: ${GREEN}${expected_features}${NC}"
2425
echo -e "current: ${RED}${current_features}${NC}"
26+
echo -e "${YELLOW}Please run \`go run hack/supportedfeatures/main.go\` and update +kubebuilder:validation:Enum in gatewayclass_types.go${NC}"
2527
exit 1
2628
fi

config/crd/experimental/gateway.networking.k8s.io_gatewayclasses.yaml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)