mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-05 09:06:22 -03:00
add capabilities
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
{{/* Return the appropriate apiVersion for deployment */}}
|
||||
{{/* Return the appropriate apiVersion for Deployment */}}
|
||||
{{- define "ix.v1.common.capabilities.deployment.apiVersion" -}}
|
||||
{{- print "apps/v1" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Return the appropriate apiVersion for statefulset */}}
|
||||
{{/* Return the appropriate apiVersion for Statefulset */}}
|
||||
{{- define "ix.v1.common.capabilities.statefulset.apiVersion" -}}
|
||||
{{- print "apps/v1" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Return the appropriate apiVersion for daemonset */}}
|
||||
{{/* Return the appropriate apiVersion for Daemonset */}}
|
||||
{{- define "ix.v1.common.capabilities.daemonset.apiVersion" -}}
|
||||
{{- print "apps/v1" -}}
|
||||
{{- end -}}
|
||||
@@ -28,37 +28,42 @@
|
||||
{{- print "v1" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Return the appropriate apiVersion for clusterRole */}}
|
||||
{{/* Return the appropriate apiVersion for ClusterRole */}}
|
||||
{{- define "ix.v1.common.capabilities.clusterRole.apiVersion" -}}
|
||||
{{- print "rbac.authorization.k8s.io/v1" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Return the appropriate apiVersion for role */}}
|
||||
{{/* Return the appropriate apiVersion for Role */}}
|
||||
{{- define "ix.v1.common.capabilities.role.apiVersion" -}}
|
||||
{{- print "rbac.authorization.k8s.io/v1" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Return the appropriate apiVersion for roleBinding */}}
|
||||
{{/* Return the appropriate apiVersion for RoleBinding */}}
|
||||
{{- define "ix.v1.common.capabilities.roleBinding.apiVersion" -}}
|
||||
{{- print "rbac.authorization.k8s.io/v1" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Return the appropriate apiVersion for clusterRoleBinding */}}
|
||||
{{/* Return the appropriate apiVersion for ClusterRoleBinding */}}
|
||||
{{- define "ix.v1.common.capabilities.clusterRoleBinding.apiVersion" -}}
|
||||
{{- print "rbac.authorization.k8s.io/v1" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Return the appropriate apiVersion for service */}}
|
||||
{{/* Return the appropriate apiVersion for Service */}}
|
||||
{{- define "ix.v1.common.capabilities.service.apiVersion" -}}
|
||||
{{- print "v1" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Return the appropriate apiVersion for endpoints */}}
|
||||
{{/* Return the appropriate apiVersion for Endpoints */}}
|
||||
{{- define "ix.v1.common.capabilities.endpoints.apiVersion" -}}
|
||||
{{- print "v1" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Return the appropriate apiVersion for persistentVolumeClaim */}}
|
||||
{{/* Return the appropriate apiVersion for PersistentVolumeClaim */}}
|
||||
{{- define "ix.v1.common.capabilities.pvc.apiVersion" -}}
|
||||
{{- print "v1" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Return the appropriate apiVersion for NetworkAttachmentDefinition */}}
|
||||
{{- define "ix.v1.common.capabilities.externalInterfaces.apiVersion" -}}
|
||||
{{- print "k8s.cni.cncf.io/v1" | quote -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user