Skip to content

Commit

Permalink
Drop version tpl files
Browse files Browse the repository at this point in the history
  • Loading branch information
shafeeqes committed Sep 29, 2023
1 parent 63f6112 commit cec9afe
Show file tree
Hide file tree
Showing 21 changed files with 18 additions and 113 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- printf "%s:%s" .repository .tag }}
{{- end }}
{{- end }}

{{- define "deploymentversion" -}}
apps/v1
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- printf "%s:%s" .repository .tag }}
{{- end }}
{{- end }}

{{- define "deploymentversion" -}}
apps/v1
{{- end -}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: {{ include "poddisruptionbudgetversion" . }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "name" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- printf "%s:%s" .repository .tag }}
{{- end }}
{{- end }}

{{- define "deploymentversion" -}}
apps/v1
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,3 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- printf "%s:%s" .Values.image.repository .Values.image.tag }}
{{- end }}
{{- end }}

{{- define "deploymentversion" -}}
apps/v1
{{- end -}}

{{- define "poddisruptionbudgetversion" -}}
policy/v1
{{- end -}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: {{ include "poddisruptionbudgetversion" . }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: gardener-extension-networking-cilium
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: {{ include "rbacversion" . }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cilium
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: {{ include "rbacversion" . }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cilium
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: {{ include "daemonsetversion" . }}
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: cilium
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: {{ include "rbacversion" . }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: hubble-relay
Expand All @@ -20,7 +20,7 @@ rules:
- list
- watch
---
apiVersion: {{ include "rbacversion" . }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: hubble-generate-certs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: {{ include "rbacversion" . }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: hubble-relay
Expand All @@ -14,7 +14,7 @@ subjects:
name: hubble-relay
namespace: {{ .Release.Namespace }}
---
apiVersion: {{ include "rbacversion" . }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: hubble-generate-certs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: {{ include "deploymentversion" .}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: {{ include "rbacversion" . }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: hubble-ui
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: {{ include "rbacversion" . }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: hubble-ui
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: {{ include "deploymentversion" .}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- $ingressPath := .Values.ingress.path -}}
apiVersion: {{ include "ingressversion" . }}
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: hubble-ui
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: {{ include "rbacversion" . }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cilium-operator
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: {{ include "rbacversion" . }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cilium-operator
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: {{ include "deploymentversion" . }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: cilium-operator
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: {{ include "poddisruptionbudgetversion" . }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: cilium-operator
Expand Down
75 changes: 0 additions & 75 deletions charts/utils-templates/templates/_versions.tpl

This file was deleted.

0 comments on commit cec9afe

Please sign in to comment.