This commit is contained in:
2023-09-05 15:44:53 +08:00
parent d644296a54
commit 28149b86a6
7 changed files with 433 additions and 67 deletions

View File

@ -31,11 +31,11 @@ type AppServiceSpec struct {
// Important: Run "make" to regenerate code after modifying this file
// Foo is an example field of AppService. Edit appservice_types.go to remove/update
Size *int32 `json:"size"`
Image string `json:"image"`
Resource *Resources `json:"resource,omitempty"`
Envs []corev1.EnvVar `json:"envs,omitempty"`
Ports []corev1.ServicePort `json:"ports,omitempty"`
Size *int32 `json:"size"`
Image string `json:"image"`
Resources *Resources `json:"resource,omitempty"`
Envs []corev1.EnvVar `json:"envs,omitempty"`
Ports []corev1.ServicePort `json:"ports,omitempty"`
}
type Resources struct {

View File

@ -93,8 +93,8 @@ func (in *AppServiceSpec) DeepCopyInto(out *AppServiceSpec) {
*out = new(int32)
**out = **in
}
if in.Resource != nil {
in, out := &in.Resource, &out.Resource
if in.Resources != nil {
in, out := &in.Resources, &out.Resources
*out = new(Resources)
(*in).DeepCopyInto(*out)
}