Skip to content

Commit f6f0869

Browse files
committed
chore: update helm chart
1 parent 298943b commit f6f0869

File tree

6 files changed

+109
-66
lines changed

6 files changed

+109
-66
lines changed

.github/workflows/push-docker.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: push on dockerhub
22
on:
33
release:
44
types: [published]
5-
5+
push:
6+
branches:
7+
- release-v2-dev
8+
workflow_dispatch:
69
jobs:
710
docker:
811
runs-on: ubuntu-20.04

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,9 @@ mv $(1) $(1)-$(3) ;\
316316
} ;\
317317
ln -sf $(1)-$(3) $(1)
318318
endef
319+
320+
charts-crds:
321+
@echo "build gateway-api standard crds"
322+
$(KUSTOMIZE) build github.com/kubernetes-sigs/gateway-api/config/crd\?ref=${GATEAY_API_VERSION} > charts/crds/gwapi-crds.yaml
323+
@echo "build apisix ic crds"
324+
$(KUSTOMIZE) build config/crd > charts/crds/apisixic-crds.yaml

charts/crds/gateway.apisix.io_plugingconfig.yaml

Lines changed: 0 additions & 58 deletions
This file was deleted.

charts/templates/cluster_role.yaml

Lines changed: 84 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ rules:
1313
- apiGroups:
1414
- ""
1515
resources:
16-
- services
16+
- namespaces
1717
verbs:
1818
- get
1919
- list
@@ -29,7 +29,68 @@ rules:
2929
- apiGroups:
3030
- ""
3131
resources:
32-
- namespaces
32+
- services
33+
verbs:
34+
- get
35+
- list
36+
- watch
37+
- apiGroups:
38+
- apisix.apache.org
39+
resources:
40+
- backendtrafficpolicies
41+
verbs:
42+
- get
43+
- list
44+
- watch
45+
- apiGroups:
46+
- apisix.apache.org
47+
resources:
48+
- backendtrafficpolicies/status
49+
verbs:
50+
- get
51+
- update
52+
- apiGroups:
53+
- apisix.apache.org
54+
resources:
55+
- consumers
56+
verbs:
57+
- get
58+
- list
59+
- watch
60+
- apiGroups:
61+
- apisix.apache.org
62+
resources:
63+
- consumers/status
64+
verbs:
65+
- get
66+
- update
67+
- apiGroups:
68+
- apisix.apache.org
69+
resources:
70+
- gatewayproxies
71+
verbs:
72+
- get
73+
- list
74+
- watch
75+
- apiGroups:
76+
- apisix.apache.org
77+
resources:
78+
- httproutepolicies
79+
verbs:
80+
- get
81+
- list
82+
- watch
83+
- apiGroups:
84+
- apisix.apache.org
85+
resources:
86+
- httproutepolicies/status
87+
verbs:
88+
- get
89+
- update
90+
- apiGroups:
91+
- apisix.apache.org
92+
resources:
93+
- pluginconfigs
3394
verbs:
3495
- get
3596
- list
@@ -102,12 +163,29 @@ rules:
102163
- get
103164
- update
104165
- apiGroups:
105-
- apisix.apache.org
166+
- networking.k8s.io
106167
resources:
107-
- pluginconfigs
108-
- pluginsconfigs/status
168+
- ingressclasses
169+
verbs:
170+
- get
171+
- list
172+
- watch
173+
- apiGroups:
174+
- networking.k8s.io
175+
resources:
176+
- ingresses
109177
verbs:
110-
- '*'
178+
- get
179+
- list
180+
- update
181+
- watch
182+
- apiGroups:
183+
- networking.k8s.io
184+
resources:
185+
- ingresses/status
186+
verbs:
187+
- get
188+
- update
111189

112190
---
113191
apiVersion: rbac.authorization.k8s.io/v1

charts/templates/deployment.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,16 @@ spec:
2626
{{- include "api7-ingress-controller-manager.selectorLabels" . | nindent 8 }}
2727
spec:
2828
containers:
29-
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
29+
- env:
30+
- name: POD_NAMESPACE
31+
valueFrom:
32+
fieldRef:
33+
fieldPath: metadata.namespace
34+
- name: POD_NAME
35+
valueFrom:
36+
fieldRef:
37+
fieldPath: metadata.name
38+
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
3039
volumeMounts:
3140
- name: {{ .Release.Name }}-ingress-config
3241
mountPath: /app/conf/config.yaml

charts/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nameOverride: ""
2+
fullnameOverride: ""
23
labelsOverride: {}
34
annotations: {}
45
podAnnotations: {}
@@ -35,3 +36,7 @@ image:
3536
repository: api7/api7-ingress-controller
3637
pullPolicy: IfNotPresent
3738
tag: "dev"
39+
40+
autoscaling:
41+
enabled: false
42+
minReplicas: 1

0 commit comments

Comments
 (0)