Skip to content

Commit 925ada6

Browse files
committed
fix: r
Signed-off-by: ashing <[email protected]>
1 parent 78862a2 commit 925ada6

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: golangci-lint
1+
name: lint
22

33
on:
44
push:
@@ -26,3 +26,23 @@ jobs:
2626

2727
- name: 🛩️ golangci-lint
2828
run: make lint
29+
crd-docs-check:
30+
name: Check CRD Docs
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Download crd-ref-docs
35+
run: |
36+
mkdir -p ./bin
37+
curl -L -o ./bin/crd-ref-docs.tar.gz https://github.com/elastic/crd-ref-docs/releases/download/v0.1.0/crd-ref-docs_0.1.0_Linux_x86_64.tar.gz
38+
tar -xzvf ./bin/crd-ref-docs.tar.gz -C ./bin
39+
chmod +x ./bin/crd-ref-docs
40+
- name: Generate CRD Docs
41+
run: |
42+
make generate-crd-docs
43+
- name: Check CRD Docs Diff
44+
run: |
45+
if ! git diff --exit-code -- docs/crd/api.md; then
46+
echo "docs/crd/api.md has changed. Please run 'make generate-crd-docs' and commit the updated file."
47+
exit 1
48+
fi

.github/workflows/lint-checker.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -72,24 +72,4 @@ jobs:
7272
file-path: './README.md, ./install.md, ./test/e2e/README.md'
7373
max-depth: -1
7474
file-extension: ".md"
75-
check-modified-files-only: "no"
76-
crd-docs-check:
77-
name: Check CRD Docs
78-
runs-on: ubuntu-latest
79-
steps:
80-
- uses: actions/checkout@v4
81-
- name: Download crd-ref-docs
82-
run: |
83-
mkdir -p ./bin
84-
curl -L -o ./bin/crd-ref-docs.tar.gz https://github.com/elastic/crd-ref-docs/releases/download/v0.1.0/crd-ref-docs_0.1.0_Linux_x86_64.tar.gz
85-
tar -xzvf ./bin/crd-ref-docs.tar.gz -C ./bin
86-
chmod +x ./bin/crd-ref-docs
87-
- name: Generate CRD Docs
88-
run: |
89-
make generate-crd-docs
90-
- name: Check CRD Docs Diff
91-
run: |
92-
if ! git diff --exit-code -- docs/crd/api.md; then
93-
echo "docs/crd/api.md has changed. Please run 'make generate-crd-docs' and commit the updated file."
94-
exit 1
95-
fi
75+
check-modified-files-only: "no"

api/v1alpha1/gatewayproxy_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const (
4848
// GatewayProxyProvider defines the provider configuration for GatewayProxy
4949
// +kubebuilder:validation:XValidation:rule="self.type == 'ControlPlane' ? has(self.controlPlane) : true",message="controlPlane must be specified when type is ControlPlane"
5050
type GatewayProxyProvider struct {
51-
// Type specifies the type of provider
51+
// Type 1111 specifies the type of provider
5252
// +kubebuilder:validation:Required
5353
Type ProviderType `json:"type"`
5454

config/crd/bases/apisix.apache.org_gatewayproxies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ spec:
117117
- endpoints
118118
type: object
119119
type:
120-
description: Type specifies the type of provider
120+
description: Type 1111 specifies the type of provider
121121
enum:
122122
- ControlPlane
123123
type: string

0 commit comments

Comments
 (0)