This commit is contained in:
2023-09-05 14:43:02 +08:00
parent 7c0ea16e35
commit d644296a54
4 changed files with 182 additions and 7 deletions

View File

@ -31,7 +31,7 @@ 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"`
Size *int32 `json:"size"`
Image string `json:"image"`
Resource *Resources `json:"resource,omitempty"`
Envs []corev1.EnvVar `json:"envs,omitempty"`

View File

@ -88,6 +88,11 @@ func (in *AppServiceList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AppServiceSpec) DeepCopyInto(out *AppServiceSpec) {
*out = *in
if in.Size != nil {
in, out := &in.Size, &out.Size
*out = new(int32)
**out = **in
}
if in.Resource != nil {
in, out := &in.Resource, &out.Resource
*out = new(Resources)