Skip to content

Commit

Permalink
[Values] Proper structure for infra selection in .Values.global (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpirogovski authored Sep 5, 2024
1 parent ceca152 commit c72cc81
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/mlrun-ce/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: mlrun-ce
version: 0.6.4-rc10
version: 0.6.4-rc11
description: MLRun Open Source Stack
home: https://iguazio.com
icon: https://www.iguazio.com/wp-content/uploads/2019/10/Iguazio-Logo.png
Expand Down
6 changes: 3 additions & 3 deletions charts/mlrun-ce/templates/aws/aws_ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and (eq .Values.global.infrastructure.provider "aws") (eq .Values.global.infrastructure.kind "cloud") }}
{{- if and (eq .Values.global.infrastructure.kind "aws") (eq .Values.global.infrastructure.provider "eks") }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand All @@ -12,8 +12,8 @@ metadata:
{{- if .Values.global.infrastructure.loadBalancerName }}
alb.ingress.kubernetes.io/load-balancer-name: {{ .Values.global.infrastructure.loadBalancerName }}
{{- end }}
{{- if .Values.global.domainNameCertificate }}
alb.ingress.kubernetes.io/certificate-arn: {{ .Values.global.domainNameCertificate }}
{{- if .Values.global.infrastructure.aws.domainNameCertificate }}
alb.ingress.kubernetes.io/certificate-arn: {{ .Values.global.infrastructure.aws.domainNameCertificate }}
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]'
alb.ingress.kubernetes.io/ssl-redirect: '443'
{{- else }}
Expand Down
7 changes: 5 additions & 2 deletions charts/mlrun-ce/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ global:
dashboard:
nodePort: 30050
infrastructure:
kind: lab
# Defines infra flavour, for instance: standalone, onprem, aws, azure, gcp...
kind: standalone
# Defines k8s flavour, for instance: eks, aks, gcp, kubespray, openshift, rancher, minikube...
provider: ~
inboundCidrs: ~
loadBalancerName: ~
aws:
bucketName: ~
s3NonAnonymous: ~
s3NonAnonymous: True
domainNameCertificate: ~

nuclio:
# coupled with mlrun.nuclio.dashboardName template in mlrun chart
Expand Down

0 comments on commit c72cc81

Please sign in to comment.