Skip to content

Commit 003794b

Browse files
committed
Merge remote-tracking branch 'origin/release-v2-dev' into feat/httproutepolicy-status-on-targetref-deleting
2 parents b8ec7c4 + c55673a commit 003794b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+12468
-360
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: push v2-dev on dockerhub
2+
on:
3+
release:
4+
types: [ published ]
5+
push:
6+
branches:
7+
- release-v2-dev
8+
workflow_dispatch:
9+
jobs:
10+
docker:
11+
runs-on: buildjet-2vcpu-ubuntu-2204
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
18+
- name: Setup Go Env
19+
uses: actions/setup-go@v4
20+
with:
21+
go-version: "1.22"
22+
23+
# - name: Set up QEMU
24+
# uses: docker/setup-qemu-action@v3
25+
#
26+
# - name: Set up Docker Buildx
27+
# uses: docker/setup-buildx-action@v3
28+
29+
- name: Login to Registry
30+
uses: docker/login-action@v1
31+
with:
32+
registry: ${{ secrets.DOCKER_REGISTRY }}
33+
username: ${{ secrets.DOCKER_USERNAME }}
34+
password: ${{ secrets.DOCKER_PASSWORD }}
35+
36+
- name: Build push image
37+
env:
38+
TAG: dev
39+
ARCH: amd64
40+
ENABLE_PROXY: "false"
41+
BASE_IMAGE_TAG: "debug"
42+
run: |
43+
echo "building images..."
44+
make build-push-image

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ api7-ingress-controller
3232
api7-ingress-controller-conformance-report.yaml
3333

3434
*.mdx
35+
.cursor/
36+

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ linux-build:
164164
.PHONY: build-image
165165
build-image: docker-build
166166

167+
.PHONY: build-push-image
168+
build-push-image: docker-build
169+
@docker push ${IMG}
170+
167171
.PHONY: build-multi-arch
168172
build-multi-arch:
169173
@CGO_ENABLED=0 GOARCH=amd64 go build -o bin/api7-ingress-controller_amd64 -ldflags $(GO_LDFLAGS) cmd/main.go
@@ -316,3 +320,9 @@ mv $(1) $(1)-$(3) ;\
316320
} ;\
317321
ln -sf $(1)-$(3) $(1)
318322
endef
323+
324+
helm-build-crds:
325+
@echo "build gateway-api standard crds"
326+
$(KUSTOMIZE) build github.com/kubernetes-sigs/gateway-api/config/crd\?ref=${GATEAY_API_VERSION} > charts/crds/gwapi-crds.yaml
327+
@echo "build apisix ic crds"
328+
$(KUSTOMIZE) build config/crd > charts/crds/apisixic-crds.yaml

PROJECT

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resources:
1313
namespaced: true
1414
controller: true
1515
domain: github.com
16-
group: gateway.apisix.io
16+
group: apisix.apache.org
1717
kind: Guestbook
1818
path: github.com/api7/api7-ingress-controller/api/v1alpha1
1919
version: v1alpha1
@@ -22,15 +22,15 @@ resources:
2222
namespaced: true
2323
controller: true
2424
domain: github.com
25-
group: gateway.apisix.io
25+
group: apisix.apache.org
2626
kind: GatewayProxy
2727
path: github.com/api7/api7-ingress-controller/api/v1alpha1
2828
version: v1alpha1
2929
- api:
3030
crdVersion: v1
3131
namespaced: true
3232
domain: github.com
33-
group: gateway.apisix.io
33+
group: apisix.apache.org
3434
kind: HTTPRoutePolicy
3535
path: github.com/api7/api7-ingress-controller/api/v1alpha1
3636
version: v1alpha1

api/v1alpha1/groupversion_info.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package v1alpha1 contains API Schema definitions for the gateway.apisix.io v1alpha1 API group
17+
// Package v1alpha1 contains API Schema definitions for the apisix.apache.org v1alpha1 API group
1818
// +kubebuilder:object:generate=true
19-
// +groupName=gateway.apisix.io
19+
// +groupName=apisix.apache.org
2020
package v1alpha1
2121

2222
import (
@@ -26,7 +26,7 @@ import (
2626

2727
var (
2828
// GroupVersion is group version used to register these objects
29-
GroupVersion = schema.GroupVersion{Group: "gateway.apisix.io", Version: "v1alpha1"}
29+
GroupVersion = schema.GroupVersion{Group: "apisix.apache.org", Version: "v1alpha1"}
3030

3131
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
3232
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

0 commit comments

Comments
 (0)