mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 20:21:20 +00:00
Remove unused YAML tags and GetYAML/SetYAML methods
Unneeded after move to ghodss/yaml.
This commit is contained in:
@@ -45,13 +45,13 @@ const usage = "usage: simplegen filename"
|
||||
|
||||
type SimpleService struct {
|
||||
// Optional: Defaults to image base name if not specified
|
||||
Name string `yaml:"name,omitempty" json:"name,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
// Required.
|
||||
Image string `yaml:"image" json:"image"`
|
||||
Image string `json:"image"`
|
||||
// Optional: Defaults to one
|
||||
Replicas int `yaml:"replicas,omitempty" json:"replicas,omitempty"`
|
||||
Replicas int `json:"replicas,omitempty"`
|
||||
// Optional: Creates a service if specified: servicePort:containerPort
|
||||
PortSpec string `yaml:"portSpec,omitempty" json:"portSpec,omitempty"`
|
||||
PortSpec string `json:"portSpec,omitempty"`
|
||||
}
|
||||
|
||||
func checkErr(err error) {
|
||||
|
Reference in New Issue
Block a user