Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove resource kind from resource names #329

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions charts/core/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ http://{{ .Values.manager.ingress.host }}
{{- else if not .Values.openshift }}
Get the NeuVector URL by running these commands:
{{- if contains "NodePort" .Values.manager.svc.type }}
NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services neuvector-service-webui)
NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services neuvector-webui)
NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo https://$NODE_IP:$NODE_PORT
{{- else if contains "ClusterIP" .Values.manager.svc.type }}
CLUSTER_IP=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.clusterIP}" services neuvector-service-webui)
CLUSTER_IP=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.clusterIP}" services neuvector-webui)
echo https://$CLUSTER_IP:8443
{{- else if contains "LoadBalancer" .Values.manager.svc.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
Watch the status by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w neuvector-service-webui'
Watch the status by running 'kubectl get svc --namespace {{ .Release.Namespace }} -w neuvector-webui'

SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} neuvector-service-webui -o jsonpath="{.status.loadBalancer.ingress[0].ip}")
SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} neuvector-webui -o jsonpath="{.status.loadBalancer.ingress[0].ip}")
echo https://$SERVICE_IP:8443
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/core/templates/admission-webhook-service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: neuvector-svc-admission-webhook
name: neuvector-admission-webhook
namespace: {{ .Release.Namespace }}
labels:
chart: {{ template "neuvector.chart" . }}
Expand All @@ -15,4 +15,4 @@ spec:
name: admission-webhook
type: {{ .Values.admissionwebhook.type }}
selector:
app: neuvector-controller-pod
app: neuvector-controller
12 changes: 6 additions & 6 deletions charts/core/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apiVersion: extensions/v1beta1
{{- end }}
kind: Deployment
metadata:
name: neuvector-controller-pod
name: neuvector-controller
namespace: {{ .Release.Namespace }}
labels:
chart: {{ template "neuvector.chart" . }}
Expand All @@ -23,11 +23,11 @@ spec:
{{ toYaml .Values.controller.strategy | indent 4 }}
selector:
matchLabels:
app: neuvector-controller-pod
app: neuvector-controller
template:
metadata:
labels:
app: neuvector-controller-pod
app: neuvector-controller
release: {{ .Release.Name }}
{{- with .Values.controller.podLabels }}
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -78,7 +78,7 @@ spec:
serviceAccount: {{ .Values.serviceAccount }}
{{- end }}
containers:
- name: neuvector-controller-pod
- name: neuvector-controller
{{- if .Values.global.azure.enabled }}
image: "{{ .Values.global.azure.images.controller.registry }}/{{ .Values.global.azure.images.controller.image }}@{{ .Values.global.azure.images.controller.digest }}"
{{- else }}
Expand Down Expand Up @@ -113,7 +113,7 @@ spec:
periodSeconds: 5
env:
- name: CLUSTER_JOIN_ADDR
value: neuvector-svc-controller.{{ .Release.Namespace }}
value: neuvector-controller.{{ .Release.Namespace }}
- name: CLUSTER_ADVERTISED_ADDR
valueFrom:
fieldRef:
Expand Down Expand Up @@ -287,6 +287,6 @@ spec:
minAvailable: {{ .Values.controller.disruptionbudget }}
selector:
matchLabels:
app: neuvector-controller-pod
app: neuvector-controller
{{- end }}
{{- end }}
12 changes: 6 additions & 6 deletions charts/core/templates/controller-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
pathType: Prefix
backend:
service:
name: neuvector-svc-controller-api
name: neuvector-controller-api
port:
number: 10443
{{- else }}
Expand Down Expand Up @@ -66,7 +66,7 @@ spec:
paths:
- path: {{ .Values.controller.ingress.path }}
backend:
serviceName: neuvector-svc-controller-api
serviceName: neuvector-controller-api
servicePort: 10443
{{- end }}
{{- end }}
Expand Down Expand Up @@ -106,7 +106,7 @@ spec:
pathType: Prefix
backend:
service:
name: neuvector-svc-controller-fed-master
name: neuvector-controller-fed-master
port:
number: 11443
{{- else }}
Expand Down Expand Up @@ -139,7 +139,7 @@ spec:
paths:
- path: {{ .Values.controller.federation.mastersvc.ingress.path }}
backend:
serviceName: neuvector-svc-controller-fed-master
serviceName: neuvector-controller-fed-master
servicePort: 11443
{{- end }}
{{- end }}
Expand Down Expand Up @@ -179,7 +179,7 @@ spec:
pathType: Prefix
backend:
service:
name: neuvector-svc-controller-fed-managed
name: neuvector-controller-fed-managed
port:
number: 10443
{{- else }}
Expand Down Expand Up @@ -212,7 +212,7 @@ spec:
paths:
- path: {{ .Values.controller.federation.managedsvc.ingress.path }}
backend:
serviceName: neuvector-svc-controller-fed-managed
serviceName: neuvector-controller-fed-managed
servicePort: 10443
{{- end }}
{{- end }}
Expand Down
6 changes: 3 additions & 3 deletions charts/core/templates/controller-route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
{{- end }}
to:
kind: Service
name: neuvector-svc-controller-api
name: neuvector-controller-api
port:
targetPort: controller-api
tls:
Expand Down Expand Up @@ -52,7 +52,7 @@ spec:
{{- end }}
to:
kind: Service
name: neuvector-svc-controller-fed-master
name: neuvector-controller-fed-master
port:
targetPort: fed
tls:
Expand Down Expand Up @@ -84,7 +84,7 @@ spec:
{{- end }}
to:
kind: Service
name: neuvector-svc-controller-fed-managed
name: neuvector-controller-fed-managed
port:
targetPort: fed
tls:
Expand Down
16 changes: 8 additions & 8 deletions charts/core/templates/controller-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Service
metadata:
name: neuvector-svc-controller
name: neuvector-controller
namespace: {{ .Release.Namespace }}
labels:
chart: {{ template "neuvector.chart" . }}
Expand All @@ -21,13 +21,13 @@ spec:
protocol: "UDP"
name: "cluster-udp-18301"
selector:
app: neuvector-controller-pod
app: neuvector-controller
{{- if .Values.controller.apisvc.type }}
---
apiVersion: v1
kind: Service
metadata:
name: neuvector-svc-controller-api
name: neuvector-controller-api
namespace: {{ .Release.Namespace }}
{{- with .Values.controller.apisvc.annotations }}
annotations:
Expand All @@ -44,14 +44,14 @@ spec:
protocol: "TCP"
name: "controller-api"
selector:
app: neuvector-controller-pod
app: neuvector-controller
{{ end -}}
{{- if .Values.controller.federation.mastersvc.type }}
---
apiVersion: v1
kind: Service
metadata:
name: neuvector-svc-controller-fed-master
name: neuvector-controller-fed-master
namespace: {{ .Release.Namespace }}
{{- with .Values.controller.federation.mastersvc.annotations }}
annotations:
Expand All @@ -68,14 +68,14 @@ spec:
name: fed
protocol: TCP
selector:
app: neuvector-controller-pod
app: neuvector-controller
{{ end -}}
{{- if .Values.controller.federation.managedsvc.type }}
---
apiVersion: v1
kind: Service
metadata:
name: neuvector-svc-controller-fed-managed
name: neuvector-controller-fed-managed
namespace: {{ .Release.Namespace }}
{{- with .Values.controller.federation.managedsvc.annotations }}
annotations:
Expand All @@ -92,6 +92,6 @@ spec:
name: fed
protocol: TCP
selector:
app: neuvector-controller-pod
app: neuvector-controller
{{ end -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/core/templates/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: neuvector-svc-crd-webhook
name: neuvector-crd-webhook
namespace: {{ .Release.Namespace }}
labels:
chart: {{ template "neuvector.chart" . }}
Expand All @@ -841,5 +841,5 @@ spec:
name: crd-webhook
type: {{ .Values.crdwebhook.type }}
selector:
app: neuvector-controller-pod
app: neuvector-controller
{{- end }}
8 changes: 4 additions & 4 deletions charts/core/templates/csp-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: neuvector-csp-pod
name: neuvector-csp
namespace: {{ .Release.Namespace }}
labels:
chart: {{ template "neuvector.chart" . }}
Expand All @@ -15,11 +15,11 @@ metadata:
spec:
selector:
matchLabels:
app: neuvector-csp-pod
app: neuvector-csp
template:
metadata:
labels:
app: neuvector-csp-pod
app: neuvector-csp
release: {{ .Release.Name }}
spec:
{{- if .Values.global.aws.imagePullSecrets }}
Expand Down Expand Up @@ -57,7 +57,7 @@ spec:
{{- else if and .Values.global.azure.enabled }}
image: "{{ .Values.global.azure.images.neuvector_csp_pod.registry }}/{{ .Values.global.azure.images.neuvector_csp_pod.image }}@{{ .Values.global.azure.images.neuvector_csp_pod.digest }}"
{{- end }}
name: neuvector-csp-pod
name: neuvector-csp
{{- if .Values.global.aws.enabled }}
imagePullPolicy: "{{ .Values.global.aws.image.imagePullPolicy }}"
{{- else if .Values.global.azure.enabled }}
Expand Down
10 changes: 5 additions & 5 deletions charts/core/templates/enforcer-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apiVersion: extensions/v1beta1
{{- end }}
kind: DaemonSet
metadata:
name: neuvector-enforcer-pod
name: neuvector-enforcer
namespace: {{ .Release.Namespace }}
labels:
chart: {{ template "neuvector.chart" . }}
Expand All @@ -16,11 +16,11 @@ spec:
updateStrategy: {{- toYaml .Values.enforcer.updateStrategy | nindent 4 }}
selector:
matchLabels:
app: neuvector-enforcer-pod
app: neuvector-enforcer
template:
metadata:
labels:
app: neuvector-enforcer-pod
app: neuvector-enforcer
release: {{ .Release.Name }}
{{- with .Values.enforcer.podLabels }}
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -50,7 +50,7 @@ spec:
serviceAccount: {{ .Values.serviceAccount }}
{{- end }}
containers:
- name: neuvector-enforcer-pod
- name: neuvector-enforcer
{{- if .Values.global.azure.enabled }}
image: "{{ .Values.global.azure.images.enforcer.registry }}/{{ .Values.global.azure.images.enforcer.image }}@{{ .Values.global.azure.images.enforcer.digest }}"
{{- else }}
Expand Down Expand Up @@ -78,7 +78,7 @@ spec:
{{- end }}
env:
- name: CLUSTER_JOIN_ADDR
value: neuvector-svc-controller.{{ .Release.Namespace }}
value: neuvector-controller.{{ .Release.Namespace }}
- name: CLUSTER_ADVERTISED_ADDR
valueFrom:
fieldRef:
Expand Down
12 changes: 6 additions & 6 deletions charts/core/templates/manager-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apiVersion: extensions/v1beta1
{{- end }}
kind: Deployment
metadata:
name: neuvector-manager-pod
name: neuvector-manager
namespace: {{ .Release.Namespace }}
labels:
chart: {{ template "neuvector.chart" . }}
Expand All @@ -16,11 +16,11 @@ spec:
replicas: 1
selector:
matchLabels:
app: neuvector-manager-pod
app: neuvector-manager
template:
metadata:
labels:
app: neuvector-manager-pod
app: neuvector-manager
release: {{ .Release.Name }}
{{- with .Values.manager.podLabels }}
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -66,7 +66,7 @@ spec:
runAsUser: {{ .Values.manager.runAsUser }}
{{- end }}
containers:
- name: neuvector-manager-pod
- name: neuvector-manager
{{- if .Values.global.azure.enabled }}
image: "{{ .Values.global.azure.images.manager.registry }}/{{ .Values.global.azure.images.manager.image }}@{{ .Values.global.azure.images.manager.digest }}"
{{- else }}
Expand All @@ -86,7 +86,7 @@ spec:
{{- end }}
env:
- name: CTRL_SERVER_IP
value: neuvector-svc-controller.{{ .Release.Namespace }}
value: neuvector-controller.{{ .Release.Namespace }}
{{- if not .Values.manager.env.ssl }}
- name: MANAGER_SSL
value: "off"
Expand Down Expand Up @@ -129,6 +129,6 @@ spec:
{{- else if .Values.autoGenerateCert }}
- name: cert
secret:
secretName: neuvector-manager-secret
secretName: neuvector-manager
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/core/templates/manager-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
pathType: Prefix
backend:
service:
name: neuvector-service-webui
name: neuvector-webui
port:
number: 8443
{{- else }}
Expand Down Expand Up @@ -65,7 +65,7 @@ spec:
paths:
- path: {{ .Values.manager.ingress.path }}
backend:
serviceName: neuvector-service-webui
serviceName: neuvector-webui
servicePort: 8443
{{- end }}
{{- end -}}
Loading
Loading