Nicholas LoFaso
02/07/2022, 7:39 PMhelm
it does not seem to be pulling in all the changes. Specifically kind: Ingress
and kind: CustomResourceDefinition
are still using v1beta1
.
I have run
helm repo update
helm template --version v0.19.2 ...
kubectl apply -f flyte_generated_dev.yaml -n flyte
serviceaccount/flytescheduler created
serviceaccount/flyte-pod-webhook created
secret/flyte-admin-secrets created
secret/flyte-secret-auth created
secret/db-pass created
secret/flyte-pod-webhook created
configmap/flyte-admin-config created
configmap/clusterresource-template created
configmap/flyte-clusterresourcesync-config created
configmap/flyte-console-config created
configmap/datacatalog-config created
configmap/flyte-scheduler-config created
configmap/flyte-propeller-config created
<http://clusterrole.rbac.authorization.k8s.io/flyteadmin|clusterrole.rbac.authorization.k8s.io/flyteadmin> created
<http://clusterrole.rbac.authorization.k8s.io/flytepropeller|clusterrole.rbac.authorization.k8s.io/flytepropeller> created
<http://clusterrole.rbac.authorization.k8s.io/flyte-pod-webhook|clusterrole.rbac.authorization.k8s.io/flyte-pod-webhook> created
<http://clusterrolebinding.rbac.authorization.k8s.io/flyteadmin-binding|clusterrolebinding.rbac.authorization.k8s.io/flyteadmin-binding> created
<http://clusterrolebinding.rbac.authorization.k8s.io/flytepropeller|clusterrolebinding.rbac.authorization.k8s.io/flytepropeller> created
<http://clusterrolebinding.rbac.authorization.k8s.io/flyte-pod-webhook|clusterrolebinding.rbac.authorization.k8s.io/flyte-pod-webhook> created
service/flyteadmin created
service/flyteconsole created
service/datacatalog created
service/flyte-pod-webhook created
deployment.apps/flyteadmin created
deployment.apps/flyteconsole created
deployment.apps/datacatalog created
deployment.apps/flytescheduler created
deployment.apps/flytepropeller created
deployment.apps/flyte-pod-webhook created
Warning: batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob
cronjob.batch/syncresources created
unable to recognize "flyte_generated_dev.yaml": no matches for kind "CustomResourceDefinition" in version "<http://apiextensions.k8s.io/v1beta1|apiextensions.k8s.io/v1beta1>"
unable to recognize "flyte_generated_dev.yaml": no matches for kind "Ingress" in version "<http://networking.k8s.io/v1beta1|networking.k8s.io/v1beta1>"
Am I missing something?Rodrigo Baron
02/07/2022, 8:28 PMkubectl apply -f <https://raw.githubusercontent.com/rodrigobaron/flyte/issues/k8s_compt/deployment/sandbox/flyte_helm_generated.yaml> -n flyte
<- this is an open PRHaytham Abuelfutuh
Nicholas LoFaso
02/07/2022, 9:08 PMhelm template
command to resolve this piece of code correctly:
{{- if $.Capabilities.APIVersions.Has "<http://networking.k8s.io/v1/Ingress|networking.k8s.io/v1/Ingress>" }}
apiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1>
{{- else }}
apiVersion: <http://networking.k8s.io/v1beta1|networking.k8s.io/v1beta1>
{{- end }}
helm install
and it works 😄. So it seems helm template
for some reason thinks we’re on an older version of k8s. Even if I specify --api-versions
Haytham Abuelfutuh
--api-versions
?Nicholas LoFaso
02/07/2022, 9:24 PMHaytham Abuelfutuh