Skip to content

Instantly share code, notes, and snippets.

@akash-gautam
Last active September 30, 2019 09:31
Show Gist options
  • Save akash-gautam/80b98dd4eb600453faf753f991a3ea7a to your computer and use it in GitHub Desktop.
Save akash-gautam/80b98dd4eb600453faf753f991a3ea7a 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