New behavior for nodeport + fix storage
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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"},
|
||||
|
Reference in New Issue
Block a user