Skip to content

Commit

Permalink
Merge pull request #12 from mfranczy/bugfix/machine-resource-type
Browse files Browse the repository at this point in the history
Bugfix/machine-class resource type
  • Loading branch information
stoyanr authored Aug 14, 2020
2 parents 108c709 + 42e37f7 commit 8c42039
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions charts/internal/machine-class/templates/machine-class.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@ apiVersion: machine.sapcloud.io/v1alpha1
kind: MachineClass
metadata:
name: {{ $machineClass.name }}
namespace: {{ $.Release.Namespace }}
namespace: "{{ $.Release.Namespace }}"
providerSpec:
{{- if $machineClass.storageClassName }}
storageClassName: {{ $machineClass.storageClassName }}
storageClassName: "{{ $machineClass.storageClassName }}"
{{ end }}
{{- if $machineClass.pvcSize }}
pvcSize: {{ $machineClass.pvcSize }}
pvcSize: "{{ $machineClass.pvcSize }}"
{{ end }}
{{- if $machineClass.sourceURL }}
sourceURL: {{ $machineClass.sourceURL }}
sourceURL: "{{ $machineClass.sourceURL }}"
{{ end }}
{{- if $machineClass.cpus }}
cpus: {{ $machineClass.cpus }}
cpus: "{{ $machineClass.cpus }}"
{{ end }}
{{- if $machineClass.memory }}
memory: {{ $machineClass.memory }}
memory: "{{ $machineClass.memory }}"
{{ end }}
{{- if $machineClass.namespace }}
namespace: {{ $machineClass.namespace }}
namespace: "{{ $machineClass.namespace }}"
{{ end }}
secretRef:
name: {{ $machineClass.name }}
namespace: {{ $.Release.Namespace }}
name: "{{ $machineClass.name }}"
namespace: "{{ $.Release.Namespace }}"
provider: kubevirtdriver//127.0.0.1:8080
{{- end }}

0 comments on commit 8c42039

Please sign in to comment.