Skip to content

Commit

Permalink
fix namespace
Browse files Browse the repository at this point in the history
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
  • Loading branch information
zhaohuabing committed May 14, 2024
1 parent 932f992 commit f2c4371
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 142 deletions.
94 changes: 47 additions & 47 deletions test/helm/default-config.out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: envoy-gateway
namespace: 'default'
namespace: 'envoy-gateway-system'
labels:
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
---
Expand All @@ -17,11 +17,11 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: envoy-gateway-config
namespace: 'default'
namespace: 'envoy-gateway-system'
labels:
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
data:
Expand All @@ -47,7 +47,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: envoy-gateway-gateway-helm-envoy-gateway-role
name: eg-gateway-helm-envoy-gateway-role
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -163,26 +163,26 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: envoy-gateway-gateway-helm-envoy-gateway-rolebinding
name: eg-gateway-helm-envoy-gateway-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: envoy-gateway-gateway-helm-envoy-gateway-role
name: eg-gateway-helm-envoy-gateway-role
subjects:
- kind: ServiceAccount
name: 'envoy-gateway'
namespace: 'default'
namespace: 'envoy-gateway-system'
---
# Source: gateway-helm/templates/infra-manager-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: envoy-gateway-gateway-helm-infra-manager
namespace: 'default'
name: eg-gateway-helm-infra-manager
namespace: 'envoy-gateway-system'
labels:
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
rules:
Expand Down Expand Up @@ -220,12 +220,12 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: envoy-gateway-gateway-helm-leader-election-role
namespace: 'default'
name: eg-gateway-helm-leader-election-role
namespace: 'envoy-gateway-system'
labels:
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
rules:
Expand Down Expand Up @@ -265,62 +265,62 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: envoy-gateway-gateway-helm-infra-manager
namespace: 'default'
name: eg-gateway-helm-infra-manager
namespace: 'envoy-gateway-system'
labels:
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: 'envoy-gateway-gateway-helm-infra-manager'
name: 'eg-gateway-helm-infra-manager'
subjects:
- kind: ServiceAccount
name: 'envoy-gateway'
namespace: 'default'
namespace: 'envoy-gateway-system'
---
# Source: gateway-helm/templates/leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: envoy-gateway-gateway-helm-leader-election-rolebinding
namespace: 'default'
name: eg-gateway-helm-leader-election-rolebinding
namespace: 'envoy-gateway-system'
labels:
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: 'envoy-gateway-gateway-helm-leader-election-role'
name: 'eg-gateway-helm-leader-election-role'
subjects:
- kind: ServiceAccount
name: 'envoy-gateway'
namespace: 'default'
namespace: 'envoy-gateway-system'
---
# Source: gateway-helm/templates/envoy-gateway-service.yaml
apiVersion: v1
kind: Service
metadata:
name: envoy-gateway
namespace: 'default'
namespace: 'envoy-gateway-system'
labels:
control-plane: envoy-gateway
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
spec:
selector:
control-plane: envoy-gateway
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
ports:
- name: grpc
port: 18000
Expand All @@ -337,12 +337,12 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: envoy-gateway
namespace: 'default'
namespace: 'envoy-gateway-system'
labels:
control-plane: envoy-gateway
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
spec:
Expand All @@ -351,7 +351,7 @@ spec:
matchLabels:
control-plane: envoy-gateway
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
template:
metadata:
annotations:
Expand All @@ -360,7 +360,7 @@ spec:
labels:
control-plane: envoy-gateway
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
spec:
containers:
- args:
Expand Down Expand Up @@ -430,12 +430,12 @@ spec:
apiVersion: v1
kind: ServiceAccount
metadata:
name: envoy-gateway-gateway-helm-certgen
namespace: 'default'
name: eg-gateway-helm-certgen
namespace: 'envoy-gateway-system'
labels:
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
annotations:
Expand All @@ -445,12 +445,12 @@ metadata:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: envoy-gateway-gateway-helm-certgen
namespace: 'default'
name: eg-gateway-helm-certgen
namespace: 'envoy-gateway-system'
labels:
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
annotations:
Expand All @@ -469,35 +469,35 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: envoy-gateway-gateway-helm-certgen
namespace: 'default'
name: eg-gateway-helm-certgen
namespace: 'envoy-gateway-system'
labels:
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
annotations:
"helm.sh/hook": pre-install
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: 'envoy-gateway-gateway-helm-certgen'
name: 'eg-gateway-helm-certgen'
subjects:
- kind: ServiceAccount
name: 'envoy-gateway-gateway-helm-certgen'
namespace: 'default'
name: 'eg-gateway-helm-certgen'
namespace: 'envoy-gateway-system'
---
# Source: gateway-helm/templates/certgen.yaml
apiVersion: batch/v1
kind: Job
metadata:
name: envoy-gateway-gateway-helm-certgen
namespace: 'default'
name: eg-gateway-helm-certgen
namespace: 'envoy-gateway-system'
labels:
helm.sh/chart: gateway-helm-v0.0.0-latest
app.kubernetes.io/name: gateway-helm
app.kubernetes.io/instance: envoy-gateway
app.kubernetes.io/instance: eg
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
annotations:
Expand Down Expand Up @@ -532,5 +532,5 @@ spec:
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
serviceAccountName: envoy-gateway-gateway-helm-certgen
serviceAccountName: eg-gateway-helm-certgen
ttlSecondsAfterFinished: 30
Loading

0 comments on commit f2c4371

Please sign in to comment.