Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 25, 2020 09:50
Show Gist options
  • Save velotiotech/66b51e30826738ee60d4583f18e911b9 to your computer and use it in GitHub Desktop.
Save velotiotech/66b51e30826738ee60d4583f18e911b9 to your computer and use it in GitHub Desktop.
type BookStoreSpec struct {
BookApp BookApp `json:"bookApp,omitempty"`
BookDB BookDB `json:"bookDB,omitempty"`
}
type BookApp struct {
Repository string `json:"repository,omitempty"`
Tag string `json:"tag,omitempty"`
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
Replicas int32 `json:"replicas,omitempty"`
Port int32 `json:"port,omitempty"`
TargetPort int `json:"targetPort,omitempty"`
ServiceType corev1.ServiceType `json:"serviceType,omitempty"`
}
type BookDB struct {
Repository string `json:"repository,omitempty"`
Tag string `json:"tag,omitempty"`
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
Replicas int32 `json:"replicas,omitempty"`
Port int32 `json:"port,omitempty"`
DBSize resource.Quantity `json:"dbSize,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment