New behavior for nodeport + fix storage

This commit is contained in:
2021-12-01 16:50:32 +01:00
parent 2fb62bb554
commit 769c9b6c6c
5 changed files with 54 additions and 24 deletions

View File

@@ -34,6 +34,7 @@ func NewServicePort(port, target int) *ServicePort {
type ServiceSpec struct {
Selector map[string]string
Ports []*ServicePort
Type string `yaml:"type,omitempty"`
}
func NewServiceSpec() *ServiceSpec {

View File

@@ -16,7 +16,7 @@ func NewPVC(name, storageName string) *Storage {
pvc.Spec = &PVCSpec{
Resouces: map[string]interface{}{
"requests": map[string]string{
"capacity": "{{ .Values." + name + ".persistence." + storageName + ".capacity }}",
"storage": "{{ .Values." + name + ".persistence." + storageName + ".capacity }}",
},
},
AccessModes: []string{"ReadWriteOnce"},