diff --git a/apis/cse/v1beta1/zz_generated.deepcopy.go b/apis/cse/v1beta1/zz_generated.deepcopy.go deleted file mode 100644 index 701968b3..00000000 --- a/apis/cse/v1beta1/zz_generated.deepcopy.go +++ /dev/null @@ -1,849 +0,0 @@ -//go:build !ignore_autogenerated -// +build !ignore_autogenerated - -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by controller-gen. DO NOT EDIT. - -package v1beta1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigCenterAddressesObservation) DeepCopyInto(out *ConfigCenterAddressesObservation) { - *out = *in - if in.Private != nil { - in, out := &in.Private, &out.Private - *out = new(string) - **out = **in - } - if in.Public != nil { - in, out := &in.Public, &out.Public - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigCenterAddressesObservation. -func (in *ConfigCenterAddressesObservation) DeepCopy() *ConfigCenterAddressesObservation { - if in == nil { - return nil - } - out := new(ConfigCenterAddressesObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ConfigCenterAddressesParameters) DeepCopyInto(out *ConfigCenterAddressesParameters) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigCenterAddressesParameters. -func (in *ConfigCenterAddressesParameters) DeepCopy() *ConfigCenterAddressesParameters { - if in == nil { - return nil - } - out := new(ConfigCenterAddressesParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DataCenterObservation) DeepCopyInto(out *DataCenterObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataCenterObservation. -func (in *DataCenterObservation) DeepCopy() *DataCenterObservation { - if in == nil { - return nil - } - out := new(DataCenterObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DataCenterParameters) DeepCopyInto(out *DataCenterParameters) { - *out = *in - if in.AvailabilityZone != nil { - in, out := &in.AvailabilityZone, &out.AvailabilityZone - *out = new(string) - **out = **in - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataCenterParameters. -func (in *DataCenterParameters) DeepCopy() *DataCenterParameters { - if in == nil { - return nil - } - out := new(DataCenterParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HealthCheckObservation) DeepCopyInto(out *HealthCheckObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheckObservation. -func (in *HealthCheckObservation) DeepCopy() *HealthCheckObservation { - if in == nil { - return nil - } - out := new(HealthCheckObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HealthCheckParameters) DeepCopyInto(out *HealthCheckParameters) { - *out = *in - if in.Interval != nil { - in, out := &in.Interval, &out.Interval - *out = new(float64) - **out = **in - } - if in.MaxRetries != nil { - in, out := &in.MaxRetries, &out.MaxRetries - *out = new(float64) - **out = **in - } - if in.Mode != nil { - in, out := &in.Mode, &out.Mode - *out = new(string) - **out = **in - } - if in.Port != nil { - in, out := &in.Port, &out.Port - *out = new(float64) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCheckParameters. -func (in *HealthCheckParameters) DeepCopy() *HealthCheckParameters { - if in == nil { - return nil - } - out := new(HealthCheckParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Microservice) DeepCopyInto(out *Microservice) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Microservice. -func (in *Microservice) DeepCopy() *Microservice { - if in == nil { - return nil - } - out := new(Microservice) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Microservice) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceEngine) DeepCopyInto(out *MicroserviceEngine) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceEngine. -func (in *MicroserviceEngine) DeepCopy() *MicroserviceEngine { - if in == nil { - return nil - } - out := new(MicroserviceEngine) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MicroserviceEngine) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceEngineList) DeepCopyInto(out *MicroserviceEngineList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]MicroserviceEngine, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceEngineList. -func (in *MicroserviceEngineList) DeepCopy() *MicroserviceEngineList { - if in == nil { - return nil - } - out := new(MicroserviceEngineList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MicroserviceEngineList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceEngineObservation) DeepCopyInto(out *MicroserviceEngineObservation) { - *out = *in - if in.ConfigCenterAddresses != nil { - in, out := &in.ConfigCenterAddresses, &out.ConfigCenterAddresses - *out = make([]ConfigCenterAddressesObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.InstanceLimit != nil { - in, out := &in.InstanceLimit, &out.InstanceLimit - *out = new(float64) - **out = **in - } - if in.ServiceLimit != nil { - in, out := &in.ServiceLimit, &out.ServiceLimit - *out = new(float64) - **out = **in - } - if in.ServiceRegistryAddresses != nil { - in, out := &in.ServiceRegistryAddresses, &out.ServiceRegistryAddresses - *out = make([]ServiceRegistryAddressesObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceEngineObservation. -func (in *MicroserviceEngineObservation) DeepCopy() *MicroserviceEngineObservation { - if in == nil { - return nil - } - out := new(MicroserviceEngineObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceEngineParameters) DeepCopyInto(out *MicroserviceEngineParameters) { - *out = *in - if in.AdminPassSecretRef != nil { - in, out := &in.AdminPassSecretRef, &out.AdminPassSecretRef - *out = new(v1.SecretKeySelector) - **out = **in - } - if in.AuthType != nil { - in, out := &in.AuthType, &out.AuthType - *out = new(string) - **out = **in - } - if in.AvailabilityZones != nil { - in, out := &in.AvailabilityZones, &out.AvailabilityZones - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in - } - if in.EIPID != nil { - in, out := &in.EIPID, &out.EIPID - *out = new(string) - **out = **in - } - if in.EIPIDRef != nil { - in, out := &in.EIPIDRef, &out.EIPIDRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.EIPIDSelector != nil { - in, out := &in.EIPIDSelector, &out.EIPIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.EnterpriseProjectID != nil { - in, out := &in.EnterpriseProjectID, &out.EnterpriseProjectID - *out = new(string) - **out = **in - } - if in.ExtendParams != nil { - in, out := &in.ExtendParams, &out.ExtendParams - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.Flavor != nil { - in, out := &in.Flavor, &out.Flavor - *out = new(string) - **out = **in - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.NetworkID != nil { - in, out := &in.NetworkID, &out.NetworkID - *out = new(string) - **out = **in - } - if in.NetworkIDRef != nil { - in, out := &in.NetworkIDRef, &out.NetworkIDRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.NetworkIDSelector != nil { - in, out := &in.NetworkIDSelector, &out.NetworkIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.Version != nil { - in, out := &in.Version, &out.Version - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceEngineParameters. -func (in *MicroserviceEngineParameters) DeepCopy() *MicroserviceEngineParameters { - if in == nil { - return nil - } - out := new(MicroserviceEngineParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceEngineSpec) DeepCopyInto(out *MicroserviceEngineSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceEngineSpec. -func (in *MicroserviceEngineSpec) DeepCopy() *MicroserviceEngineSpec { - if in == nil { - return nil - } - out := new(MicroserviceEngineSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceEngineStatus) DeepCopyInto(out *MicroserviceEngineStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceEngineStatus. -func (in *MicroserviceEngineStatus) DeepCopy() *MicroserviceEngineStatus { - if in == nil { - return nil - } - out := new(MicroserviceEngineStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceInstance) DeepCopyInto(out *MicroserviceInstance) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceInstance. -func (in *MicroserviceInstance) DeepCopy() *MicroserviceInstance { - if in == nil { - return nil - } - out := new(MicroserviceInstance) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MicroserviceInstance) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceInstanceList) DeepCopyInto(out *MicroserviceInstanceList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]MicroserviceInstance, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceInstanceList. -func (in *MicroserviceInstanceList) DeepCopy() *MicroserviceInstanceList { - if in == nil { - return nil - } - out := new(MicroserviceInstanceList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MicroserviceInstanceList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceInstanceObservation) DeepCopyInto(out *MicroserviceInstanceObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.Status != nil { - in, out := &in.Status, &out.Status - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceInstanceObservation. -func (in *MicroserviceInstanceObservation) DeepCopy() *MicroserviceInstanceObservation { - if in == nil { - return nil - } - out := new(MicroserviceInstanceObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceInstanceParameters) DeepCopyInto(out *MicroserviceInstanceParameters) { - *out = *in - if in.AdminPassSecretRef != nil { - in, out := &in.AdminPassSecretRef, &out.AdminPassSecretRef - *out = new(v1.SecretKeySelector) - **out = **in - } - if in.AdminUser != nil { - in, out := &in.AdminUser, &out.AdminUser - *out = new(string) - **out = **in - } - if in.ConnectAddress != nil { - in, out := &in.ConnectAddress, &out.ConnectAddress - *out = new(string) - **out = **in - } - if in.ConnectAddressRef != nil { - in, out := &in.ConnectAddressRef, &out.ConnectAddressRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.ConnectAddressSelector != nil { - in, out := &in.ConnectAddressSelector, &out.ConnectAddressSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.DataCenter != nil { - in, out := &in.DataCenter, &out.DataCenter - *out = make([]DataCenterParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Endpoints != nil { - in, out := &in.Endpoints, &out.Endpoints - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.HealthCheck != nil { - in, out := &in.HealthCheck, &out.HealthCheck - *out = make([]HealthCheckParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.HostName != nil { - in, out := &in.HostName, &out.HostName - *out = new(string) - **out = **in - } - if in.MicroserviceID != nil { - in, out := &in.MicroserviceID, &out.MicroserviceID - *out = new(string) - **out = **in - } - if in.MicroserviceIDRef != nil { - in, out := &in.MicroserviceIDRef, &out.MicroserviceIDRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.MicroserviceIDSelector != nil { - in, out := &in.MicroserviceIDSelector, &out.MicroserviceIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.Properties != nil { - in, out := &in.Properties, &out.Properties - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.Version != nil { - in, out := &in.Version, &out.Version - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceInstanceParameters. -func (in *MicroserviceInstanceParameters) DeepCopy() *MicroserviceInstanceParameters { - if in == nil { - return nil - } - out := new(MicroserviceInstanceParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceInstanceSpec) DeepCopyInto(out *MicroserviceInstanceSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceInstanceSpec. -func (in *MicroserviceInstanceSpec) DeepCopy() *MicroserviceInstanceSpec { - if in == nil { - return nil - } - out := new(MicroserviceInstanceSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceInstanceStatus) DeepCopyInto(out *MicroserviceInstanceStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceInstanceStatus. -func (in *MicroserviceInstanceStatus) DeepCopy() *MicroserviceInstanceStatus { - if in == nil { - return nil - } - out := new(MicroserviceInstanceStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceList) DeepCopyInto(out *MicroserviceList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Microservice, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceList. -func (in *MicroserviceList) DeepCopy() *MicroserviceList { - if in == nil { - return nil - } - out := new(MicroserviceList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MicroserviceList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceObservation) DeepCopyInto(out *MicroserviceObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.Status != nil { - in, out := &in.Status, &out.Status - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceObservation. -func (in *MicroserviceObservation) DeepCopy() *MicroserviceObservation { - if in == nil { - return nil - } - out := new(MicroserviceObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceParameters) DeepCopyInto(out *MicroserviceParameters) { - *out = *in - if in.AdminPassSecretRef != nil { - in, out := &in.AdminPassSecretRef, &out.AdminPassSecretRef - *out = new(v1.SecretKeySelector) - **out = **in - } - if in.AdminUser != nil { - in, out := &in.AdminUser, &out.AdminUser - *out = new(string) - **out = **in - } - if in.AppName != nil { - in, out := &in.AppName, &out.AppName - *out = new(string) - **out = **in - } - if in.ConnectAddress != nil { - in, out := &in.ConnectAddress, &out.ConnectAddress - *out = new(string) - **out = **in - } - if in.ConnectAddressRef != nil { - in, out := &in.ConnectAddressRef, &out.ConnectAddressRef - *out = new(v1.Reference) - (*in).DeepCopyInto(*out) - } - if in.ConnectAddressSelector != nil { - in, out := &in.ConnectAddressSelector, &out.ConnectAddressSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in - } - if in.Environment != nil { - in, out := &in.Environment, &out.Environment - *out = new(string) - **out = **in - } - if in.Level != nil { - in, out := &in.Level, &out.Level - *out = new(string) - **out = **in - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.Version != nil { - in, out := &in.Version, &out.Version - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceParameters. -func (in *MicroserviceParameters) DeepCopy() *MicroserviceParameters { - if in == nil { - return nil - } - out := new(MicroserviceParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceSpec) DeepCopyInto(out *MicroserviceSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceSpec. -func (in *MicroserviceSpec) DeepCopy() *MicroserviceSpec { - if in == nil { - return nil - } - out := new(MicroserviceSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MicroserviceStatus) DeepCopyInto(out *MicroserviceStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroserviceStatus. -func (in *MicroserviceStatus) DeepCopy() *MicroserviceStatus { - if in == nil { - return nil - } - out := new(MicroserviceStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceRegistryAddressesObservation) DeepCopyInto(out *ServiceRegistryAddressesObservation) { - *out = *in - if in.Private != nil { - in, out := &in.Private, &out.Private - *out = new(string) - **out = **in - } - if in.Public != nil { - in, out := &in.Public, &out.Public - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceRegistryAddressesObservation. -func (in *ServiceRegistryAddressesObservation) DeepCopy() *ServiceRegistryAddressesObservation { - if in == nil { - return nil - } - out := new(ServiceRegistryAddressesObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ServiceRegistryAddressesParameters) DeepCopyInto(out *ServiceRegistryAddressesParameters) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceRegistryAddressesParameters. -func (in *ServiceRegistryAddressesParameters) DeepCopy() *ServiceRegistryAddressesParameters { - if in == nil { - return nil - } - out := new(ServiceRegistryAddressesParameters) - in.DeepCopyInto(out) - return out -} diff --git a/apis/cse/v1beta1/zz_generated.managed.go b/apis/cse/v1beta1/zz_generated.managed.go deleted file mode 100644 index f5c83356..00000000 --- a/apis/cse/v1beta1/zz_generated.managed.go +++ /dev/null @@ -1,206 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1beta1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// GetCondition of this Microservice. -func (mg *Microservice) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this Microservice. -func (mg *Microservice) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this Microservice. -func (mg *Microservice) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this Microservice. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *Microservice) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetPublishConnectionDetailsTo of this Microservice. -func (mg *Microservice) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { - return mg.Spec.PublishConnectionDetailsTo -} - -// GetWriteConnectionSecretToReference of this Microservice. -func (mg *Microservice) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this Microservice. -func (mg *Microservice) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this Microservice. -func (mg *Microservice) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this Microservice. -func (mg *Microservice) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this Microservice. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *Microservice) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetPublishConnectionDetailsTo of this Microservice. -func (mg *Microservice) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { - mg.Spec.PublishConnectionDetailsTo = r -} - -// SetWriteConnectionSecretToReference of this Microservice. -func (mg *Microservice) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this MicroserviceEngine. -func (mg *MicroserviceEngine) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this MicroserviceEngine. -func (mg *MicroserviceEngine) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this MicroserviceEngine. -func (mg *MicroserviceEngine) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this MicroserviceEngine. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *MicroserviceEngine) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetPublishConnectionDetailsTo of this MicroserviceEngine. -func (mg *MicroserviceEngine) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { - return mg.Spec.PublishConnectionDetailsTo -} - -// GetWriteConnectionSecretToReference of this MicroserviceEngine. -func (mg *MicroserviceEngine) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this MicroserviceEngine. -func (mg *MicroserviceEngine) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this MicroserviceEngine. -func (mg *MicroserviceEngine) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this MicroserviceEngine. -func (mg *MicroserviceEngine) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this MicroserviceEngine. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *MicroserviceEngine) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetPublishConnectionDetailsTo of this MicroserviceEngine. -func (mg *MicroserviceEngine) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { - mg.Spec.PublishConnectionDetailsTo = r -} - -// SetWriteConnectionSecretToReference of this MicroserviceEngine. -func (mg *MicroserviceEngine) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this MicroserviceInstance. -func (mg *MicroserviceInstance) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this MicroserviceInstance. -func (mg *MicroserviceInstance) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this MicroserviceInstance. -func (mg *MicroserviceInstance) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this MicroserviceInstance. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *MicroserviceInstance) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetPublishConnectionDetailsTo of this MicroserviceInstance. -func (mg *MicroserviceInstance) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { - return mg.Spec.PublishConnectionDetailsTo -} - -// GetWriteConnectionSecretToReference of this MicroserviceInstance. -func (mg *MicroserviceInstance) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this MicroserviceInstance. -func (mg *MicroserviceInstance) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this MicroserviceInstance. -func (mg *MicroserviceInstance) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this MicroserviceInstance. -func (mg *MicroserviceInstance) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this MicroserviceInstance. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *MicroserviceInstance) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetPublishConnectionDetailsTo of this MicroserviceInstance. -func (mg *MicroserviceInstance) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { - mg.Spec.PublishConnectionDetailsTo = r -} - -// SetWriteConnectionSecretToReference of this MicroserviceInstance. -func (mg *MicroserviceInstance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} diff --git a/apis/cse/v1beta1/zz_generated.managedlist.go b/apis/cse/v1beta1/zz_generated.managedlist.go deleted file mode 100644 index e8e679f0..00000000 --- a/apis/cse/v1beta1/zz_generated.managedlist.go +++ /dev/null @@ -1,35 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1beta1 - -import resource "github.com/crossplane/crossplane-runtime/pkg/resource" - -// GetItems of this MicroserviceEngineList. -func (l *MicroserviceEngineList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this MicroserviceInstanceList. -func (l *MicroserviceInstanceList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this MicroserviceList. -func (l *MicroserviceList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} diff --git a/apis/cse/v1beta1/zz_generated.resolvers.go b/apis/cse/v1beta1/zz_generated.resolvers.go deleted file mode 100644 index f2657f8e..00000000 --- a/apis/cse/v1beta1/zz_generated.resolvers.go +++ /dev/null @@ -1,126 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1beta1 - -import ( - "context" - v1beta1 "github.com/FrangipaneTeam/provider-flexibleengine/apis/eip/v1beta1" - v1beta11 "github.com/FrangipaneTeam/provider-flexibleengine/apis/vpc/v1beta1" - tools "github.com/FrangipaneTeam/provider-flexibleengine/pkg/tools" - reference "github.com/crossplane/crossplane-runtime/pkg/reference" - errors "github.com/pkg/errors" - client "sigs.k8s.io/controller-runtime/pkg/client" -) - -// ResolveReferences of this Microservice. -func (mg *Microservice) ResolveReferences(ctx context.Context, c client.Reader) error { - r := reference.NewAPIResolver(c, mg) - - var rsp reference.ResolutionResponse - var err error - - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ConnectAddress), - Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.ConnectAddressRef, - Selector: mg.Spec.ForProvider.ConnectAddressSelector, - To: reference.To{ - List: &MicroserviceEngineList{}, - Managed: &MicroserviceEngine{}, - }, - }) - if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.ConnectAddress") - } - mg.Spec.ForProvider.ConnectAddress = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.ConnectAddressRef = rsp.ResolvedReference - - return nil -} - -// ResolveReferences of this MicroserviceEngine. -func (mg *MicroserviceEngine) ResolveReferences(ctx context.Context, c client.Reader) error { - r := reference.NewAPIResolver(c, mg) - - var rsp reference.ResolutionResponse - var err error - - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.EIPID), - Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.EIPIDRef, - Selector: mg.Spec.ForProvider.EIPIDSelector, - To: reference.To{ - List: &v1beta1.EIPList{}, - Managed: &v1beta1.EIP{}, - }, - }) - if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.EIPID") - } - mg.Spec.ForProvider.EIPID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.EIPIDRef = rsp.ResolvedReference - - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.NetworkID), - Extract: tools.ExtractorParamPathfunc(true, "id"), - Reference: mg.Spec.ForProvider.NetworkIDRef, - Selector: mg.Spec.ForProvider.NetworkIDSelector, - To: reference.To{ - List: &v1beta11.VPCSubnetList{}, - Managed: &v1beta11.VPCSubnet{}, - }, - }) - if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.NetworkID") - } - mg.Spec.ForProvider.NetworkID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.NetworkIDRef = rsp.ResolvedReference - - return nil -} - -// ResolveReferences of this MicroserviceInstance. -func (mg *MicroserviceInstance) ResolveReferences(ctx context.Context, c client.Reader) error { - r := reference.NewAPIResolver(c, mg) - - var rsp reference.ResolutionResponse - var err error - - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ConnectAddress), - Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.ConnectAddressRef, - Selector: mg.Spec.ForProvider.ConnectAddressSelector, - To: reference.To{ - List: &MicroserviceEngineList{}, - Managed: &MicroserviceEngine{}, - }, - }) - if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.ConnectAddress") - } - mg.Spec.ForProvider.ConnectAddress = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.ConnectAddressRef = rsp.ResolvedReference - - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.MicroserviceID), - Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.MicroserviceIDRef, - Selector: mg.Spec.ForProvider.MicroserviceIDSelector, - To: reference.To{ - List: &MicroserviceList{}, - Managed: &Microservice{}, - }, - }) - if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.MicroserviceID") - } - mg.Spec.ForProvider.MicroserviceID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.MicroserviceIDRef = rsp.ResolvedReference - - return nil -} diff --git a/apis/cse/v1beta1/zz_generated_terraformed.go b/apis/cse/v1beta1/zz_generated_terraformed.go deleted file mode 100755 index c4db615e..00000000 --- a/apis/cse/v1beta1/zz_generated_terraformed.go +++ /dev/null @@ -1,236 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -package v1beta1 - -import ( - "github.com/pkg/errors" - - "github.com/upbound/upjet/pkg/resource" - "github.com/upbound/upjet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Microservice -func (mg *Microservice) GetTerraformResourceType() string { - return "flexibleengine_cse_microservice" -} - -// GetConnectionDetailsMapping for this Microservice -func (tr *Microservice) GetConnectionDetailsMapping() map[string]string { - return map[string]string{"admin_pass": "spec.forProvider.adminPassSecretRef"} -} - -// GetObservation of this Microservice -func (tr *Microservice) GetObservation() (map[string]any, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Microservice -func (tr *Microservice) SetObservation(obs map[string]any) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this Microservice -func (tr *Microservice) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this Microservice -func (tr *Microservice) GetParameters() (map[string]any, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Microservice -func (tr *Microservice) SetParameters(params map[string]any) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this Microservice using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Microservice) LateInitialize(attrs []byte) (bool, error) { - params := &MicroserviceParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *Microservice) GetTerraformSchemaVersion() int { - return 0 -} - -// GetTerraformResourceType returns Terraform resource type for this MicroserviceEngine -func (mg *MicroserviceEngine) GetTerraformResourceType() string { - return "flexibleengine_cse_microservice_engine" -} - -// GetConnectionDetailsMapping for this MicroserviceEngine -func (tr *MicroserviceEngine) GetConnectionDetailsMapping() map[string]string { - return map[string]string{"admin_pass": "spec.forProvider.adminPassSecretRef"} -} - -// GetObservation of this MicroserviceEngine -func (tr *MicroserviceEngine) GetObservation() (map[string]any, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this MicroserviceEngine -func (tr *MicroserviceEngine) SetObservation(obs map[string]any) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this MicroserviceEngine -func (tr *MicroserviceEngine) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this MicroserviceEngine -func (tr *MicroserviceEngine) GetParameters() (map[string]any, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this MicroserviceEngine -func (tr *MicroserviceEngine) SetParameters(params map[string]any) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this MicroserviceEngine using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *MicroserviceEngine) LateInitialize(attrs []byte) (bool, error) { - params := &MicroserviceEngineParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *MicroserviceEngine) GetTerraformSchemaVersion() int { - return 0 -} - -// GetTerraformResourceType returns Terraform resource type for this MicroserviceInstance -func (mg *MicroserviceInstance) GetTerraformResourceType() string { - return "flexibleengine_cse_microservice_instance" -} - -// GetConnectionDetailsMapping for this MicroserviceInstance -func (tr *MicroserviceInstance) GetConnectionDetailsMapping() map[string]string { - return map[string]string{"admin_pass": "spec.forProvider.adminPassSecretRef"} -} - -// GetObservation of this MicroserviceInstance -func (tr *MicroserviceInstance) GetObservation() (map[string]any, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this MicroserviceInstance -func (tr *MicroserviceInstance) SetObservation(obs map[string]any) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this MicroserviceInstance -func (tr *MicroserviceInstance) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this MicroserviceInstance -func (tr *MicroserviceInstance) GetParameters() (map[string]any, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]any{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this MicroserviceInstance -func (tr *MicroserviceInstance) SetParameters(params map[string]any) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this MicroserviceInstance using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *MicroserviceInstance) LateInitialize(attrs []byte) (bool, error) { - params := &MicroserviceInstanceParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *MicroserviceInstance) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/cse/v1beta1/zz_groupversion_info.go b/apis/cse/v1beta1/zz_groupversion_info.go deleted file mode 100755 index 4e69df04..00000000 --- a/apis/cse/v1beta1/zz_groupversion_info.go +++ /dev/null @@ -1,32 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -// +kubebuilder:object:generate=true -// +groupName=cse.flexibleengine.upbound.io -// +versionName=v1beta1 -package v1beta1 - -import ( - "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/scheme" -) - -// Package type metadata. -const ( - CRDGroup = "cse.flexibleengine.upbound.io" - CRDVersion = "v1beta1" -) - -var ( - // CRDGroupVersion is the API Group Version used to register the objects - CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion} - - // SchemeBuilder is used to add go types to the GroupVersionKind scheme - SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion} - - // AddToScheme adds the types in this group-version to the given scheme. - AddToScheme = SchemeBuilder.AddToScheme -) diff --git a/apis/cse/v1beta1/zz_microservice_types.go b/apis/cse/v1beta1/zz_microservice_types.go deleted file mode 100755 index d7b3a1a0..00000000 --- a/apis/cse/v1beta1/zz_microservice_types.go +++ /dev/null @@ -1,134 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime/schema" - - v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" -) - -type MicroserviceObservation struct { - - // The microservice ID. - ID *string `json:"id,omitempty" tf:"id,omitempty"` - - // The microservice status. The values supports UP and DOWN. - Status *string `json:"status,omitempty" tf:"status,omitempty"` -} - -type MicroserviceParameters struct { - - // Specifies the account password. - // Required if the auth_type of engine is RBAC. Changing this will create a new microservice. - // The password format must meet the following conditions: - // +kubebuilder:validation:Optional - AdminPassSecretRef *v1.SecretKeySelector `json:"adminPassSecretRef,omitempty" tf:"-"` - - // Specifies the account name. The initial account name is root. - // Required if the auth_type of engine is RBAC. Changing this will create a new microservice. - // +kubebuilder:validation:Optional - AdminUser *string `json:"adminUser,omitempty" tf:"admin_user,omitempty"` - - // Specifies the name of the dedicated microservice application. - // Changing this will create a new microservice. - // +kubebuilder:validation:Required - AppName *string `json:"appName" tf:"app_name,omitempty"` - - // Specifies the connection address of service registry center for the - // specified dedicated CSE engine. Changing this will create a new microservice. - // +crossplane:generate:reference:type=MicroserviceEngine - // +kubebuilder:validation:Optional - ConnectAddress *string `json:"connectAddress,omitempty" tf:"connect_address,omitempty"` - - // Reference to a MicroserviceEngine to populate connectAddress. - // +kubebuilder:validation:Optional - ConnectAddressRef *v1.Reference `json:"connectAddressRef,omitempty" tf:"-"` - - // Selector for a MicroserviceEngine to populate connectAddress. - // +kubebuilder:validation:Optional - ConnectAddressSelector *v1.Selector `json:"connectAddressSelector,omitempty" tf:"-"` - - // Specifies the description of the dedicated microservice. - // The description can contian a maximum of 256 characters. - // Changing this will create a new microservice. - // +kubebuilder:validation:Optional - Description *string `json:"description,omitempty" tf:"description,omitempty"` - - // Specifies the environment (stage) type. - // The valid values are development, testing, acceptance and production. - // If omitted, the microservice will be deployed in an empty environment. - // Changing this will create a new microservice. - // +kubebuilder:validation:Optional - Environment *string `json:"environment,omitempty" tf:"environment,omitempty"` - - // Specifies the microservice level. - // The valid values are FRONT, MIDDLE, and BACK. Changing this will create a new microservice. - // +kubebuilder:validation:Optional - Level *string `json:"level,omitempty" tf:"level,omitempty"` - - // Specifies the name of the dedicated microservice. - // The name can contain 1 to 128 characters, only letters, digits, underscore (_), hyphens (-) and dots (.) are - // allowed. The name must start and end with a letter or digit. Changing this will create a new microservice. - // +kubebuilder:validation:Required - Name *string `json:"name" tf:"name,omitempty"` - - // Specifies the version of the dedicated microservice. - // Changing this will create a new microservice. - // +kubebuilder:validation:Required - Version *string `json:"version" tf:"version,omitempty"` -} - -// MicroserviceSpec defines the desired state of Microservice -type MicroserviceSpec struct { - v1.ResourceSpec `json:",inline"` - ForProvider MicroserviceParameters `json:"forProvider"` -} - -// MicroserviceStatus defines the observed state of Microservice. -type MicroserviceStatus struct { - v1.ResourceStatus `json:",inline"` - AtProvider MicroserviceObservation `json:"atProvider,omitempty"` -} - -// +kubebuilder:object:root=true - -// Microservice is the Schema for the Microservices API. ""page_title: "flexibleengine_cse_microservice" -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,flexibleengine} -type Microservice struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec MicroserviceSpec `json:"spec"` - Status MicroserviceStatus `json:"status,omitempty"` -} - -// +kubebuilder:object:root=true - -// MicroserviceList contains a list of Microservices -type MicroserviceList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Microservice `json:"items"` -} - -// Repository type metadata. -var ( - Microservice_Kind = "Microservice" - Microservice_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Microservice_Kind}.String() - Microservice_KindAPIVersion = Microservice_Kind + "." + CRDGroupVersion.String() - Microservice_GroupVersionKind = CRDGroupVersion.WithKind(Microservice_Kind) -) - -func init() { - SchemeBuilder.Register(&Microservice{}, &MicroserviceList{}) -} diff --git a/apis/cse/v1beta1/zz_microserviceengine_types.go b/apis/cse/v1beta1/zz_microserviceengine_types.go deleted file mode 100755 index 1d23ba2e..00000000 --- a/apis/cse/v1beta1/zz_microserviceengine_types.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime/schema" - - v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" -) - -type ConfigCenterAddressesObservation struct { - - // The internal access address. - Private *string `json:"private,omitempty" tf:"private,omitempty"` - - // The public access address. This address is only set when EIP is bound. - Public *string `json:"public,omitempty" tf:"public,omitempty"` -} - -type ConfigCenterAddressesParameters struct { -} - -type MicroserviceEngineObservation struct { - - // The address of config center. - // The object structure is documented below. - ConfigCenterAddresses []ConfigCenterAddressesObservation `json:"configCenterAddresses,omitempty" tf:"config_center_addresses,omitempty"` - - // The resource ID in UUID format. - ID *string `json:"id,omitempty" tf:"id,omitempty"` - - // The maximum number of the microservice instance resources. - InstanceLimit *float64 `json:"instanceLimit,omitempty" tf:"instance_limit,omitempty"` - - // The maximum number of the microservice resources. - ServiceLimit *float64 `json:"serviceLimit,omitempty" tf:"service_limit,omitempty"` - - // The connection address of service center. - // The object structure is documented below. - ServiceRegistryAddresses []ServiceRegistryAddressesObservation `json:"serviceRegistryAddresses,omitempty" tf:"service_registry_addresses,omitempty"` -} - -type MicroserviceEngineParameters struct { - - // Specifies the account password. The corresponding account name is root. - // Required if auth_type is RBAC. Changing this will create a new engine. - // The password format must meet the following conditions: - // +kubebuilder:validation:Optional - AdminPassSecretRef *v1.SecretKeySelector `json:"adminPassSecretRef,omitempty" tf:"-"` - - // Specifies the authentication method for the dedicated microservice engine. - // Changing this will create a new engine. - // +kubebuilder:validation:Required - AuthType *string `json:"authType" tf:"auth_type,omitempty"` - - // Specifies the list of availability zone. - // Changing this will create a new engine. - // +kubebuilder:validation:Required - AvailabilityZones []*string `json:"availabilityZones" tf:"availability_zones,omitempty"` - - // Specifies the description of the dedicated microservice engine. - // The description can contian a maximum of 255 characters. - // Changing this will create a new engine. - // +kubebuilder:validation:Optional - Description *string `json:"description,omitempty" tf:"description,omitempty"` - - // Specifies the EIP ID to which the dedicated microservice engine assocated. - // Changing this will create a new engine. - // +crossplane:generate:reference:type=github.com/FrangipaneTeam/provider-flexibleengine/apis/eip/v1beta1.EIP - // +kubebuilder:validation:Optional - EIPID *string `json:"eipId,omitempty" tf:"eip_id,omitempty"` - - // Reference to a EIP in eip to populate eipId. - // +kubebuilder:validation:Optional - EIPIDRef *v1.Reference `json:"eipIdRef,omitempty" tf:"-"` - - // Selector for a EIP in eip to populate eipId. - // +kubebuilder:validation:Optional - EIPIDSelector *v1.Selector `json:"eipIdSelector,omitempty" tf:"-"` - - // The resource ID in UUID format. - // +kubebuilder:validation:Optional - EnterpriseProjectID *string `json:"enterpriseProjectId,omitempty" tf:"enterprise_project_id,omitempty"` - - // Specifies the additional parameters for the dedicated microservice engine. - // Changing this will create a new engine. - // +kubebuilder:validation:Optional - ExtendParams map[string]*string `json:"extendParams,omitempty" tf:"extend_params,omitempty"` - - // Specifies the flavor of the dedicated microservice engine. - // Changing this will create a new engine. - // +kubebuilder:validation:Required - Flavor *string `json:"flavor" tf:"flavor,omitempty"` - - // Specifies the name of the dedicated microservice engine. - // The name can contain 3 to 24 characters, only letters, digits and hyphens (-) are allowed. - // The name must start with a letter and cannot end with a hyphen (-). - // Changing this will create a new engine. - // +kubebuilder:validation:Required - Name *string `json:"name" tf:"name,omitempty"` - - // Specifies the ID of VPC the subnet to which the dedicated microservice - // engine belongs. Changing this will create a new engine. - // +crossplane:generate:reference:type=github.com/FrangipaneTeam/provider-flexibleengine/apis/vpc/v1beta1.VPCSubnet - // +crossplane:generate:reference:extractor=github.com/FrangipaneTeam/provider-flexibleengine/pkg/tools.ExtractorParamPathfunc(true, "id") - // +kubebuilder:validation:Optional - NetworkID *string `json:"networkId,omitempty" tf:"network_id,omitempty"` - - // Reference to a VPCSubnet in vpc to populate networkId. - // +kubebuilder:validation:Optional - NetworkIDRef *v1.Reference `json:"networkIdRef,omitempty" tf:"-"` - - // Selector for a VPCSubnet in vpc to populate networkId. - // +kubebuilder:validation:Optional - NetworkIDSelector *v1.Selector `json:"networkIdSelector,omitempty" tf:"-"` - - // Specifies the region in which to create the dedicated microservice engine. - // If omitted, the provider-level region will be used. Changing this will create a new engine. - // +kubebuilder:validation:Optional - Region *string `json:"region,omitempty" tf:"region,omitempty"` - - // Specifies the version of the dedicated microservice engine. The value can be: - // CSE. Defaults to: CSE. Changing this will create a new engine. - // +kubebuilder:validation:Optional - Version *string `json:"version,omitempty" tf:"version,omitempty"` -} - -type ServiceRegistryAddressesObservation struct { - - // The internal access address. - Private *string `json:"private,omitempty" tf:"private,omitempty"` - - // The public access address. This address is only set when EIP is bound. - Public *string `json:"public,omitempty" tf:"public,omitempty"` -} - -type ServiceRegistryAddressesParameters struct { -} - -// MicroserviceEngineSpec defines the desired state of MicroserviceEngine -type MicroserviceEngineSpec struct { - v1.ResourceSpec `json:",inline"` - ForProvider MicroserviceEngineParameters `json:"forProvider"` -} - -// MicroserviceEngineStatus defines the observed state of MicroserviceEngine. -type MicroserviceEngineStatus struct { - v1.ResourceStatus `json:",inline"` - AtProvider MicroserviceEngineObservation `json:"atProvider,omitempty"` -} - -// +kubebuilder:object:root=true - -// MicroserviceEngine is the Schema for the MicroserviceEngines API. ""page_title: "flexibleengine_cse_microservice_engine" -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,flexibleengine} -type MicroserviceEngine struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec MicroserviceEngineSpec `json:"spec"` - Status MicroserviceEngineStatus `json:"status,omitempty"` -} - -// +kubebuilder:object:root=true - -// MicroserviceEngineList contains a list of MicroserviceEngines -type MicroserviceEngineList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []MicroserviceEngine `json:"items"` -} - -// Repository type metadata. -var ( - MicroserviceEngine_Kind = "MicroserviceEngine" - MicroserviceEngine_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: MicroserviceEngine_Kind}.String() - MicroserviceEngine_KindAPIVersion = MicroserviceEngine_Kind + "." + CRDGroupVersion.String() - MicroserviceEngine_GroupVersionKind = CRDGroupVersion.WithKind(MicroserviceEngine_Kind) -) - -func init() { - SchemeBuilder.Register(&MicroserviceEngine{}, &MicroserviceEngineList{}) -} diff --git a/apis/cse/v1beta1/zz_microserviceinstance_types.go b/apis/cse/v1beta1/zz_microserviceinstance_types.go deleted file mode 100755 index 6001ab12..00000000 --- a/apis/cse/v1beta1/zz_microserviceinstance_types.go +++ /dev/null @@ -1,193 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -package v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime/schema" - - v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" -) - -type DataCenterObservation struct { -} - -type DataCenterParameters struct { - - // Specifies the custom availability zone name of the data center. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Required - AvailabilityZone *string `json:"availabilityZone" tf:"availability_zone,omitempty"` - - // Specifies the data center name. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Required - Name *string `json:"name" tf:"name,omitempty"` - - // Specifies the custom region name of the data center. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Required - Region *string `json:"region" tf:"region,omitempty"` -} - -type HealthCheckObservation struct { -} - -type HealthCheckParameters struct { - - // Specifies the heartbeat interval. The unit is s (second). - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Required - Interval *float64 `json:"interval" tf:"interval,omitempty"` - - // Specifies the maximum retries. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Required - MaxRetries *float64 `json:"maxRetries" tf:"max_retries,omitempty"` - - // Specifies the heartbeat mode. The valid values are push and pull. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Required - Mode *string `json:"mode" tf:"mode,omitempty"` - - // Specifies the port number. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Optional - Port *float64 `json:"port,omitempty" tf:"port,omitempty"` -} - -type MicroserviceInstanceObservation struct { - - // The microservice instance ID. - ID *string `json:"id,omitempty" tf:"id,omitempty"` - - // The microservice instance status. The values supports UP, DOWN, STARTING and OUTOFSERVICE. - Status *string `json:"status,omitempty" tf:"status,omitempty"` -} - -type MicroserviceInstanceParameters struct { - - // Specifies the account password. - // Required if the auth_type of engine is RBAC. Changing this will create a new microservice instance. - // The password format must meet the following conditions: - // +kubebuilder:validation:Optional - AdminPassSecretRef *v1.SecretKeySelector `json:"adminPassSecretRef,omitempty" tf:"-"` - - // Specifies the account name. The initial account name is root. - // Required if the auth_type of engine is RBAC. Changing this will create a new microservice instance. - // +kubebuilder:validation:Optional - AdminUser *string `json:"adminUser,omitempty" tf:"admin_user,omitempty"` - - // Specifies the connection address of service registry center for the - // specified dedicated CSE engine. Changing this will create a new microservice instance. - // +crossplane:generate:reference:type=MicroserviceEngine - // +kubebuilder:validation:Optional - ConnectAddress *string `json:"connectAddress,omitempty" tf:"connect_address,omitempty"` - - // Reference to a MicroserviceEngine to populate connectAddress. - // +kubebuilder:validation:Optional - ConnectAddressRef *v1.Reference `json:"connectAddressRef,omitempty" tf:"-"` - - // Selector for a MicroserviceEngine to populate connectAddress. - // +kubebuilder:validation:Optional - ConnectAddressSelector *v1.Selector `json:"connectAddressSelector,omitempty" tf:"-"` - - // Specifies the data center configuration. - // The object structure is documented below. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Optional - DataCenter []DataCenterParameters `json:"dataCenter,omitempty" tf:"data_center,omitempty"` - - // Specifies the access addresses information. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Required - Endpoints []*string `json:"endpoints" tf:"endpoints,omitempty"` - - // Specifies the health check configuration. - // The object structure is documented below. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Optional - HealthCheck []HealthCheckParameters `json:"healthCheck,omitempty" tf:"health_check,omitempty"` - - // Specifies the host name, such as localhost. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Required - HostName *string `json:"hostName" tf:"host_name,omitempty"` - - // Specifies the ID of the dedicated microservice to which the instance - // belongs. Changing this will create a new microservice instance. - // +crossplane:generate:reference:type=Microservice - // +kubebuilder:validation:Optional - MicroserviceID *string `json:"microserviceId,omitempty" tf:"microservice_id,omitempty"` - - // Reference to a Microservice to populate microserviceId. - // +kubebuilder:validation:Optional - MicroserviceIDRef *v1.Reference `json:"microserviceIdRef,omitempty" tf:"-"` - - // Selector for a Microservice to populate microserviceId. - // +kubebuilder:validation:Optional - MicroserviceIDSelector *v1.Selector `json:"microserviceIdSelector,omitempty" tf:"-"` - - // Specifies the extended attributes. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Optional - Properties map[string]*string `json:"properties,omitempty" tf:"properties,omitempty"` - - // Specifies the verison of the dedicated microservice instance. - // Changing this will create a new microservice instance. - // +kubebuilder:validation:Optional - Version *string `json:"version,omitempty" tf:"version,omitempty"` -} - -// MicroserviceInstanceSpec defines the desired state of MicroserviceInstance -type MicroserviceInstanceSpec struct { - v1.ResourceSpec `json:",inline"` - ForProvider MicroserviceInstanceParameters `json:"forProvider"` -} - -// MicroserviceInstanceStatus defines the observed state of MicroserviceInstance. -type MicroserviceInstanceStatus struct { - v1.ResourceStatus `json:",inline"` - AtProvider MicroserviceInstanceObservation `json:"atProvider,omitempty"` -} - -// +kubebuilder:object:root=true - -// MicroserviceInstance is the Schema for the MicroserviceInstances API. ""page_title: "flexibleengine_cse_microservice_instance" -// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" -// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" -// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,flexibleengine} -type MicroserviceInstance struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec MicroserviceInstanceSpec `json:"spec"` - Status MicroserviceInstanceStatus `json:"status,omitempty"` -} - -// +kubebuilder:object:root=true - -// MicroserviceInstanceList contains a list of MicroserviceInstances -type MicroserviceInstanceList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []MicroserviceInstance `json:"items"` -} - -// Repository type metadata. -var ( - MicroserviceInstance_Kind = "MicroserviceInstance" - MicroserviceInstance_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: MicroserviceInstance_Kind}.String() - MicroserviceInstance_KindAPIVersion = MicroserviceInstance_Kind + "." + CRDGroupVersion.String() - MicroserviceInstance_GroupVersionKind = CRDGroupVersion.WithKind(MicroserviceInstance_Kind) -) - -func init() { - SchemeBuilder.Register(&MicroserviceInstance{}, &MicroserviceInstanceList{}) -} diff --git a/apis/zz_register.go b/apis/zz_register.go index bb1dc6c1..c4f6a3e9 100755 --- a/apis/zz_register.go +++ b/apis/zz_register.go @@ -19,7 +19,6 @@ import ( v1beta1cce "github.com/FrangipaneTeam/provider-flexibleengine/apis/cce/v1beta1" v1beta1ces "github.com/FrangipaneTeam/provider-flexibleengine/apis/ces/v1beta1" v1beta1csbs "github.com/FrangipaneTeam/provider-flexibleengine/apis/csbs/v1beta1" - v1beta1cse "github.com/FrangipaneTeam/provider-flexibleengine/apis/cse/v1beta1" v1beta1css "github.com/FrangipaneTeam/provider-flexibleengine/apis/css/v1beta1" v1beta1dcs "github.com/FrangipaneTeam/provider-flexibleengine/apis/dcs/v1beta1" v1beta1dds "github.com/FrangipaneTeam/provider-flexibleengine/apis/dds/v1beta1" @@ -73,7 +72,6 @@ func init() { v1beta1cce.SchemeBuilder.AddToScheme, v1beta1ces.SchemeBuilder.AddToScheme, v1beta1csbs.SchemeBuilder.AddToScheme, - v1beta1cse.SchemeBuilder.AddToScheme, v1beta1css.SchemeBuilder.AddToScheme, v1beta1dcs.SchemeBuilder.AddToScheme, v1beta1dds.SchemeBuilder.AddToScheme, diff --git a/config/cse/config.go b/config/cse/config.go deleted file mode 100644 index bd463cea..00000000 --- a/config/cse/config.go +++ /dev/null @@ -1,56 +0,0 @@ -// Package cse provides a set of custom ResourceConfigurators for the CSE -package cse - -import ( - "github.com/upbound/upjet/pkg/config" - - "github.com/FrangipaneTeam/provider-flexibleengine/pkg/tools" -) - -// Configure configures individual resources by adding custom ResourceConfigurators. -func Configure(p *config.Provider) { - - // flexibleengine_cse_microservice_engine - // https://registry.terraform.io/providers/FlexibleEngineCloud/flexibleengine/latest/docs/resources/cse_microservice_engine - p.AddResourceConfigurator("flexibleengine_cse_microservice_engine", func(r *config.Resource) { - - r.UseAsync = true - - r.References["eip_id"] = config.Reference{ - Type: tools.GenerateType("eip", "EIP"), - } - - }) - - // flexibleengine_cse_microservice - // https://registry.terraform.io/providers/FlexibleEngineCloud/flexibleengine/latest/docs/resources/cse_microservice - p.AddResourceConfigurator("flexibleengine_cse_microservice", func(r *config.Resource) { - - r.UseAsync = true - - // connect_address - r.References["connect_address"] = config.Reference{ - Type: "MicroserviceEngine", - } - - }) - - // flexibleengine_cse_microservice_instance - // https://registry.terraform.io/providers/FlexibleEngineCloud/flexibleengine/latest/docs/resources/cse_microservice_instance - p.AddResourceConfigurator("flexibleengine_cse_microservice_instance", func(r *config.Resource) { - - r.UseAsync = true - - // connect_address - r.References["connect_address"] = config.Reference{ - Type: "MicroserviceEngine", - } - - // microservice_id - r.References["microservice_id"] = config.Reference{ - Type: "Microservice", - } - - }) - -} diff --git a/config/external_name.go b/config/external_name.go index 7aab3b18..ae7c4024 100644 --- a/config/external_name.go +++ b/config/external_name.go @@ -594,21 +594,6 @@ var ExternalNameConfigs = map[string]config.ExternalName{ // https://registry.terraform.io/providers/FlexibleEngineCloud/flexibleengine/latest/docs/resources/sdrs_replication_pair_v1 "flexibleengine_sdrs_replication_pair_v1": config.IdentifierFromProvider, - /* - > Cloud Service Engine (CSE) - */ - // flexibleengine_cse_microservice_engine - Imported using the ID - // https://registry.terraform.io/providers/FlexibleEngineCloud/flexibleengine/latest/docs/resources/cse_microservice_engine - "flexibleengine_cse_microservice_engine": config.IdentifierFromProvider, - - // flexibleengine_cse_microservice - Imported using the Template connect_address - // https://registry.terraform.io/providers/FlexibleEngineCloud/flexibleengine/latest/docs/resources/cse_microservice - "flexibleengine_cse_microservice": TemplatedStringAsIdentifierWithNoName("{{.parameters.connect_address}}/{{.external_name}}"), - - // flexibleengine_cse_microservice_instance - Imported using the Template connect_address, microservice_id and their id - // https://registry.terraform.io/providers/FlexibleEngineCloud/flexibleengine/latest/docs/resources/cse_microservice_instance - "flexibleengine_cse_microservice_instance": TemplatedStringAsIdentifierWithNoName("{{.parameters.connect_address}}/{{.parameters.microservice_id}}/{{.external_name}}"), - /* > Cloud Eye (CES) */ diff --git a/config/provider.go b/config/provider.go index 25e148ec..3d0e66bc 100644 --- a/config/provider.go +++ b/config/provider.go @@ -12,7 +12,6 @@ import ( "github.com/FrangipaneTeam/provider-flexibleengine/config/cce" "github.com/FrangipaneTeam/provider-flexibleengine/config/ces" "github.com/FrangipaneTeam/provider-flexibleengine/config/csbs" - "github.com/FrangipaneTeam/provider-flexibleengine/config/cse" "github.com/FrangipaneTeam/provider-flexibleengine/config/css" "github.com/FrangipaneTeam/provider-flexibleengine/config/dcs" "github.com/FrangipaneTeam/provider-flexibleengine/config/dds" @@ -80,6 +79,10 @@ var skipList = []string{ "flexibleengine_networking_router_interface_v2$", "flexibleengine_networking_router_v2$", + // Remove CSE that is in public test only + "flexibleengine_cse_microservice$", + "flexibleengine_cse_microservice_instance$", + "flexibleengine_cse_microservice_engine$", // Duplicated resources "flexibleengine_fw_firewall_group_v2$", // Duplicated with flexibleengine_network_acl "flexibleengine_fw_policy_v2$", // Duplicated with flexibleengine_network_acl_rule @@ -108,7 +111,6 @@ func GetProvider() *ujconfig.Provider { agd.Configure, dns.Configure, bms.Configure, - cse.Configure, lts.Configure, dcs.Configure, fgs.Configure, diff --git a/examples-generated/cse/microservice.yaml b/examples-generated/cse/microservice.yaml deleted file mode 100644 index 889b6289..00000000 --- a/examples-generated/cse/microservice.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: cse.flexibleengine.upbound.io/v1beta1 -kind: Microservice -metadata: - annotations: - meta.upbound.io/example-id: cse/v1beta1/microservice - labels: - testing.upbound.io/example-name: test - name: test -spec: - forProvider: - appName: ${var.app_name} - connectAddressSelector: - matchLabels: - testing.upbound.io/example-name: example - environment: development - name: ${var.service_name} - verison: 1.0.0 - ---- - diff --git a/examples-generated/cse/microserviceengine.yaml b/examples-generated/cse/microserviceengine.yaml deleted file mode 100644 index d5b740a4..00000000 --- a/examples-generated/cse/microserviceengine.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: cse.flexibleengine.upbound.io/v1beta1 -kind: MicroserviceEngine -metadata: - annotations: - meta.upbound.io/example-id: cse/v1beta1/microserviceengine - labels: - testing.upbound.io/example-name: example_cse - name: example-cse -spec: - forProvider: - authType: NONE - availabilityZones: - - eu-west-0a - flavor: cse.s1.small - name: example-cse - networkIdSelector: - matchLabels: - testing.upbound.io/example-name: example_subnet - ---- - diff --git a/examples-generated/cse/microserviceinstance.yaml b/examples-generated/cse/microserviceinstance.yaml deleted file mode 100644 index 978548ea..00000000 --- a/examples-generated/cse/microserviceinstance.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: cse.flexibleengine.upbound.io/v1beta1 -kind: MicroserviceInstance -metadata: - annotations: - meta.upbound.io/example-id: cse/v1beta1/microserviceinstance - labels: - testing.upbound.io/example-name: test - name: test -spec: - forProvider: - connectAddressSelector: - matchLabels: - testing.upbound.io/example-name: example - dataCenter: - - availabilityZone: ${var.az_name} - name: dc - region: ${var.region_name} - endpoints: - - grpc://127.0.1.132:9980 - - rest://127.0.0.111:8081 - healthCheck: - - interval: 30 - maxRetries: 3 - mode: push - hostName: localhost - microserviceIdSelector: - matchLabels: - testing.upbound.io/example-name: example - properties: - _TAGS: A, B - attr1: a - nodeIP: 127.0.0.1 - verison: 1.0.0 - ---- - diff --git a/internal/controller/cse/microservice/zz_controller.go b/internal/controller/cse/microservice/zz_controller.go deleted file mode 100755 index fbcc9032..00000000 --- a/internal/controller/cse/microservice/zz_controller.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -package microservice - -import ( - "time" - - "github.com/crossplane/crossplane-runtime/pkg/connection" - "github.com/crossplane/crossplane-runtime/pkg/event" - "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" - "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" - xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" - tjcontroller "github.com/upbound/upjet/pkg/controller" - "github.com/upbound/upjet/pkg/terraform" - ctrl "sigs.k8s.io/controller-runtime" - - v1beta1 "github.com/FrangipaneTeam/provider-flexibleengine/apis/cse/v1beta1" -) - -// Setup adds a controller that reconciles Microservice managed resources. -func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { - name := managed.ControllerName(v1beta1.Microservice_GroupVersionKind.String()) - var initializers managed.InitializerChain - cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} - if o.SecretStoreConfigGVK != nil { - cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) - } - r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1beta1.Microservice_GroupVersionKind), - managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["flexibleengine_cse_microservice"], - tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.Microservice_GroupVersionKind))), - )), - managed.WithLogger(o.Logger.WithValues("controller", name)), - managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), - managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), - managed.WithTimeout(3*time.Minute), - managed.WithInitializers(initializers), - managed.WithConnectionPublishers(cps...), - managed.WithPollInterval(o.PollInterval), - ) - - return ctrl.NewControllerManagedBy(mgr). - Named(name). - WithOptions(o.ForControllerRuntime()). - For(&v1beta1.Microservice{}). - Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) -} diff --git a/internal/controller/cse/microserviceengine/zz_controller.go b/internal/controller/cse/microserviceengine/zz_controller.go deleted file mode 100755 index e6b369d6..00000000 --- a/internal/controller/cse/microserviceengine/zz_controller.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -package microserviceengine - -import ( - "time" - - "github.com/crossplane/crossplane-runtime/pkg/connection" - "github.com/crossplane/crossplane-runtime/pkg/event" - "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" - "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" - xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" - tjcontroller "github.com/upbound/upjet/pkg/controller" - "github.com/upbound/upjet/pkg/terraform" - ctrl "sigs.k8s.io/controller-runtime" - - v1beta1 "github.com/FrangipaneTeam/provider-flexibleengine/apis/cse/v1beta1" -) - -// Setup adds a controller that reconciles MicroserviceEngine managed resources. -func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { - name := managed.ControllerName(v1beta1.MicroserviceEngine_GroupVersionKind.String()) - var initializers managed.InitializerChain - cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} - if o.SecretStoreConfigGVK != nil { - cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) - } - r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1beta1.MicroserviceEngine_GroupVersionKind), - managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["flexibleengine_cse_microservice_engine"], - tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.MicroserviceEngine_GroupVersionKind))), - )), - managed.WithLogger(o.Logger.WithValues("controller", name)), - managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), - managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), - managed.WithTimeout(3*time.Minute), - managed.WithInitializers(initializers), - managed.WithConnectionPublishers(cps...), - managed.WithPollInterval(o.PollInterval), - ) - - return ctrl.NewControllerManagedBy(mgr). - Named(name). - WithOptions(o.ForControllerRuntime()). - For(&v1beta1.MicroserviceEngine{}). - Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) -} diff --git a/internal/controller/cse/microserviceinstance/zz_controller.go b/internal/controller/cse/microserviceinstance/zz_controller.go deleted file mode 100755 index d3cef6f7..00000000 --- a/internal/controller/cse/microserviceinstance/zz_controller.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2022 Upbound Inc. -*/ - -// Code generated by upjet. DO NOT EDIT. - -package microserviceinstance - -import ( - "time" - - "github.com/crossplane/crossplane-runtime/pkg/connection" - "github.com/crossplane/crossplane-runtime/pkg/event" - "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" - "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" - xpresource "github.com/crossplane/crossplane-runtime/pkg/resource" - tjcontroller "github.com/upbound/upjet/pkg/controller" - "github.com/upbound/upjet/pkg/terraform" - ctrl "sigs.k8s.io/controller-runtime" - - v1beta1 "github.com/FrangipaneTeam/provider-flexibleengine/apis/cse/v1beta1" -) - -// Setup adds a controller that reconciles MicroserviceInstance managed resources. -func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { - name := managed.ControllerName(v1beta1.MicroserviceInstance_GroupVersionKind.String()) - var initializers managed.InitializerChain - cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} - if o.SecretStoreConfigGVK != nil { - cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) - } - r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1beta1.MicroserviceInstance_GroupVersionKind), - managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["flexibleengine_cse_microservice_instance"], - tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1beta1.MicroserviceInstance_GroupVersionKind))), - )), - managed.WithLogger(o.Logger.WithValues("controller", name)), - managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), - managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), - managed.WithTimeout(3*time.Minute), - managed.WithInitializers(initializers), - managed.WithConnectionPublishers(cps...), - managed.WithPollInterval(o.PollInterval), - ) - - return ctrl.NewControllerManagedBy(mgr). - Named(name). - WithOptions(o.ForControllerRuntime()). - For(&v1beta1.MicroserviceInstance{}). - Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) -} diff --git a/internal/controller/zz_setup.go b/internal/controller/zz_setup.go index 355e443d..76ebfeab 100755 --- a/internal/controller/zz_setup.go +++ b/internal/controller/zz_setup.go @@ -38,9 +38,6 @@ import ( alarmrule "github.com/FrangipaneTeam/provider-flexibleengine/internal/controller/ces/alarmrule" backup "github.com/FrangipaneTeam/provider-flexibleengine/internal/controller/csbs/backup" backuppolicy "github.com/FrangipaneTeam/provider-flexibleengine/internal/controller/csbs/backuppolicy" - microservice "github.com/FrangipaneTeam/provider-flexibleengine/internal/controller/cse/microservice" - microserviceengine "github.com/FrangipaneTeam/provider-flexibleengine/internal/controller/cse/microserviceengine" - microserviceinstance "github.com/FrangipaneTeam/provider-flexibleengine/internal/controller/cse/microserviceinstance" clustercss "github.com/FrangipaneTeam/provider-flexibleengine/internal/controller/css/cluster" snapshot "github.com/FrangipaneTeam/provider-flexibleengine/internal/controller/css/snapshot" instancedcs "github.com/FrangipaneTeam/provider-flexibleengine/internal/controller/dcs/instance" @@ -212,9 +209,6 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { alarmrule.Setup, backup.Setup, backuppolicy.Setup, - microservice.Setup, - microserviceengine.Setup, - microserviceinstance.Setup, clustercss.Setup, snapshot.Setup, instancedcs.Setup, diff --git a/list-tested.md b/list-tested.md index f34070f6..b99bb681 100644 --- a/list-tested.md +++ b/list-tested.md @@ -67,13 +67,6 @@ | Backup | :white_check_mark: | | BackupPolicy | :white_check_mark: | -## cse.flexibleengine.upbound.io -| Kind | Tested | -| ---- | ------ | -| Microservice | :x: | -| MicroserviceEngine | :x: | -| MicroserviceInstance | :x: | - ## css.flexibleengine.upbound.io | Kind | Tested | | ---- | ------ | diff --git a/package/crds/cse.flexibleengine.upbound.io_microserviceengines.yaml b/package/crds/cse.flexibleengine.upbound.io_microserviceengines.yaml deleted file mode 100644 index 1dc7e025..00000000 --- a/package/crds/cse.flexibleengine.upbound.io_microserviceengines.yaml +++ /dev/null @@ -1,553 +0,0 @@ ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.8.0 - creationTimestamp: null - name: microserviceengines.cse.flexibleengine.upbound.io -spec: - group: cse.flexibleengine.upbound.io - names: - categories: - - crossplane - - managed - - flexibleengine - kind: MicroserviceEngine - listKind: MicroserviceEngineList - plural: microserviceengines - singular: microserviceengine - scope: Cluster - versions: - - additionalPrinterColumns: - - jsonPath: .status.conditions[?(@.type=='Ready')].status - name: READY - type: string - - jsonPath: .status.conditions[?(@.type=='Synced')].status - name: SYNCED - type: string - - jsonPath: .metadata.annotations.crossplane\.io/external-name - name: EXTERNAL-NAME - type: string - - jsonPath: .metadata.creationTimestamp - name: AGE - type: date - name: v1beta1 - schema: - openAPIV3Schema: - description: 'MicroserviceEngine is the Schema for the MicroserviceEngines - API. ""page_title: "flexibleengine_cse_microservice_engine"' - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: MicroserviceEngineSpec defines the desired state of MicroserviceEngine - properties: - deletionPolicy: - default: Delete - description: DeletionPolicy specifies what will happen to the underlying - external when this managed resource is deleted - either "Delete" - or "Orphan" the external resource. - enum: - - Orphan - - Delete - type: string - forProvider: - properties: - adminPassSecretRef: - description: 'Specifies the account password. The corresponding - account name is root. Required if auth_type is RBAC. Changing - this will create a new engine. The password format must meet - the following conditions:' - properties: - key: - description: The key to select. - type: string - name: - description: Name of the secret. - type: string - namespace: - description: Namespace of the secret. - type: string - required: - - key - - name - - namespace - type: object - authType: - description: Specifies the authentication method for the dedicated - microservice engine. Changing this will create a new engine. - type: string - availabilityZones: - description: Specifies the list of availability zone. Changing - this will create a new engine. - items: - type: string - type: array - description: - description: Specifies the description of the dedicated microservice - engine. The description can contian a maximum of 255 characters. - Changing this will create a new engine. - type: string - eipId: - description: Specifies the EIP ID to which the dedicated microservice - engine assocated. Changing this will create a new engine. - type: string - eipIdRef: - description: Reference to a EIP in eip to populate eipId. - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - eipIdSelector: - description: Selector for a EIP in eip to populate eipId. - properties: - matchControllerRef: - description: MatchControllerRef ensures an object with the - same controller reference as the selecting object is selected. - type: boolean - matchLabels: - additionalProperties: - type: string - description: MatchLabels ensures an object with matching labels - is selected. - type: object - policy: - description: Policies for selection. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - type: object - enterpriseProjectId: - description: The resource ID in UUID format. - type: string - extendParams: - additionalProperties: - type: string - description: Specifies the additional parameters for the dedicated - microservice engine. Changing this will create a new engine. - type: object - flavor: - description: Specifies the flavor of the dedicated microservice - engine. Changing this will create a new engine. - type: string - name: - description: Specifies the name of the dedicated microservice - engine. The name can contain 3 to 24 characters, only letters, - digits and hyphens (-) are allowed. The name must start with - a letter and cannot end with a hyphen (-). Changing this will - create a new engine. - type: string - networkId: - description: Specifies the ID of VPC the subnet to which the dedicated - microservice engine belongs. Changing this will create a new - engine. - type: string - networkIdRef: - description: Reference to a VPCSubnet in vpc to populate networkId. - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - networkIdSelector: - description: Selector for a VPCSubnet in vpc to populate networkId. - properties: - matchControllerRef: - description: MatchControllerRef ensures an object with the - same controller reference as the selecting object is selected. - type: boolean - matchLabels: - additionalProperties: - type: string - description: MatchLabels ensures an object with matching labels - is selected. - type: object - policy: - description: Policies for selection. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - type: object - region: - description: Specifies the region in which to create the dedicated - microservice engine. If omitted, the provider-level region will - be used. Changing this will create a new engine. - type: string - version: - description: 'Specifies the version of the dedicated microservice - engine. The value can be: CSE. Defaults to: CSE. Changing this - will create a new engine.' - type: string - required: - - authType - - availabilityZones - - flavor - - name - type: object - providerConfigRef: - default: - name: default - description: ProviderConfigReference specifies how the provider that - will be used to create, observe, update, and delete this managed - resource should be configured. - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of this - reference is required. The default is 'Required', which - means the reconcile will fail if the reference cannot be - resolved. 'Optional' means this reference will be a no-op - if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will attempt - to resolve the reference only when the corresponding field - is not present. Use 'Always' to resolve the reference on - every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - providerRef: - description: 'ProviderReference specifies the provider that will be - used to create, observe, update, and delete this managed resource. - Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of this - reference is required. The default is 'Required', which - means the reconcile will fail if the reference cannot be - resolved. 'Optional' means this reference will be a no-op - if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will attempt - to resolve the reference only when the corresponding field - is not present. Use 'Always' to resolve the reference on - every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - publishConnectionDetailsTo: - description: PublishConnectionDetailsTo specifies the connection secret - config which contains a name, metadata and a reference to secret - store config to which any connection details for this managed resource - should be written. Connection details frequently include the endpoint, - username, and password required to connect to the managed resource. - properties: - configRef: - default: - name: default - description: SecretStoreConfigRef specifies which secret store - config should be used for this ConnectionSecret. - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - metadata: - description: Metadata is the metadata for connection secret. - properties: - annotations: - additionalProperties: - type: string - description: Annotations are the annotations to be added to - connection secret. - For Kubernetes secrets, this will be - used as "metadata.annotations". - It is up to Secret Store - implementation for others store types. - type: object - labels: - additionalProperties: - type: string - description: Labels are the labels/tags to be added to connection - secret. - For Kubernetes secrets, this will be used as "metadata.labels". - - It is up to Secret Store implementation for others store - types. - type: object - type: - description: Type is the SecretType for the connection secret. - - Only valid for Kubernetes Secret Stores. - type: string - type: object - name: - description: Name is the name of the connection secret. - type: string - required: - - name - type: object - writeConnectionSecretToRef: - description: WriteConnectionSecretToReference specifies the namespace - and name of a Secret to which any connection details for this managed - resource should be written. Connection details frequently include - the endpoint, username, and password required to connect to the - managed resource. This field is planned to be replaced in a future - release in favor of PublishConnectionDetailsTo. Currently, both - could be set independently and connection details would be published - to both without affecting each other. - properties: - name: - description: Name of the secret. - type: string - namespace: - description: Namespace of the secret. - type: string - required: - - name - - namespace - type: object - required: - - forProvider - type: object - status: - description: MicroserviceEngineStatus defines the observed state of MicroserviceEngine. - properties: - atProvider: - properties: - configCenterAddresses: - description: The address of config center. The object structure - is documented below. - items: - properties: - private: - description: The internal access address. - type: string - public: - description: The public access address. This address is - only set when EIP is bound. - type: string - type: object - type: array - id: - description: The resource ID in UUID format. - type: string - instanceLimit: - description: The maximum number of the microservice instance resources. - type: number - serviceLimit: - description: The maximum number of the microservice resources. - type: number - serviceRegistryAddresses: - description: The connection address of service center. The object - structure is documented below. - items: - properties: - private: - description: The internal access address. - type: string - public: - description: The public access address. This address is - only set when EIP is bound. - type: string - type: object - type: array - type: object - conditions: - description: Conditions of the resource. - items: - description: A Condition that may apply to a resource. - properties: - lastTransitionTime: - description: LastTransitionTime is the last time this condition - transitioned from one status to another. - format: date-time - type: string - message: - description: A Message containing details about this condition's - last transition from one status to another, if any. - type: string - reason: - description: A Reason for this condition's last transition from - one status to another. - type: string - status: - description: Status of this condition; is it currently True, - False, or Unknown? - type: string - type: - description: Type of this condition. At most one of each condition - type may apply to a resource at any point in time. - type: string - required: - - lastTransitionTime - - reason - - status - - type - type: object - type: array - type: object - required: - - spec - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/package/crds/cse.flexibleengine.upbound.io_microserviceinstances.yaml b/package/crds/cse.flexibleengine.upbound.io_microserviceinstances.yaml deleted file mode 100644 index 55901a97..00000000 --- a/package/crds/cse.flexibleengine.upbound.io_microserviceinstances.yaml +++ /dev/null @@ -1,558 +0,0 @@ ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.8.0 - creationTimestamp: null - name: microserviceinstances.cse.flexibleengine.upbound.io -spec: - group: cse.flexibleengine.upbound.io - names: - categories: - - crossplane - - managed - - flexibleengine - kind: MicroserviceInstance - listKind: MicroserviceInstanceList - plural: microserviceinstances - singular: microserviceinstance - scope: Cluster - versions: - - additionalPrinterColumns: - - jsonPath: .status.conditions[?(@.type=='Ready')].status - name: READY - type: string - - jsonPath: .status.conditions[?(@.type=='Synced')].status - name: SYNCED - type: string - - jsonPath: .metadata.annotations.crossplane\.io/external-name - name: EXTERNAL-NAME - type: string - - jsonPath: .metadata.creationTimestamp - name: AGE - type: date - name: v1beta1 - schema: - openAPIV3Schema: - description: 'MicroserviceInstance is the Schema for the MicroserviceInstances - API. ""page_title: "flexibleengine_cse_microservice_instance"' - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: MicroserviceInstanceSpec defines the desired state of MicroserviceInstance - properties: - deletionPolicy: - default: Delete - description: DeletionPolicy specifies what will happen to the underlying - external when this managed resource is deleted - either "Delete" - or "Orphan" the external resource. - enum: - - Orphan - - Delete - type: string - forProvider: - properties: - adminPassSecretRef: - description: 'Specifies the account password. Required if the - auth_type of engine is RBAC. Changing this will create a new - microservice instance. The password format must meet the following - conditions:' - properties: - key: - description: The key to select. - type: string - name: - description: Name of the secret. - type: string - namespace: - description: Namespace of the secret. - type: string - required: - - key - - name - - namespace - type: object - adminUser: - description: Specifies the account name. The initial account name - is root. Required if the auth_type of engine is RBAC. Changing - this will create a new microservice instance. - type: string - connectAddress: - description: Specifies the connection address of service registry - center for the specified dedicated CSE engine. Changing this - will create a new microservice instance. - type: string - connectAddressRef: - description: Reference to a MicroserviceEngine to populate connectAddress. - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - connectAddressSelector: - description: Selector for a MicroserviceEngine to populate connectAddress. - properties: - matchControllerRef: - description: MatchControllerRef ensures an object with the - same controller reference as the selecting object is selected. - type: boolean - matchLabels: - additionalProperties: - type: string - description: MatchLabels ensures an object with matching labels - is selected. - type: object - policy: - description: Policies for selection. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - type: object - dataCenter: - description: Specifies the data center configuration. The object - structure is documented below. Changing this will create a new - microservice instance. - items: - properties: - availabilityZone: - description: Specifies the custom availability zone name - of the data center. Changing this will create a new microservice - instance. - type: string - name: - description: Specifies the data center name. Changing this - will create a new microservice instance. - type: string - region: - description: Specifies the custom region name of the data - center. Changing this will create a new microservice instance. - type: string - required: - - availabilityZone - - name - - region - type: object - type: array - endpoints: - description: Specifies the access addresses information. Changing - this will create a new microservice instance. - items: - type: string - type: array - healthCheck: - description: Specifies the health check configuration. The object - structure is documented below. Changing this will create a new - microservice instance. - items: - properties: - interval: - description: Specifies the heartbeat interval. The unit - is s (second). Changing this will create a new microservice - instance. - type: number - maxRetries: - description: Specifies the maximum retries. Changing this - will create a new microservice instance. - type: number - mode: - description: Specifies the heartbeat mode. The valid values - are push and pull. Changing this will create a new microservice - instance. - type: string - port: - description: Specifies the port number. Changing this will - create a new microservice instance. - type: number - required: - - interval - - maxRetries - - mode - type: object - type: array - hostName: - description: Specifies the host name, such as localhost. Changing - this will create a new microservice instance. - type: string - microserviceId: - description: Specifies the ID of the dedicated microservice to - which the instance belongs. Changing this will create a new - microservice instance. - type: string - microserviceIdRef: - description: Reference to a Microservice to populate microserviceId. - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - microserviceIdSelector: - description: Selector for a Microservice to populate microserviceId. - properties: - matchControllerRef: - description: MatchControllerRef ensures an object with the - same controller reference as the selecting object is selected. - type: boolean - matchLabels: - additionalProperties: - type: string - description: MatchLabels ensures an object with matching labels - is selected. - type: object - policy: - description: Policies for selection. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - type: object - properties: - additionalProperties: - type: string - description: Specifies the extended attributes. Changing this - will create a new microservice instance. - type: object - version: - description: Specifies the verison of the dedicated microservice - instance. Changing this will create a new microservice instance. - type: string - required: - - endpoints - - hostName - type: object - providerConfigRef: - default: - name: default - description: ProviderConfigReference specifies how the provider that - will be used to create, observe, update, and delete this managed - resource should be configured. - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of this - reference is required. The default is 'Required', which - means the reconcile will fail if the reference cannot be - resolved. 'Optional' means this reference will be a no-op - if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will attempt - to resolve the reference only when the corresponding field - is not present. Use 'Always' to resolve the reference on - every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - providerRef: - description: 'ProviderReference specifies the provider that will be - used to create, observe, update, and delete this managed resource. - Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of this - reference is required. The default is 'Required', which - means the reconcile will fail if the reference cannot be - resolved. 'Optional' means this reference will be a no-op - if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will attempt - to resolve the reference only when the corresponding field - is not present. Use 'Always' to resolve the reference on - every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - publishConnectionDetailsTo: - description: PublishConnectionDetailsTo specifies the connection secret - config which contains a name, metadata and a reference to secret - store config to which any connection details for this managed resource - should be written. Connection details frequently include the endpoint, - username, and password required to connect to the managed resource. - properties: - configRef: - default: - name: default - description: SecretStoreConfigRef specifies which secret store - config should be used for this ConnectionSecret. - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - metadata: - description: Metadata is the metadata for connection secret. - properties: - annotations: - additionalProperties: - type: string - description: Annotations are the annotations to be added to - connection secret. - For Kubernetes secrets, this will be - used as "metadata.annotations". - It is up to Secret Store - implementation for others store types. - type: object - labels: - additionalProperties: - type: string - description: Labels are the labels/tags to be added to connection - secret. - For Kubernetes secrets, this will be used as "metadata.labels". - - It is up to Secret Store implementation for others store - types. - type: object - type: - description: Type is the SecretType for the connection secret. - - Only valid for Kubernetes Secret Stores. - type: string - type: object - name: - description: Name is the name of the connection secret. - type: string - required: - - name - type: object - writeConnectionSecretToRef: - description: WriteConnectionSecretToReference specifies the namespace - and name of a Secret to which any connection details for this managed - resource should be written. Connection details frequently include - the endpoint, username, and password required to connect to the - managed resource. This field is planned to be replaced in a future - release in favor of PublishConnectionDetailsTo. Currently, both - could be set independently and connection details would be published - to both without affecting each other. - properties: - name: - description: Name of the secret. - type: string - namespace: - description: Namespace of the secret. - type: string - required: - - name - - namespace - type: object - required: - - forProvider - type: object - status: - description: MicroserviceInstanceStatus defines the observed state of - MicroserviceInstance. - properties: - atProvider: - properties: - id: - description: The microservice instance ID. - type: string - status: - description: The microservice instance status. The values supports - UP, DOWN, STARTING and OUTOFSERVICE. - type: string - type: object - conditions: - description: Conditions of the resource. - items: - description: A Condition that may apply to a resource. - properties: - lastTransitionTime: - description: LastTransitionTime is the last time this condition - transitioned from one status to another. - format: date-time - type: string - message: - description: A Message containing details about this condition's - last transition from one status to another, if any. - type: string - reason: - description: A Reason for this condition's last transition from - one status to another. - type: string - status: - description: Status of this condition; is it currently True, - False, or Unknown? - type: string - type: - description: Type of this condition. At most one of each condition - type may apply to a resource at any point in time. - type: string - required: - - lastTransitionTime - - reason - - status - - type - type: object - type: array - type: object - required: - - spec - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: [] diff --git a/package/crds/cse.flexibleengine.upbound.io_microservices.yaml b/package/crds/cse.flexibleengine.upbound.io_microservices.yaml deleted file mode 100644 index 798de231..00000000 --- a/package/crds/cse.flexibleengine.upbound.io_microservices.yaml +++ /dev/null @@ -1,435 +0,0 @@ ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.8.0 - creationTimestamp: null - name: microservices.cse.flexibleengine.upbound.io -spec: - group: cse.flexibleengine.upbound.io - names: - categories: - - crossplane - - managed - - flexibleengine - kind: Microservice - listKind: MicroserviceList - plural: microservices - singular: microservice - scope: Cluster - versions: - - additionalPrinterColumns: - - jsonPath: .status.conditions[?(@.type=='Ready')].status - name: READY - type: string - - jsonPath: .status.conditions[?(@.type=='Synced')].status - name: SYNCED - type: string - - jsonPath: .metadata.annotations.crossplane\.io/external-name - name: EXTERNAL-NAME - type: string - - jsonPath: .metadata.creationTimestamp - name: AGE - type: date - name: v1beta1 - schema: - openAPIV3Schema: - description: 'Microservice is the Schema for the Microservices API. ""page_title: - "flexibleengine_cse_microservice"' - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation - of an object. Servers should convert recognized schemas to the latest - internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this - object represents. Servers may infer this from the endpoint the client - submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: MicroserviceSpec defines the desired state of Microservice - properties: - deletionPolicy: - default: Delete - description: DeletionPolicy specifies what will happen to the underlying - external when this managed resource is deleted - either "Delete" - or "Orphan" the external resource. - enum: - - Orphan - - Delete - type: string - forProvider: - properties: - adminPassSecretRef: - description: 'Specifies the account password. Required if the - auth_type of engine is RBAC. Changing this will create a new - microservice. The password format must meet the following conditions:' - properties: - key: - description: The key to select. - type: string - name: - description: Name of the secret. - type: string - namespace: - description: Namespace of the secret. - type: string - required: - - key - - name - - namespace - type: object - adminUser: - description: Specifies the account name. The initial account name - is root. Required if the auth_type of engine is RBAC. Changing - this will create a new microservice. - type: string - appName: - description: Specifies the name of the dedicated microservice - application. Changing this will create a new microservice. - type: string - connectAddress: - description: Specifies the connection address of service registry - center for the specified dedicated CSE engine. Changing this - will create a new microservice. - type: string - connectAddressRef: - description: Reference to a MicroserviceEngine to populate connectAddress. - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - connectAddressSelector: - description: Selector for a MicroserviceEngine to populate connectAddress. - properties: - matchControllerRef: - description: MatchControllerRef ensures an object with the - same controller reference as the selecting object is selected. - type: boolean - matchLabels: - additionalProperties: - type: string - description: MatchLabels ensures an object with matching labels - is selected. - type: object - policy: - description: Policies for selection. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - type: object - description: - description: Specifies the description of the dedicated microservice. - The description can contian a maximum of 256 characters. Changing - this will create a new microservice. - type: string - environment: - description: Specifies the environment (stage) type. The valid - values are development, testing, acceptance and production. - If omitted, the microservice will be deployed in an empty environment. - Changing this will create a new microservice. - type: string - level: - description: Specifies the microservice level. The valid values - are FRONT, MIDDLE, and BACK. Changing this will create a new - microservice. - type: string - name: - description: Specifies the name of the dedicated microservice. - The name can contain 1 to 128 characters, only letters, digits, - underscore (_), hyphens (-) and dots (.) are allowed. The name - must start and end with a letter or digit. Changing this will - create a new microservice. - type: string - version: - description: Specifies the version of the dedicated microservice. - Changing this will create a new microservice. - type: string - required: - - appName - - name - - version - type: object - providerConfigRef: - default: - name: default - description: ProviderConfigReference specifies how the provider that - will be used to create, observe, update, and delete this managed - resource should be configured. - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of this - reference is required. The default is 'Required', which - means the reconcile will fail if the reference cannot be - resolved. 'Optional' means this reference will be a no-op - if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will attempt - to resolve the reference only when the corresponding field - is not present. Use 'Always' to resolve the reference on - every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - providerRef: - description: 'ProviderReference specifies the provider that will be - used to create, observe, update, and delete this managed resource. - Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`' - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of this - reference is required. The default is 'Required', which - means the reconcile will fail if the reference cannot be - resolved. 'Optional' means this reference will be a no-op - if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will attempt - to resolve the reference only when the corresponding field - is not present. Use 'Always' to resolve the reference on - every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - publishConnectionDetailsTo: - description: PublishConnectionDetailsTo specifies the connection secret - config which contains a name, metadata and a reference to secret - store config to which any connection details for this managed resource - should be written. Connection details frequently include the endpoint, - username, and password required to connect to the managed resource. - properties: - configRef: - default: - name: default - description: SecretStoreConfigRef specifies which secret store - config should be used for this ConnectionSecret. - properties: - name: - description: Name of the referenced object. - type: string - policy: - description: Policies for referencing. - properties: - resolution: - default: Required - description: Resolution specifies whether resolution of - this reference is required. The default is 'Required', - which means the reconcile will fail if the reference - cannot be resolved. 'Optional' means this reference - will be a no-op if it cannot be resolved. - enum: - - Required - - Optional - type: string - resolve: - description: Resolve specifies when this reference should - be resolved. The default is 'IfNotPresent', which will - attempt to resolve the reference only when the corresponding - field is not present. Use 'Always' to resolve the reference - on every reconcile. - enum: - - Always - - IfNotPresent - type: string - type: object - required: - - name - type: object - metadata: - description: Metadata is the metadata for connection secret. - properties: - annotations: - additionalProperties: - type: string - description: Annotations are the annotations to be added to - connection secret. - For Kubernetes secrets, this will be - used as "metadata.annotations". - It is up to Secret Store - implementation for others store types. - type: object - labels: - additionalProperties: - type: string - description: Labels are the labels/tags to be added to connection - secret. - For Kubernetes secrets, this will be used as "metadata.labels". - - It is up to Secret Store implementation for others store - types. - type: object - type: - description: Type is the SecretType for the connection secret. - - Only valid for Kubernetes Secret Stores. - type: string - type: object - name: - description: Name is the name of the connection secret. - type: string - required: - - name - type: object - writeConnectionSecretToRef: - description: WriteConnectionSecretToReference specifies the namespace - and name of a Secret to which any connection details for this managed - resource should be written. Connection details frequently include - the endpoint, username, and password required to connect to the - managed resource. This field is planned to be replaced in a future - release in favor of PublishConnectionDetailsTo. Currently, both - could be set independently and connection details would be published - to both without affecting each other. - properties: - name: - description: Name of the secret. - type: string - namespace: - description: Namespace of the secret. - type: string - required: - - name - - namespace - type: object - required: - - forProvider - type: object - status: - description: MicroserviceStatus defines the observed state of Microservice. - properties: - atProvider: - properties: - id: - description: The microservice ID. - type: string - status: - description: The microservice status. The values supports UP and - DOWN. - type: string - type: object - conditions: - description: Conditions of the resource. - items: - description: A Condition that may apply to a resource. - properties: - lastTransitionTime: - description: LastTransitionTime is the last time this condition - transitioned from one status to another. - format: date-time - type: string - message: - description: A Message containing details about this condition's - last transition from one status to another, if any. - type: string - reason: - description: A Reason for this condition's last transition from - one status to another. - type: string - status: - description: Status of this condition; is it currently True, - False, or Unknown? - type: string - type: - description: Type of this condition. At most one of each condition - type may apply to a resource at any point in time. - type: string - required: - - lastTransitionTime - - reason - - status - - type - type: object - type: array - type: object - required: - - spec - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: [] - storedVersions: []