mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-12 22:07:47 +02:00
Patch deployment spec metadata (#928)
This commit is contained in:
@ -8,6 +8,16 @@ type Kubernetes interface {
|
||||
ListDeployments(labels map[string]string) (*DeploymentList, error)
|
||||
}
|
||||
|
||||
// Template is micro deployment template
|
||||
type Template struct {
|
||||
Metadata *Metadata `json:"metadata,omitempty"`
|
||||
}
|
||||
|
||||
// Spec defines micro deployment spec
|
||||
type Spec struct {
|
||||
Template *Template `json:"template,omitempty"`
|
||||
}
|
||||
|
||||
// Metadata defines api request metadata
|
||||
type Metadata struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
|
Reference in New Issue
Block a user