Skip to content

Commit b2025b4

Browse files
authored
chore: replace "api7" with "apisix" (#130)
1 parent d89df03 commit b2025b4

Some content is hidden

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

75 files changed

+456
-413
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
Prior to opening the issue, please make sure that you:
1313
1414
- Use English to communicate.
15-
- Search the [open issues](https://github.com/apache/api7-ingress-controller/issues) to avoid duplicating the issue.
15+
- Search the [open issues](https://github.com/apache/apisix-ingress-controller/issues) to avoid duplicating the issue.
1616
1717
- type: textarea
1818
id: current-behavior
@@ -56,7 +56,7 @@ body:
5656
label: Environment
5757
description: Share your environment details. Reports without proper environment details will likely be closed.
5858
value: |
59-
- APISIX Ingress controller version (run `api7-ingress-controller version --long`)
59+
- APISIX Ingress controller version (run `apisix-ingress-controller version --long`)
6060
- Kubernetes cluster version (run `kubectl version`)
6161
- OS version if running APISIX Ingress controller in a bare-metal environment (run `uname -a`)
6262
validations:

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body:
1010
Prior to opening the issue, please make sure that you:
1111
1212
- Use English to communicate.
13-
- Search the [open issues](https://github.com/apache/api7-ingress-controller/issues) to avoid duplicating the issue.
13+
- Search the [open issues](https://github.com/apache/apisix-ingress-controller/issues) to avoid duplicating the issue.
1414
1515
- type: textarea
1616
id: description

.github/ISSUE_TEMPLATE/improve_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ body:
1111
Prior to opening the issue, please make sure that you:
1212
1313
- Use English to communicate.
14-
- Search the [open issues](https://github.com/apache/api7-ingress-controller/issues) to avoid duplicating the issue.
14+
- Search the [open issues](https://github.com/apache/apisix-ingress-controller/issues) to avoid duplicating the issue.
1515
1616
- type: textarea
1717
id: current-state

.github/ISSUE_TEMPLATE/performance_issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
Prior to opening the issue, please make sure that you:
1313
1414
- Use English to communicate.
15-
- Search the [open issues](https://github.com/apache/api7-ingress-controller/issues) to avoid duplicating the issue.
15+
- Search the [open issues](https://github.com/apache/apisix-ingress-controller/issues) to avoid duplicating the issue.
1616
- type: textarea
1717
id: issue-faced
1818
attributes:
@@ -46,7 +46,7 @@ body:
4646
label: Environment
4747
description: Share your environment details. Reports without proper environment details will likely be closed.
4848
value: |
49-
- APISIX Ingress controller version (run `api7-ingress-controller version --long`)
49+
- APISIX Ingress controller version (run `apisix-ingress-controller version --long`)
5050
- Kubernetes cluster version (run `kubectl version`)
5151
- OS version if running APISIX Ingress controller in a bare-metal environment (run `uname -a`)
5252
validations:

.github/ISSUE_TEMPLATE/request_help.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ body:
2424
label: Environment
2525
description: Request help without environment information will be ignored or closed.
2626
value: |
27-
- your api7-ingress-controller version (output of api7-ingress-controller version --long):
27+
- your apisix-ingress-controller version (output of apisix-ingress-controller version --long):
2828
- your Kubernetes cluster version (output of kubectl version):
29-
- if you run api7-ingress-controller in Bare-metal environment, also show your OS version (uname -a):
29+
- if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):
3030
validations:
3131
required: true

.github/PULL_REQUEST_TEMPLATE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ Please follow the requirements:
3434
- [ ] Did you explain what problem does this PR solve? Or what new features have been added?
3535
- [ ] Have you added corresponding test cases?
3636
- [ ] Have you modified the corresponding document?
37-
- [ ] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/api7-ingress-controller#community) first**
37+
- [ ] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix-ingress-controller#community) first**

.github/workflows/conformance-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,22 +103,22 @@ jobs:
103103
- name: Get Logs from api7-ingress-controller
104104
shell: bash
105105
run: |
106-
export KUBECONFIG=/tmp/api7-ingress-cluster.kubeconfig
107-
kubectl logs -n api7ee-conformance-test -l app=api7-ingress-controller
106+
export KUBECONFIG=/tmp/apisix-ingress-cluster.kubeconfig
107+
kubectl logs -n apisix-conformance-test -l app=apisix-ingress-controller
108108
109109
- name: Upload Gateway API Conformance Report
110110
if: ${{ github.event_name == 'push' }}
111111
uses: actions/upload-artifact@v4
112112
with:
113-
name: api7-ingress-controller-conformance-report.yaml
114-
path: api7-ingress-controller-conformance-report.yaml
113+
name: apisix-ingress-controller-conformance-report.yaml
114+
path: apisix-ingress-controller-conformance-report.yaml
115115

116116
- name: Format Conformance Test Report
117117
if: ${{ github.event_name == 'pull_request' }}
118118
run: |
119119
echo '# conformance test report' > report.md
120120
echo '```yaml' >> report.md
121-
cat api7-ingress-controller-conformance-report.yaml >> report.md
121+
cat apisix-ingress-controller-conformance-report.yaml >> report.md
122122
echo '```' >> report.md
123123
124124
- name: Report Conformance Test Result to PR Comment

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ go.work
2828

2929
dist
3030
.tmp
31-
api7-ingress-controller
32-
api7-ingress-controller-conformance-report.yaml
31+
apisix-ingress-controller
32+
apisix-ingress-controller-conformance-report.yaml
3333

3434
*.mdx
3535
.cursor/

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ ARG TARGETARCH
2222
WORKDIR /app
2323

2424
COPY --from=deps /bin/adc /bin/adc
25-
COPY ./bin/api7-ingress-controller_${TARGETARCH} ./api7-ingress-controller
25+
COPY ./bin/apisix-ingress-controller_${TARGETARCH} ./apisix-ingress-controller
2626
COPY ./config/samples/config.yaml ./conf/config.yaml
2727

28-
ENTRYPOINT ["/app/api7-ingress-controller"]
28+
ENTRYPOINT ["/app/apisix-ingress-controller"]
2929
CMD ["-c", "/app/conf/config.yaml"]

Dockerfile.dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ FROM debian:bullseye-slim
2525
WORKDIR /app
2626

2727
COPY --from=node_builder /bin/adc /bin/adc
28-
COPY ./bin/api7-ingress-controller .
28+
COPY ./bin/apisix-ingress-controller .
2929
COPY ./config/samples/config.yaml ./conf/config.yaml
3030

31-
ENTRYPOINT ["/app/api7-ingress-controller"]
31+
ENTRYPOINT ["/app/apisix-ingress-controller"]
3232
CMD ["-c", "/app/conf/config.yaml"]

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ IMG ?= api7/api7-ingress-controller:$(IMAGE_TAG)
99
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
1010
ENVTEST_K8S_VERSION = 1.30.0
1111

12-
KIND_NAME ?= api7-ingress-cluster
12+
KIND_NAME ?= apisix-ingress-cluster
1313
GATEAY_API_VERSION ?= v1.2.0
1414

1515
DASHBOARD_VERSION ?= dev
@@ -84,7 +84,7 @@ help: ## Display this help.
8484

8585
.PHONY: manifests
8686
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
87-
$(CONTROLLER_GEN) rbac:roleName=api7-ingress-manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
87+
$(CONTROLLER_GEN) rbac:roleName=apisix-ingress-manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
8888

8989
.PHONY: generate
9090
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
@@ -169,18 +169,18 @@ kind-load-ingress-image:
169169
pull-infra-images:
170170
@docker pull hkccr.ccs.tencentyun.com/api7-dev/api7-ee-3-gateway:dev
171171
@docker pull hkccr.ccs.tencentyun.com/api7-dev/api7-ee-dp-manager:$(DASHBOARD_VERSION)
172-
@docker pull hkccr.ccs.tencentyun.com/api7-dev/api7-ee-3-integrated:$(DASHBOARD_VERSION)
172+
@docker pull hkccr.ccs.tencentyun.com/api7-dev/api7-ee-3-integrated:$(DASHBOARD_VERSION)
173173
@docker pull kennethreitz/httpbin:latest
174174
@docker pull jmalloc/echo-server:latest
175175

176176
##@ Build
177177

178178
.PHONY: build
179179
build: manifests generate fmt vet ## Build manager binary.
180-
GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 go build -o bin/api7-ingress-controller_$(GOARCH) -ldflags $(GO_LDFLAGS) cmd/main.go
180+
GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 go build -o bin/apisix-ingress-controller_$(GOARCH) -ldflags $(GO_LDFLAGS) cmd/main.go
181181

182182
linux-build:
183-
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o bin/api7-ingress-controller -ldflags $(GO_LDFLAGS) cmd/main.go
183+
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o bin/apisix-ingress-controller -ldflags $(GO_LDFLAGS) cmd/main.go
184184

185185
.PHONY: build-image
186186
build-image: docker-build
@@ -191,8 +191,8 @@ build-push-image: docker-build
191191

192192
.PHONY: build-multi-arch
193193
build-multi-arch:
194-
@CGO_ENABLED=0 GOARCH=amd64 go build -o bin/api7-ingress-controller_amd64 -ldflags $(GO_LDFLAGS) cmd/main.go
195-
@CGO_ENABLED=0 GOARCH=arm64 go build -o bin/api7-ingress-controller_arm64 -ldflags $(GO_LDFLAGS) cmd/main.go
194+
@CGO_ENABLED=0 GOARCH=amd64 go build -o bin/apisix-ingress-controller_amd64 -ldflags $(GO_LDFLAGS) cmd/main.go
195+
@CGO_ENABLED=0 GOARCH=arm64 go build -o bin/apisix-ingress-controller_arm64 -ldflags $(GO_LDFLAGS) cmd/main.go
196196

197197
.PHONY: build-multi-arch-image
198198
build-multi-arch-image: build-multi-arch
@@ -229,10 +229,10 @@ PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
229229
docker-buildx: ## Build and push docker image for the manager for cross-platform support
230230
# copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
231231
sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
232-
- $(CONTAINER_TOOL) buildx create --name api7-ingress-builder
233-
$(CONTAINER_TOOL) buildx use api7-ingress-builder
232+
- $(CONTAINER_TOOL) buildx create --name apisix-ingress-builder
233+
$(CONTAINER_TOOL) buildx use apisix-ingress-builder
234234
- $(CONTAINER_TOOL) buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile.cross .
235-
- $(CONTAINER_TOOL) buildx rm api7-ingress-builder
235+
- $(CONTAINER_TOOL) buildx rm apisix-ingress-builder
236236
rm Dockerfile.cross
237237

238238
.PHONY: build-installer

PROJECT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
domain: github.com
66
layout:
77
- go.kubebuilder.io/v4
8-
projectName: api7-ingress-controller
8+
projectName: apisix-ingress-controller
99
repo: github.com/api7/api7-ingress-controller
1010
resources:
1111
- api:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# api7-ingress-controller
1+
# apisix-ingress-controller
22

33
## Description
44

5-
The API7 Ingress Controller allows you to run the API7 Gateway as a Kubernetes Ingress to handle inbound traffic for a Kubernetes cluster. It dynamically configures and manages the API7 Gateway using Gateway API resources.
5+
The APISIX Ingress Controller allows you to run the APISIX Gateway as a Kubernetes Ingress to handle inbound traffic for a Kubernetes cluster. It dynamically configures and manages the API7 Gateway using Gateway API resources.
66

77
## Document
88

api/adc/types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ func NewDefaultService() *Service {
415415
return &Service{
416416
Metadata: Metadata{
417417
Labels: map[string]string{
418-
"managed-by": "api7-ingress-controller",
418+
"managed-by": "apisix-ingress-controller",
419419
},
420420
},
421421
Plugins: make(Plugins),
@@ -440,9 +440,9 @@ func NewDefaultUpstream() *Upstream {
440440
func NewDefaultRoute() *Route {
441441
return &Route{
442442
Metadata: Metadata{
443-
Desc: "Created by api7-ingress-controller, DO NOT modify it manually",
443+
Desc: "Created by apisix-ingress-controller, DO NOT modify it manually",
444444
Labels: map[string]string{
445-
"managed-by": "api7-ingress-controller",
445+
"managed-by": "apisix-ingress-controller",
446446
},
447447
},
448448
}

api/dashboard/v1/zz_generated.deepcopy.go

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

charts/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
2-
name: api7-ingress-controller-manager
3-
description: Api7 Ingress Controller for Kubernetes
2+
name: apisix-ingress-controller-manager
3+
description: APISIX Ingress Controller for Kubernetes
44
icon: https://apache.org/logos/res/apisix/apisix.png
55
keywords:
66
- ingress
@@ -11,7 +11,7 @@ type: application
1111
version: 0.1.0
1212
appVersion: 2.0.0
1313
sources:
14-
- https://github.com/api7/api7-ingress-controller
14+
- https://github.com/apache/apisix-ingress-controller
1515
maintainers:
1616
- name: AlinsRan
1717
- name: Revolyssup

charts/templates/_helpers.tpl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{{/*
22
Expand the name of the chart.
33
*/}}
4-
{{- define "api7-ingress-controller-manager.name" -}}
4+
{{- define "apisix-ingress-controller-manager.name" -}}
55
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
66
{{- end }}
77
{{/*
88
Create a default fully qualified app name.
99
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
1010
If release name contains chart name it will be used as a full name.
1111
*/}}
12-
{{- define "api7-ingress-controller-manager.name.fullname" -}}
12+
{{- define "apisix-ingress-controller-manager.name.fullname" -}}
1313
{{- if .Values.fullnameOverride }}
1414
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
1515
{{- else }}
@@ -24,15 +24,15 @@ If release name contains chart name it will be used as a full name.
2424
{{/*
2525
Create chart name and version as used by the chart label.
2626
*/}}
27-
{{- define "api7-ingress-controller-manager.chart" -}}
27+
{{- define "apisix-ingress-controller-manager.chart" -}}
2828
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
2929
{{- end }}
3030
{{/*
3131
Common labels
3232
*/}}
33-
{{- define "api7-ingress-controller-manager.labels" -}}
34-
helm.sh/chart: {{ include "api7-ingress-controller-manager.chart" . }}
35-
{{ include "api7-ingress-controller-manager.selectorLabels" . }}
33+
{{- define "apisix-ingress-controller-manager.labels" -}}
34+
helm.sh/chart: {{ include "apisix-ingress-controller-manager.chart" . }}
35+
{{ include "apisix-ingress-controller-manager.selectorLabels" . }}
3636
{{- if .Chart.AppVersion }}
3737
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
3838
{{- end }}
@@ -42,11 +42,11 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
4242
{{/*
4343
Selector labels
4444
*/}}
45-
{{- define "api7-ingress-controller-manager.selectorLabels" -}}
45+
{{- define "apisix-ingress-controller-manager.selectorLabels" -}}
4646
{{- if .Values.labelsOverride }}
4747
{{- tpl (.Values.labelsOverride | toYaml) . }}
4848
{{- else }}
49-
app.kubernetes.io/name: {{ include "api7-ingress-controller-manager.name" . }}
49+
app.kubernetes.io/name: {{ include "apisix-ingress-controller-manager.name" . }}
5050
app.kubernetes.io/instance: {{ .Release.Name }}
5151
{{- end }}
5252
{{- end }}

charts/templates/cluster_role.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRole
33
metadata:
4-
name: {{ .Release.Name }}-api7-ingress-manager-role
4+
name: {{ .Release.Name }}-apisix-ingress-manager-role
55
rules:
66
- apiGroups:
77
- ""
@@ -191,7 +191,7 @@ rules:
191191
apiVersion: rbac.authorization.k8s.io/v1
192192
kind: ClusterRole
193193
metadata:
194-
name: {{ .Release.Name }}-api7-ingress-metrics-auth-role
194+
name: {{ .Release.Name }}-apisix-ingress-metrics-auth-role
195195
rules:
196196
- apiGroups:
197197
- authentication.k8s.io
@@ -209,7 +209,7 @@ rules:
209209
apiVersion: rbac.authorization.k8s.io/v1
210210
kind: ClusterRole
211211
metadata:
212-
name: {{ .Release.Name }}-api7-ingress-metrics-reader
212+
name: {{ .Release.Name }}-apisix-ingress-metrics-reader
213213
rules:
214214
- nonResourceURLs:
215215
- /metrics

charts/templates/cluster_role_binding.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRoleBinding
33
metadata:
44
labels:
5-
{{- include "api7-ingress-controller-manager.labels" . | nindent 4 }}
6-
name: {{ .Release.Name }}-api7-ingress-manager-rolebinding
5+
{{- include "apisix-ingress-controller-manager.labels" . | nindent 4 }}
6+
name: {{ .Release.Name }}-apisix-ingress-manager-rolebinding
77
roleRef:
88
apiGroup: rbac.authorization.k8s.io
99
kind: ClusterRole
10-
name: {{ .Release.Name }}-api7-ingress-manager-role
10+
name: {{ .Release.Name }}-apisix-ingress-manager-role
1111
subjects:
1212
- kind: ServiceAccount
1313
name: {{ .Release.Name }}
@@ -16,11 +16,11 @@ subjects:
1616
apiVersion: rbac.authorization.k8s.io/v1
1717
kind: ClusterRoleBinding
1818
metadata:
19-
name: {{ .Release.Name }}-api7-ingress-metrics-auth-rolebinding
19+
name: {{ .Release.Name }}-apisix-ingress-metrics-auth-rolebinding
2020
roleRef:
2121
apiGroup: rbac.authorization.k8s.io
2222
kind: ClusterRole
23-
name: {{ .Release.Name }}-api7-ingress-metrics-auth-role
23+
name: {{ .Release.Name }}-apisix-ingress-metrics-auth-role
2424
subjects:
2525
- kind: ServiceAccount
2626
name: {{ .Release.Name }}

0 commit comments

Comments
 (0)