diff --git a/apis/registry/v1alpha1/zz_generated.deepcopy.go b/apis/registry/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000..fc732e0 --- /dev/null +++ b/apis/registry/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,967 @@ +//go:build !ignore_autogenerated + +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by controller-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + 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 *FeaturesInitParameters) DeepCopyInto(out *FeaturesInitParameters) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeaturesInitParameters. +func (in *FeaturesInitParameters) DeepCopy() *FeaturesInitParameters { + if in == nil { + return nil + } + out := new(FeaturesInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FeaturesObservation) DeepCopyInto(out *FeaturesObservation) { + *out = *in + if in.Vulnerability != nil { + in, out := &in.Vulnerability, &out.Vulnerability + *out = new(bool) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeaturesObservation. +func (in *FeaturesObservation) DeepCopy() *FeaturesObservation { + if in == nil { + return nil + } + out := new(FeaturesObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FeaturesParameters) DeepCopyInto(out *FeaturesParameters) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeaturesParameters. +func (in *FeaturesParameters) DeepCopy() *FeaturesParameters { + if in == nil { + return nil + } + out := new(FeaturesParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PlanInitParameters) DeepCopyInto(out *PlanInitParameters) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanInitParameters. +func (in *PlanInitParameters) DeepCopy() *PlanInitParameters { + if in == nil { + return nil + } + out := new(PlanInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PlanObservation) DeepCopyInto(out *PlanObservation) { + *out = *in + if in.Code != nil { + in, out := &in.Code, &out.Code + *out = new(string) + **out = **in + } + if in.CreatedAt != nil { + in, out := &in.CreatedAt, &out.CreatedAt + *out = new(string) + **out = **in + } + if in.Features != nil { + in, out := &in.Features, &out.Features + *out = make([]FeaturesObservation, 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.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.RegistryLimits != nil { + in, out := &in.RegistryLimits, &out.RegistryLimits + *out = make([]RegistryLimitsObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.UpdatedAt != nil { + in, out := &in.UpdatedAt, &out.UpdatedAt + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanObservation. +func (in *PlanObservation) DeepCopy() *PlanObservation { + if in == nil { + return nil + } + out := new(PlanObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PlanParameters) DeepCopyInto(out *PlanParameters) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanParameters. +func (in *PlanParameters) DeepCopy() *PlanParameters { + if in == nil { + return nil + } + out := new(PlanParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistry) DeepCopyInto(out *ProjectContainerregistry) { + *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 ProjectContainerregistry. +func (in *ProjectContainerregistry) DeepCopy() *ProjectContainerregistry { + if in == nil { + return nil + } + out := new(ProjectContainerregistry) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectContainerregistry) 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 *ProjectContainerregistryInitParameters) DeepCopyInto(out *ProjectContainerregistryInitParameters) { + *out = *in + if in.PlanID != nil { + in, out := &in.PlanID, &out.PlanID + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryInitParameters. +func (in *ProjectContainerregistryInitParameters) DeepCopy() *ProjectContainerregistryInitParameters { + if in == nil { + return nil + } + out := new(ProjectContainerregistryInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryList) DeepCopyInto(out *ProjectContainerregistryList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ProjectContainerregistry, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryList. +func (in *ProjectContainerregistryList) DeepCopy() *ProjectContainerregistryList { + if in == nil { + return nil + } + out := new(ProjectContainerregistryList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectContainerregistryList) 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 *ProjectContainerregistryObservation) DeepCopyInto(out *ProjectContainerregistryObservation) { + *out = *in + if in.CreatedAt != nil { + in, out := &in.CreatedAt, &out.CreatedAt + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.Plan != nil { + in, out := &in.Plan, &out.Plan + *out = make([]PlanObservation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.PlanID != nil { + in, out := &in.PlanID, &out.PlanID + *out = new(string) + **out = **in + } + if in.ProjectID != nil { + in, out := &in.ProjectID, &out.ProjectID + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } + if in.Size != nil { + in, out := &in.Size, &out.Size + *out = new(float64) + **out = **in + } + if in.Status != nil { + in, out := &in.Status, &out.Status + *out = new(string) + **out = **in + } + if in.URL != nil { + in, out := &in.URL, &out.URL + *out = new(string) + **out = **in + } + if in.UpdatedAt != nil { + in, out := &in.UpdatedAt, &out.UpdatedAt + *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 ProjectContainerregistryObservation. +func (in *ProjectContainerregistryObservation) DeepCopy() *ProjectContainerregistryObservation { + if in == nil { + return nil + } + out := new(ProjectContainerregistryObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryOidc) DeepCopyInto(out *ProjectContainerregistryOidc) { + *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 ProjectContainerregistryOidc. +func (in *ProjectContainerregistryOidc) DeepCopy() *ProjectContainerregistryOidc { + if in == nil { + return nil + } + out := new(ProjectContainerregistryOidc) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectContainerregistryOidc) 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 *ProjectContainerregistryOidcInitParameters) DeepCopyInto(out *ProjectContainerregistryOidcInitParameters) { + *out = *in + if in.DeleteUsers != nil { + in, out := &in.DeleteUsers, &out.DeleteUsers + *out = new(bool) + **out = **in + } + if in.OidcAdminGroup != nil { + in, out := &in.OidcAdminGroup, &out.OidcAdminGroup + *out = new(string) + **out = **in + } + if in.OidcAutoOnboard != nil { + in, out := &in.OidcAutoOnboard, &out.OidcAutoOnboard + *out = new(bool) + **out = **in + } + if in.OidcClientID != nil { + in, out := &in.OidcClientID, &out.OidcClientID + *out = new(string) + **out = **in + } + if in.OidcEndpoint != nil { + in, out := &in.OidcEndpoint, &out.OidcEndpoint + *out = new(string) + **out = **in + } + if in.OidcGroupsClaim != nil { + in, out := &in.OidcGroupsClaim, &out.OidcGroupsClaim + *out = new(string) + **out = **in + } + if in.OidcName != nil { + in, out := &in.OidcName, &out.OidcName + *out = new(string) + **out = **in + } + if in.OidcScope != nil { + in, out := &in.OidcScope, &out.OidcScope + *out = new(string) + **out = **in + } + if in.OidcUserClaim != nil { + in, out := &in.OidcUserClaim, &out.OidcUserClaim + *out = new(string) + **out = **in + } + if in.OidcVerifyCert != nil { + in, out := &in.OidcVerifyCert, &out.OidcVerifyCert + *out = new(bool) + **out = **in + } + if in.RegistryID != nil { + in, out := &in.RegistryID, &out.RegistryID + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryOidcInitParameters. +func (in *ProjectContainerregistryOidcInitParameters) DeepCopy() *ProjectContainerregistryOidcInitParameters { + if in == nil { + return nil + } + out := new(ProjectContainerregistryOidcInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryOidcList) DeepCopyInto(out *ProjectContainerregistryOidcList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ProjectContainerregistryOidc, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryOidcList. +func (in *ProjectContainerregistryOidcList) DeepCopy() *ProjectContainerregistryOidcList { + if in == nil { + return nil + } + out := new(ProjectContainerregistryOidcList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectContainerregistryOidcList) 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 *ProjectContainerregistryOidcObservation) DeepCopyInto(out *ProjectContainerregistryOidcObservation) { + *out = *in + if in.DeleteUsers != nil { + in, out := &in.DeleteUsers, &out.DeleteUsers + *out = new(bool) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.OidcAdminGroup != nil { + in, out := &in.OidcAdminGroup, &out.OidcAdminGroup + *out = new(string) + **out = **in + } + if in.OidcAutoOnboard != nil { + in, out := &in.OidcAutoOnboard, &out.OidcAutoOnboard + *out = new(bool) + **out = **in + } + if in.OidcClientID != nil { + in, out := &in.OidcClientID, &out.OidcClientID + *out = new(string) + **out = **in + } + if in.OidcEndpoint != nil { + in, out := &in.OidcEndpoint, &out.OidcEndpoint + *out = new(string) + **out = **in + } + if in.OidcGroupsClaim != nil { + in, out := &in.OidcGroupsClaim, &out.OidcGroupsClaim + *out = new(string) + **out = **in + } + if in.OidcName != nil { + in, out := &in.OidcName, &out.OidcName + *out = new(string) + **out = **in + } + if in.OidcScope != nil { + in, out := &in.OidcScope, &out.OidcScope + *out = new(string) + **out = **in + } + if in.OidcUserClaim != nil { + in, out := &in.OidcUserClaim, &out.OidcUserClaim + *out = new(string) + **out = **in + } + if in.OidcVerifyCert != nil { + in, out := &in.OidcVerifyCert, &out.OidcVerifyCert + *out = new(bool) + **out = **in + } + if in.RegistryID != nil { + in, out := &in.RegistryID, &out.RegistryID + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryOidcObservation. +func (in *ProjectContainerregistryOidcObservation) DeepCopy() *ProjectContainerregistryOidcObservation { + if in == nil { + return nil + } + out := new(ProjectContainerregistryOidcObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryOidcParameters) DeepCopyInto(out *ProjectContainerregistryOidcParameters) { + *out = *in + if in.DeleteUsers != nil { + in, out := &in.DeleteUsers, &out.DeleteUsers + *out = new(bool) + **out = **in + } + if in.OidcAdminGroup != nil { + in, out := &in.OidcAdminGroup, &out.OidcAdminGroup + *out = new(string) + **out = **in + } + if in.OidcAutoOnboard != nil { + in, out := &in.OidcAutoOnboard, &out.OidcAutoOnboard + *out = new(bool) + **out = **in + } + if in.OidcClientID != nil { + in, out := &in.OidcClientID, &out.OidcClientID + *out = new(string) + **out = **in + } + out.OidcClientSecretSecretRef = in.OidcClientSecretSecretRef + if in.OidcEndpoint != nil { + in, out := &in.OidcEndpoint, &out.OidcEndpoint + *out = new(string) + **out = **in + } + if in.OidcGroupsClaim != nil { + in, out := &in.OidcGroupsClaim, &out.OidcGroupsClaim + *out = new(string) + **out = **in + } + if in.OidcName != nil { + in, out := &in.OidcName, &out.OidcName + *out = new(string) + **out = **in + } + if in.OidcScope != nil { + in, out := &in.OidcScope, &out.OidcScope + *out = new(string) + **out = **in + } + if in.OidcUserClaim != nil { + in, out := &in.OidcUserClaim, &out.OidcUserClaim + *out = new(string) + **out = **in + } + if in.OidcVerifyCert != nil { + in, out := &in.OidcVerifyCert, &out.OidcVerifyCert + *out = new(bool) + **out = **in + } + if in.RegistryID != nil { + in, out := &in.RegistryID, &out.RegistryID + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryOidcParameters. +func (in *ProjectContainerregistryOidcParameters) DeepCopy() *ProjectContainerregistryOidcParameters { + if in == nil { + return nil + } + out := new(ProjectContainerregistryOidcParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryOidcSpec) DeepCopyInto(out *ProjectContainerregistryOidcSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryOidcSpec. +func (in *ProjectContainerregistryOidcSpec) DeepCopy() *ProjectContainerregistryOidcSpec { + if in == nil { + return nil + } + out := new(ProjectContainerregistryOidcSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryOidcStatus) DeepCopyInto(out *ProjectContainerregistryOidcStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryOidcStatus. +func (in *ProjectContainerregistryOidcStatus) DeepCopy() *ProjectContainerregistryOidcStatus { + if in == nil { + return nil + } + out := new(ProjectContainerregistryOidcStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryParameters) DeepCopyInto(out *ProjectContainerregistryParameters) { + *out = *in + if in.PlanID != nil { + in, out := &in.PlanID, &out.PlanID + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryParameters. +func (in *ProjectContainerregistryParameters) DeepCopy() *ProjectContainerregistryParameters { + if in == nil { + return nil + } + out := new(ProjectContainerregistryParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistrySpec) DeepCopyInto(out *ProjectContainerregistrySpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistrySpec. +func (in *ProjectContainerregistrySpec) DeepCopy() *ProjectContainerregistrySpec { + if in == nil { + return nil + } + out := new(ProjectContainerregistrySpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryStatus) DeepCopyInto(out *ProjectContainerregistryStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryStatus. +func (in *ProjectContainerregistryStatus) DeepCopy() *ProjectContainerregistryStatus { + if in == nil { + return nil + } + out := new(ProjectContainerregistryStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryUser) DeepCopyInto(out *ProjectContainerregistryUser) { + *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 ProjectContainerregistryUser. +func (in *ProjectContainerregistryUser) DeepCopy() *ProjectContainerregistryUser { + if in == nil { + return nil + } + out := new(ProjectContainerregistryUser) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectContainerregistryUser) 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 *ProjectContainerregistryUserInitParameters) DeepCopyInto(out *ProjectContainerregistryUserInitParameters) { + *out = *in + if in.Email != nil { + in, out := &in.Email, &out.Email + *out = new(string) + **out = **in + } + if in.Login != nil { + in, out := &in.Login, &out.Login + *out = new(string) + **out = **in + } + if in.RegistryID != nil { + in, out := &in.RegistryID, &out.RegistryID + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryUserInitParameters. +func (in *ProjectContainerregistryUserInitParameters) DeepCopy() *ProjectContainerregistryUserInitParameters { + if in == nil { + return nil + } + out := new(ProjectContainerregistryUserInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryUserList) DeepCopyInto(out *ProjectContainerregistryUserList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ProjectContainerregistryUser, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryUserList. +func (in *ProjectContainerregistryUserList) DeepCopy() *ProjectContainerregistryUserList { + if in == nil { + return nil + } + out := new(ProjectContainerregistryUserList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ProjectContainerregistryUserList) 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 *ProjectContainerregistryUserObservation) DeepCopyInto(out *ProjectContainerregistryUserObservation) { + *out = *in + if in.Email != nil { + in, out := &in.Email, &out.Email + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.Login != nil { + in, out := &in.Login, &out.Login + *out = new(string) + **out = **in + } + if in.RegistryID != nil { + in, out := &in.RegistryID, &out.RegistryID + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } + if in.User != nil { + in, out := &in.User, &out.User + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryUserObservation. +func (in *ProjectContainerregistryUserObservation) DeepCopy() *ProjectContainerregistryUserObservation { + if in == nil { + return nil + } + out := new(ProjectContainerregistryUserObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryUserParameters) DeepCopyInto(out *ProjectContainerregistryUserParameters) { + *out = *in + if in.Email != nil { + in, out := &in.Email, &out.Email + *out = new(string) + **out = **in + } + if in.Login != nil { + in, out := &in.Login, &out.Login + *out = new(string) + **out = **in + } + if in.RegistryID != nil { + in, out := &in.RegistryID, &out.RegistryID + *out = new(string) + **out = **in + } + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryUserParameters. +func (in *ProjectContainerregistryUserParameters) DeepCopy() *ProjectContainerregistryUserParameters { + if in == nil { + return nil + } + out := new(ProjectContainerregistryUserParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryUserSpec) DeepCopyInto(out *ProjectContainerregistryUserSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) + in.InitProvider.DeepCopyInto(&out.InitProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryUserSpec. +func (in *ProjectContainerregistryUserSpec) DeepCopy() *ProjectContainerregistryUserSpec { + if in == nil { + return nil + } + out := new(ProjectContainerregistryUserSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ProjectContainerregistryUserStatus) DeepCopyInto(out *ProjectContainerregistryUserStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectContainerregistryUserStatus. +func (in *ProjectContainerregistryUserStatus) DeepCopy() *ProjectContainerregistryUserStatus { + if in == nil { + return nil + } + out := new(ProjectContainerregistryUserStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RegistryLimitsInitParameters) DeepCopyInto(out *RegistryLimitsInitParameters) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistryLimitsInitParameters. +func (in *RegistryLimitsInitParameters) DeepCopy() *RegistryLimitsInitParameters { + if in == nil { + return nil + } + out := new(RegistryLimitsInitParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RegistryLimitsObservation) DeepCopyInto(out *RegistryLimitsObservation) { + *out = *in + if in.ImageStorage != nil { + in, out := &in.ImageStorage, &out.ImageStorage + *out = new(float64) + **out = **in + } + if in.ParallelRequest != nil { + in, out := &in.ParallelRequest, &out.ParallelRequest + *out = new(float64) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistryLimitsObservation. +func (in *RegistryLimitsObservation) DeepCopy() *RegistryLimitsObservation { + if in == nil { + return nil + } + out := new(RegistryLimitsObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RegistryLimitsParameters) DeepCopyInto(out *RegistryLimitsParameters) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistryLimitsParameters. +func (in *RegistryLimitsParameters) DeepCopy() *RegistryLimitsParameters { + if in == nil { + return nil + } + out := new(RegistryLimitsParameters) + in.DeepCopyInto(out) + return out +} diff --git a/apis/registry/v1alpha1/zz_generated.managed.go b/apis/registry/v1alpha1/zz_generated.managed.go new file mode 100644 index 0000000..03bceac --- /dev/null +++ b/apis/registry/v1alpha1/zz_generated.managed.go @@ -0,0 +1,188 @@ +/* +Copyright 2022 Upbound Inc. +*/ +// Code generated by angryjet. DO NOT EDIT. + +package v1alpha1 + +import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" + +// GetCondition of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicies of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) GetManagementPolicies() xpv1.ManagementPolicies { + return mg.Spec.ManagementPolicies +} + +// GetProviderConfigReference of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +// GetPublishConnectionDetailsTo of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicies of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) SetManagementPolicies(r xpv1.ManagementPolicies) { + mg.Spec.ManagementPolicies = r +} + +// SetProviderConfigReference of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +// SetPublishConnectionDetailsTo of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this ProjectContainerregistry. +func (mg *ProjectContainerregistry) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicies of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) GetManagementPolicies() xpv1.ManagementPolicies { + return mg.Spec.ManagementPolicies +} + +// GetProviderConfigReference of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +// GetPublishConnectionDetailsTo of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicies of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) SetManagementPolicies(r xpv1.ManagementPolicies) { + mg.Spec.ManagementPolicies = r +} + +// SetProviderConfigReference of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +// SetPublishConnectionDetailsTo of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this ProjectContainerregistryOidc. +func (mg *ProjectContainerregistryOidc) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetManagementPolicies of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) GetManagementPolicies() xpv1.ManagementPolicies { + return mg.Spec.ManagementPolicies +} + +// GetProviderConfigReference of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +// GetPublishConnectionDetailsTo of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + +// GetWriteConnectionSecretToReference of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetManagementPolicies of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) SetManagementPolicies(r xpv1.ManagementPolicies) { + mg.Spec.ManagementPolicies = r +} + +// SetProviderConfigReference of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +// SetPublishConnectionDetailsTo of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + +// SetWriteConnectionSecretToReference of this ProjectContainerregistryUser. +func (mg *ProjectContainerregistryUser) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} diff --git a/apis/registry/v1alpha1/zz_generated.managedlist.go b/apis/registry/v1alpha1/zz_generated.managedlist.go new file mode 100644 index 0000000..0163c83 --- /dev/null +++ b/apis/registry/v1alpha1/zz_generated.managedlist.go @@ -0,0 +1,35 @@ +/* +Copyright 2022 Upbound Inc. +*/ +// Code generated by angryjet. DO NOT EDIT. + +package v1alpha1 + +import resource "github.com/crossplane/crossplane-runtime/pkg/resource" + +// GetItems of this ProjectContainerregistryList. +func (l *ProjectContainerregistryList) 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 ProjectContainerregistryOidcList. +func (l *ProjectContainerregistryOidcList) 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 ProjectContainerregistryUserList. +func (l *ProjectContainerregistryUserList) 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/registry/v1alpha1/zz_generated_terraformed.go b/apis/registry/v1alpha1/zz_generated_terraformed.go new file mode 100755 index 0000000..c566eb2 --- /dev/null +++ b/apis/registry/v1alpha1/zz_generated_terraformed.go @@ -0,0 +1,270 @@ +// SPDX-FileCopyrightText: 2023 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1alpha1 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/upjet/pkg/resource" + "github.com/crossplane/upjet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this ProjectContainerregistry +func (mg *ProjectContainerregistry) GetTerraformResourceType() string { + return "ovh_cloud_project_containerregistry" +} + +// GetConnectionDetailsMapping for this ProjectContainerregistry +func (tr *ProjectContainerregistry) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this ProjectContainerregistry +func (tr *ProjectContainerregistry) 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 ProjectContainerregistry +func (tr *ProjectContainerregistry) 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 ProjectContainerregistry +func (tr *ProjectContainerregistry) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this ProjectContainerregistry +func (tr *ProjectContainerregistry) 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 ProjectContainerregistry +func (tr *ProjectContainerregistry) 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) +} + +// GetInitParameters of this ProjectContainerregistry +func (tr *ProjectContainerregistry) GetInitParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.InitProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// LateInitialize this ProjectContainerregistry using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *ProjectContainerregistry) LateInitialize(attrs []byte) (bool, error) { + params := &ProjectContainerregistryParameters{} + 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 *ProjectContainerregistry) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this ProjectContainerregistryOidc +func (mg *ProjectContainerregistryOidc) GetTerraformResourceType() string { + return "ovh_cloud_project_containerregistry_oidc" +} + +// GetConnectionDetailsMapping for this ProjectContainerregistryOidc +func (tr *ProjectContainerregistryOidc) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"oidc_client_secret": "spec.forProvider.oidcClientSecretSecretRef"} +} + +// GetObservation of this ProjectContainerregistryOidc +func (tr *ProjectContainerregistryOidc) 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 ProjectContainerregistryOidc +func (tr *ProjectContainerregistryOidc) 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 ProjectContainerregistryOidc +func (tr *ProjectContainerregistryOidc) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this ProjectContainerregistryOidc +func (tr *ProjectContainerregistryOidc) 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 ProjectContainerregistryOidc +func (tr *ProjectContainerregistryOidc) 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) +} + +// GetInitParameters of this ProjectContainerregistryOidc +func (tr *ProjectContainerregistryOidc) GetInitParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.InitProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// LateInitialize this ProjectContainerregistryOidc using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *ProjectContainerregistryOidc) LateInitialize(attrs []byte) (bool, error) { + params := &ProjectContainerregistryOidcParameters{} + 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 *ProjectContainerregistryOidc) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this ProjectContainerregistryUser +func (mg *ProjectContainerregistryUser) GetTerraformResourceType() string { + return "ovh_cloud_project_containerregistry_user" +} + +// GetConnectionDetailsMapping for this ProjectContainerregistryUser +func (tr *ProjectContainerregistryUser) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"password": "status.atProvider.password"} +} + +// GetObservation of this ProjectContainerregistryUser +func (tr *ProjectContainerregistryUser) 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 ProjectContainerregistryUser +func (tr *ProjectContainerregistryUser) 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 ProjectContainerregistryUser +func (tr *ProjectContainerregistryUser) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this ProjectContainerregistryUser +func (tr *ProjectContainerregistryUser) 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 ProjectContainerregistryUser +func (tr *ProjectContainerregistryUser) 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) +} + +// GetInitParameters of this ProjectContainerregistryUser +func (tr *ProjectContainerregistryUser) GetInitParameters() (map[string]any, error) { + p, err := json.TFParser.Marshal(tr.Spec.InitProvider) + if err != nil { + return nil, err + } + base := map[string]any{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// LateInitialize this ProjectContainerregistryUser using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *ProjectContainerregistryUser) LateInitialize(attrs []byte) (bool, error) { + params := &ProjectContainerregistryUserParameters{} + 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 *ProjectContainerregistryUser) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/registry/v1alpha1/zz_groupversion_info.go b/apis/registry/v1alpha1/zz_groupversion_info.go new file mode 100755 index 0000000..f9aba23 --- /dev/null +++ b/apis/registry/v1alpha1/zz_groupversion_info.go @@ -0,0 +1,36 @@ +// SPDX-FileCopyrightText: 2023 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +// +kubebuilder:object:generate=true +// +groupName=registry.ovh.edixos.io +// +versionName=v1alpha1 +package v1alpha1 + +import ( + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/controller-runtime/pkg/scheme" +) + +// Package type metadata. +const ( + CRDGroup = "registry.ovh.edixos.io" + CRDVersion = "v1alpha1" +) + +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/registry/v1alpha1/zz_projectcontainerregistry_types.go b/apis/registry/v1alpha1/zz_projectcontainerregistry_types.go new file mode 100755 index 0000000..98e43bc --- /dev/null +++ b/apis/registry/v1alpha1/zz_projectcontainerregistry_types.go @@ -0,0 +1,186 @@ +// SPDX-FileCopyrightText: 2023 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1alpha1 + +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 FeaturesInitParameters struct { +} + +type FeaturesObservation struct { + Vulnerability *bool `json:"vulnerability,omitempty" tf:"vulnerability,omitempty"` +} + +type FeaturesParameters struct { +} + +type PlanInitParameters struct { +} + +type PlanObservation struct { + Code *string `json:"code,omitempty" tf:"code,omitempty"` + + CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"` + + Features []FeaturesObservation `json:"features,omitempty" tf:"features,omitempty"` + + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + Name *string `json:"name,omitempty" tf:"name,omitempty"` + + RegistryLimits []RegistryLimitsObservation `json:"registryLimits,omitempty" tf:"registry_limits,omitempty"` + + UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at,omitempty"` +} + +type PlanParameters struct { +} + +type ProjectContainerregistryInitParameters struct { + + // Plan ID of the registry. + PlanID *string `json:"planId,omitempty" tf:"plan_id,omitempty"` + + // Region of the registry. + Region *string `json:"region,omitempty" tf:"region,omitempty"` + + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` +} + +type ProjectContainerregistryObservation struct { + + // Registry creation date + CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"` + + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // Plan of the registry + Plan []PlanObservation `json:"plan,omitempty" tf:"plan,omitempty"` + + // Plan ID of the registry. + PlanID *string `json:"planId,omitempty" tf:"plan_id,omitempty"` + + // Project ID of your registry + ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"` + + // Region of the registry. + Region *string `json:"region,omitempty" tf:"region,omitempty"` + + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` + + // Current size of the registry (bytes) + Size *float64 `json:"size,omitempty" tf:"size,omitempty"` + + // Registry status + Status *string `json:"status,omitempty" tf:"status,omitempty"` + + // Access url of the registry + URL *string `json:"url,omitempty" tf:"url,omitempty"` + + // Registry last update date + UpdatedAt *string `json:"updatedAt,omitempty" tf:"updated_at,omitempty"` + + // Version of your registry + Version *string `json:"version,omitempty" tf:"version,omitempty"` +} + +type ProjectContainerregistryParameters struct { + + // Plan ID of the registry. + // +kubebuilder:validation:Optional + PlanID *string `json:"planId,omitempty" tf:"plan_id,omitempty"` + + // Region of the registry. + // +kubebuilder:validation:Optional + Region *string `json:"region,omitempty" tf:"region,omitempty"` + + // +kubebuilder:validation:Optional + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` +} + +type RegistryLimitsInitParameters struct { +} + +type RegistryLimitsObservation struct { + ImageStorage *float64 `json:"imageStorage,omitempty" tf:"image_storage,omitempty"` + + ParallelRequest *float64 `json:"parallelRequest,omitempty" tf:"parallel_request,omitempty"` +} + +type RegistryLimitsParameters struct { +} + +// ProjectContainerregistrySpec defines the desired state of ProjectContainerregistry +type ProjectContainerregistrySpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider ProjectContainerregistryParameters `json:"forProvider"` + // THIS IS A BETA FIELD. It will be honored + // unless the Management Policies feature flag is disabled. + // InitProvider holds the same fields as ForProvider, with the exception + // of Identifier and other resource reference fields. The fields that are + // in InitProvider are merged into ForProvider when the resource is created. + // The same fields are also added to the terraform ignore_changes hook, to + // avoid updating them after creation. This is useful for fields that are + // required on creation, but we do not desire to update them after creation, + // for example because of an external controller is managing them, like an + // autoscaler. + InitProvider ProjectContainerregistryInitParameters `json:"initProvider,omitempty"` +} + +// ProjectContainerregistryStatus defines the observed state of ProjectContainerregistry. +type ProjectContainerregistryStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider ProjectContainerregistryObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// ProjectContainerregistry is the Schema for the ProjectContainerregistrys API. +// +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,ovh} +type ProjectContainerregistry struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.region) || (has(self.initProvider) && has(self.initProvider.region))",message="spec.forProvider.region is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))",message="spec.forProvider.serviceName is a required parameter" + Spec ProjectContainerregistrySpec `json:"spec"` + Status ProjectContainerregistryStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// ProjectContainerregistryList contains a list of ProjectContainerregistrys +type ProjectContainerregistryList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ProjectContainerregistry `json:"items"` +} + +// Repository type metadata. +var ( + ProjectContainerregistry_Kind = "ProjectContainerregistry" + ProjectContainerregistry_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ProjectContainerregistry_Kind}.String() + ProjectContainerregistry_KindAPIVersion = ProjectContainerregistry_Kind + "." + CRDGroupVersion.String() + ProjectContainerregistry_GroupVersionKind = CRDGroupVersion.WithKind(ProjectContainerregistry_Kind) +) + +func init() { + SchemeBuilder.Register(&ProjectContainerregistry{}, &ProjectContainerregistryList{}) +} diff --git a/apis/registry/v1alpha1/zz_projectcontainerregistryoidc_types.go b/apis/registry/v1alpha1/zz_projectcontainerregistryoidc_types.go new file mode 100755 index 0000000..959febc --- /dev/null +++ b/apis/registry/v1alpha1/zz_projectcontainerregistryoidc_types.go @@ -0,0 +1,181 @@ +// SPDX-FileCopyrightText: 2023 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1alpha1 + +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 ProjectContainerregistryOidcInitParameters struct { + DeleteUsers *bool `json:"deleteUsers,omitempty" tf:"delete_users,omitempty"` + + OidcAdminGroup *string `json:"oidcAdminGroup,omitempty" tf:"oidc_admin_group,omitempty"` + + OidcAutoOnboard *bool `json:"oidcAutoOnboard,omitempty" tf:"oidc_auto_onboard,omitempty"` + + OidcClientID *string `json:"oidcClientId,omitempty" tf:"oidc_client_id,omitempty"` + + OidcEndpoint *string `json:"oidcEndpoint,omitempty" tf:"oidc_endpoint,omitempty"` + + OidcGroupsClaim *string `json:"oidcGroupsClaim,omitempty" tf:"oidc_groups_claim,omitempty"` + + OidcName *string `json:"oidcName,omitempty" tf:"oidc_name,omitempty"` + + OidcScope *string `json:"oidcScope,omitempty" tf:"oidc_scope,omitempty"` + + OidcUserClaim *string `json:"oidcUserClaim,omitempty" tf:"oidc_user_claim,omitempty"` + + OidcVerifyCert *bool `json:"oidcVerifyCert,omitempty" tf:"oidc_verify_cert,omitempty"` + + RegistryID *string `json:"registryId,omitempty" tf:"registry_id,omitempty"` + + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` +} + +type ProjectContainerregistryOidcObservation struct { + DeleteUsers *bool `json:"deleteUsers,omitempty" tf:"delete_users,omitempty"` + + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + OidcAdminGroup *string `json:"oidcAdminGroup,omitempty" tf:"oidc_admin_group,omitempty"` + + OidcAutoOnboard *bool `json:"oidcAutoOnboard,omitempty" tf:"oidc_auto_onboard,omitempty"` + + OidcClientID *string `json:"oidcClientId,omitempty" tf:"oidc_client_id,omitempty"` + + OidcEndpoint *string `json:"oidcEndpoint,omitempty" tf:"oidc_endpoint,omitempty"` + + OidcGroupsClaim *string `json:"oidcGroupsClaim,omitempty" tf:"oidc_groups_claim,omitempty"` + + OidcName *string `json:"oidcName,omitempty" tf:"oidc_name,omitempty"` + + OidcScope *string `json:"oidcScope,omitempty" tf:"oidc_scope,omitempty"` + + OidcUserClaim *string `json:"oidcUserClaim,omitempty" tf:"oidc_user_claim,omitempty"` + + OidcVerifyCert *bool `json:"oidcVerifyCert,omitempty" tf:"oidc_verify_cert,omitempty"` + + RegistryID *string `json:"registryId,omitempty" tf:"registry_id,omitempty"` + + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` +} + +type ProjectContainerregistryOidcParameters struct { + + // +kubebuilder:validation:Optional + DeleteUsers *bool `json:"deleteUsers,omitempty" tf:"delete_users,omitempty"` + + // +kubebuilder:validation:Optional + OidcAdminGroup *string `json:"oidcAdminGroup,omitempty" tf:"oidc_admin_group,omitempty"` + + // +kubebuilder:validation:Optional + OidcAutoOnboard *bool `json:"oidcAutoOnboard,omitempty" tf:"oidc_auto_onboard,omitempty"` + + // +kubebuilder:validation:Optional + OidcClientID *string `json:"oidcClientId,omitempty" tf:"oidc_client_id,omitempty"` + + // +kubebuilder:validation:Optional + OidcClientSecretSecretRef v1.SecretKeySelector `json:"oidcClientSecretSecretRef" tf:"-"` + + // +kubebuilder:validation:Optional + OidcEndpoint *string `json:"oidcEndpoint,omitempty" tf:"oidc_endpoint,omitempty"` + + // +kubebuilder:validation:Optional + OidcGroupsClaim *string `json:"oidcGroupsClaim,omitempty" tf:"oidc_groups_claim,omitempty"` + + // +kubebuilder:validation:Optional + OidcName *string `json:"oidcName,omitempty" tf:"oidc_name,omitempty"` + + // +kubebuilder:validation:Optional + OidcScope *string `json:"oidcScope,omitempty" tf:"oidc_scope,omitempty"` + + // +kubebuilder:validation:Optional + OidcUserClaim *string `json:"oidcUserClaim,omitempty" tf:"oidc_user_claim,omitempty"` + + // +kubebuilder:validation:Optional + OidcVerifyCert *bool `json:"oidcVerifyCert,omitempty" tf:"oidc_verify_cert,omitempty"` + + // +kubebuilder:validation:Optional + RegistryID *string `json:"registryId,omitempty" tf:"registry_id,omitempty"` + + // +kubebuilder:validation:Optional + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` +} + +// ProjectContainerregistryOidcSpec defines the desired state of ProjectContainerregistryOidc +type ProjectContainerregistryOidcSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider ProjectContainerregistryOidcParameters `json:"forProvider"` + // THIS IS A BETA FIELD. It will be honored + // unless the Management Policies feature flag is disabled. + // InitProvider holds the same fields as ForProvider, with the exception + // of Identifier and other resource reference fields. The fields that are + // in InitProvider are merged into ForProvider when the resource is created. + // The same fields are also added to the terraform ignore_changes hook, to + // avoid updating them after creation. This is useful for fields that are + // required on creation, but we do not desire to update them after creation, + // for example because of an external controller is managing them, like an + // autoscaler. + InitProvider ProjectContainerregistryOidcInitParameters `json:"initProvider,omitempty"` +} + +// ProjectContainerregistryOidcStatus defines the observed state of ProjectContainerregistryOidc. +type ProjectContainerregistryOidcStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider ProjectContainerregistryOidcObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// ProjectContainerregistryOidc is the Schema for the ProjectContainerregistryOidcs API. +// +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,ovh} +type ProjectContainerregistryOidc struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.oidcClientId) || (has(self.initProvider) && has(self.initProvider.oidcClientId))",message="spec.forProvider.oidcClientId is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.oidcClientSecretSecretRef)",message="spec.forProvider.oidcClientSecretSecretRef is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.oidcEndpoint) || (has(self.initProvider) && has(self.initProvider.oidcEndpoint))",message="spec.forProvider.oidcEndpoint is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.oidcName) || (has(self.initProvider) && has(self.initProvider.oidcName))",message="spec.forProvider.oidcName is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.oidcScope) || (has(self.initProvider) && has(self.initProvider.oidcScope))",message="spec.forProvider.oidcScope is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.registryId) || (has(self.initProvider) && has(self.initProvider.registryId))",message="spec.forProvider.registryId is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))",message="spec.forProvider.serviceName is a required parameter" + Spec ProjectContainerregistryOidcSpec `json:"spec"` + Status ProjectContainerregistryOidcStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// ProjectContainerregistryOidcList contains a list of ProjectContainerregistryOidcs +type ProjectContainerregistryOidcList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ProjectContainerregistryOidc `json:"items"` +} + +// Repository type metadata. +var ( + ProjectContainerregistryOidc_Kind = "ProjectContainerregistryOidc" + ProjectContainerregistryOidc_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ProjectContainerregistryOidc_Kind}.String() + ProjectContainerregistryOidc_KindAPIVersion = ProjectContainerregistryOidc_Kind + "." + CRDGroupVersion.String() + ProjectContainerregistryOidc_GroupVersionKind = CRDGroupVersion.WithKind(ProjectContainerregistryOidc_Kind) +) + +func init() { + SchemeBuilder.Register(&ProjectContainerregistryOidc{}, &ProjectContainerregistryOidcList{}) +} diff --git a/apis/registry/v1alpha1/zz_projectcontainerregistryuser_types.go b/apis/registry/v1alpha1/zz_projectcontainerregistryuser_types.go new file mode 100755 index 0000000..e98fdd3 --- /dev/null +++ b/apis/registry/v1alpha1/zz_projectcontainerregistryuser_types.go @@ -0,0 +1,136 @@ +// SPDX-FileCopyrightText: 2023 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package v1alpha1 + +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 ProjectContainerregistryUserInitParameters struct { + + // User email. + Email *string `json:"email,omitempty" tf:"email,omitempty"` + + // Registry name + Login *string `json:"login,omitempty" tf:"login,omitempty"` + + // RegistryID + RegistryID *string `json:"registryId,omitempty" tf:"registry_id,omitempty"` + + // Service name + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` +} + +type ProjectContainerregistryUserObservation struct { + + // User email. + Email *string `json:"email,omitempty" tf:"email,omitempty"` + + ID *string `json:"id,omitempty" tf:"id,omitempty"` + + // Registry name + Login *string `json:"login,omitempty" tf:"login,omitempty"` + + // RegistryID + RegistryID *string `json:"registryId,omitempty" tf:"registry_id,omitempty"` + + // Service name + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` + + // User name + User *string `json:"user,omitempty" tf:"user,omitempty"` +} + +type ProjectContainerregistryUserParameters struct { + + // User email. + // +kubebuilder:validation:Optional + Email *string `json:"email,omitempty" tf:"email,omitempty"` + + // Registry name + // +kubebuilder:validation:Optional + Login *string `json:"login,omitempty" tf:"login,omitempty"` + + // RegistryID + // +kubebuilder:validation:Optional + RegistryID *string `json:"registryId,omitempty" tf:"registry_id,omitempty"` + + // Service name + // +kubebuilder:validation:Optional + ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"` +} + +// ProjectContainerregistryUserSpec defines the desired state of ProjectContainerregistryUser +type ProjectContainerregistryUserSpec struct { + v1.ResourceSpec `json:",inline"` + ForProvider ProjectContainerregistryUserParameters `json:"forProvider"` + // THIS IS A BETA FIELD. It will be honored + // unless the Management Policies feature flag is disabled. + // InitProvider holds the same fields as ForProvider, with the exception + // of Identifier and other resource reference fields. The fields that are + // in InitProvider are merged into ForProvider when the resource is created. + // The same fields are also added to the terraform ignore_changes hook, to + // avoid updating them after creation. This is useful for fields that are + // required on creation, but we do not desire to update them after creation, + // for example because of an external controller is managing them, like an + // autoscaler. + InitProvider ProjectContainerregistryUserInitParameters `json:"initProvider,omitempty"` +} + +// ProjectContainerregistryUserStatus defines the observed state of ProjectContainerregistryUser. +type ProjectContainerregistryUserStatus struct { + v1.ResourceStatus `json:",inline"` + AtProvider ProjectContainerregistryUserObservation `json:"atProvider,omitempty"` +} + +// +kubebuilder:object:root=true + +// ProjectContainerregistryUser is the Schema for the ProjectContainerregistryUsers API. +// +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,ovh} +type ProjectContainerregistryUser struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.email) || (has(self.initProvider) && has(self.initProvider.email))",message="spec.forProvider.email is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.login) || (has(self.initProvider) && has(self.initProvider.login))",message="spec.forProvider.login is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.registryId) || (has(self.initProvider) && has(self.initProvider.registryId))",message="spec.forProvider.registryId is a required parameter" + // +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.serviceName) || (has(self.initProvider) && has(self.initProvider.serviceName))",message="spec.forProvider.serviceName is a required parameter" + Spec ProjectContainerregistryUserSpec `json:"spec"` + Status ProjectContainerregistryUserStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// ProjectContainerregistryUserList contains a list of ProjectContainerregistryUsers +type ProjectContainerregistryUserList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ProjectContainerregistryUser `json:"items"` +} + +// Repository type metadata. +var ( + ProjectContainerregistryUser_Kind = "ProjectContainerregistryUser" + ProjectContainerregistryUser_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ProjectContainerregistryUser_Kind}.String() + ProjectContainerregistryUser_KindAPIVersion = ProjectContainerregistryUser_Kind + "." + CRDGroupVersion.String() + ProjectContainerregistryUser_GroupVersionKind = CRDGroupVersion.WithKind(ProjectContainerregistryUser_Kind) +) + +func init() { + SchemeBuilder.Register(&ProjectContainerregistryUser{}, &ProjectContainerregistryUserList{}) +} diff --git a/apis/zz_register.go b/apis/zz_register.go index f29c3d2..059167d 100755 --- a/apis/zz_register.go +++ b/apis/zz_register.go @@ -24,6 +24,7 @@ import ( v1alpha1lb "github.com/edixos/provider-ovh/apis/lb/v1alpha1" v1alpha1logs "github.com/edixos/provider-ovh/apis/logs/v1alpha1" v1alpha1publiccloudnetwork "github.com/edixos/provider-ovh/apis/publiccloudnetwork/v1alpha1" + v1alpha1registry "github.com/edixos/provider-ovh/apis/registry/v1alpha1" v1alpha1apis "github.com/edixos/provider-ovh/apis/v1alpha1" v1beta1 "github.com/edixos/provider-ovh/apis/v1beta1" v1alpha1vminstances "github.com/edixos/provider-ovh/apis/vminstances/v1alpha1" @@ -42,6 +43,7 @@ func init() { v1alpha1lb.SchemeBuilder.AddToScheme, v1alpha1logs.SchemeBuilder.AddToScheme, v1alpha1publiccloudnetwork.SchemeBuilder.AddToScheme, + v1alpha1registry.SchemeBuilder.AddToScheme, v1alpha1apis.SchemeBuilder.AddToScheme, v1beta1.SchemeBuilder.AddToScheme, v1alpha1vminstances.SchemeBuilder.AddToScheme, diff --git a/config/external_name.go b/config/external_name.go index e46fe30..ba60134 100644 --- a/config/external_name.go +++ b/config/external_name.go @@ -72,6 +72,9 @@ var ExternalNameConfigs = map[string]config.ExternalName{ "ovh_cloud_project_kube_iprestrictions": config.NameAsIdentifier, "ovh_cloud_project_kube_nodepool": config.NameAsIdentifier, "ovh_cloud_project_kube_oidc": config.NameAsIdentifier, + "ovh_cloud_project_containerregistry": config.NameAsIdentifier, + "ovh_cloud_project_containerregistry_oidc": config.NameAsIdentifier, + "ovh_cloud_project_containerregistry_user": config.NameAsIdentifier, } // ExternalNameConfigurations applies all external name configs listed in the diff --git a/config/provider.go b/config/provider.go index ad62447..1e2829e 100644 --- a/config/provider.go +++ b/config/provider.go @@ -8,6 +8,8 @@ import ( // Note(turkenh): we are importing this to embed provider schema document _ "embed" + "github.com/edixos/provider-ovh/config/registry" + "github.com/edixos/provider-ovh/config/kube" "github.com/edixos/provider-ovh/config/databases" @@ -65,6 +67,7 @@ func GetProvider() *ujconfig.Provider { logs.Configure, databases.Configure, kube.Configure, + registry.Configure, } { configure(pc) } diff --git a/config/registry/config.go b/config/registry/config.go new file mode 100644 index 0000000..405e0e2 --- /dev/null +++ b/config/registry/config.go @@ -0,0 +1,20 @@ +package registry + +import "github.com/crossplane/upjet/pkg/config" + +const ( + shortGroup = "registry" +) + +// Configure configures individual resources by adding custom ResourceConfigurators. +func Configure(p *config.Provider) { + p.AddResourceConfigurator("ovh_cloud_project_containerregistry", func(r *config.Resource) { + r.ShortGroup = shortGroup + }) + p.AddResourceConfigurator("ovh_cloud_project_containerregistry_oidc", func(r *config.Resource) { + r.ShortGroup = shortGroup + }) + p.AddResourceConfigurator("ovh_cloud_project_containerregistry_user", func(r *config.Resource) { + r.ShortGroup = shortGroup + }) +} diff --git a/internal/controller/registry/projectcontainerregistry/zz_controller.go b/internal/controller/registry/projectcontainerregistry/zz_controller.go new file mode 100755 index 0000000..e00c30e --- /dev/null +++ b/internal/controller/registry/projectcontainerregistry/zz_controller.go @@ -0,0 +1,67 @@ +// SPDX-FileCopyrightText: 2023 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package projectcontainerregistry + +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/crossplane/upjet/pkg/controller" + "github.com/crossplane/upjet/pkg/controller/handler" + "github.com/crossplane/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1alpha1 "github.com/edixos/provider-ovh/apis/registry/v1alpha1" + features "github.com/edixos/provider-ovh/internal/features" +) + +// Setup adds a controller that reconciles ProjectContainerregistry managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1alpha1.ProjectContainerregistry_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) + } + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.ProjectContainerregistry_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.ProjectContainerregistry_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) + opts := []managed.ReconcilerOption{ + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["ovh_cloud_project_containerregistry"], tjcontroller.WithLogger(o.Logger), tjcontroller.WithConnectorEventHandler(eventHandler), + tjcontroller.WithCallbackProvider(ac), + )), + 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), + } + if o.PollJitter != 0 { + opts = append(opts, managed.WithPollJitterHook(o.PollJitter)) + } + if o.Features.Enabled(features.EnableBetaManagementPolicies) { + opts = append(opts, managed.WithManagementPolicies()) + } + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.ProjectContainerregistry_GroupVersionKind), opts...) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + WithEventFilter(xpresource.DesiredStateChanged()). + Watches(&v1alpha1.ProjectContainerregistry{}, eventHandler). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/registry/projectcontainerregistryoidc/zz_controller.go b/internal/controller/registry/projectcontainerregistryoidc/zz_controller.go new file mode 100755 index 0000000..8cd8946 --- /dev/null +++ b/internal/controller/registry/projectcontainerregistryoidc/zz_controller.go @@ -0,0 +1,67 @@ +// SPDX-FileCopyrightText: 2023 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package projectcontainerregistryoidc + +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/crossplane/upjet/pkg/controller" + "github.com/crossplane/upjet/pkg/controller/handler" + "github.com/crossplane/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1alpha1 "github.com/edixos/provider-ovh/apis/registry/v1alpha1" + features "github.com/edixos/provider-ovh/internal/features" +) + +// Setup adds a controller that reconciles ProjectContainerregistryOidc managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1alpha1.ProjectContainerregistryOidc_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) + } + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.ProjectContainerregistryOidc_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.ProjectContainerregistryOidc_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) + opts := []managed.ReconcilerOption{ + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["ovh_cloud_project_containerregistry_oidc"], tjcontroller.WithLogger(o.Logger), tjcontroller.WithConnectorEventHandler(eventHandler), + tjcontroller.WithCallbackProvider(ac), + )), + 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), + } + if o.PollJitter != 0 { + opts = append(opts, managed.WithPollJitterHook(o.PollJitter)) + } + if o.Features.Enabled(features.EnableBetaManagementPolicies) { + opts = append(opts, managed.WithManagementPolicies()) + } + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.ProjectContainerregistryOidc_GroupVersionKind), opts...) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + WithEventFilter(xpresource.DesiredStateChanged()). + Watches(&v1alpha1.ProjectContainerregistryOidc{}, eventHandler). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/registry/projectcontainerregistryuser/zz_controller.go b/internal/controller/registry/projectcontainerregistryuser/zz_controller.go new file mode 100755 index 0000000..2ce8594 --- /dev/null +++ b/internal/controller/registry/projectcontainerregistryuser/zz_controller.go @@ -0,0 +1,67 @@ +// SPDX-FileCopyrightText: 2023 The Crossplane Authors +// +// SPDX-License-Identifier: Apache-2.0 + +/* +Copyright 2022 Upbound Inc. +*/ + +// Code generated by upjet. DO NOT EDIT. + +package projectcontainerregistryuser + +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/crossplane/upjet/pkg/controller" + "github.com/crossplane/upjet/pkg/controller/handler" + "github.com/crossplane/upjet/pkg/terraform" + ctrl "sigs.k8s.io/controller-runtime" + + v1alpha1 "github.com/edixos/provider-ovh/apis/registry/v1alpha1" + features "github.com/edixos/provider-ovh/internal/features" +) + +// Setup adds a controller that reconciles ProjectContainerregistryUser managed resources. +func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { + name := managed.ControllerName(v1alpha1.ProjectContainerregistryUser_GroupVersionKind.String()) + var initializers managed.InitializerChain + initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK, connection.WithTLSConfig(o.ESSOptions.TLSConfig))) + } + eventHandler := handler.NewEventHandler(handler.WithLogger(o.Logger.WithValues("gvk", v1alpha1.ProjectContainerregistryUser_GroupVersionKind))) + ac := tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.ProjectContainerregistryUser_GroupVersionKind), tjcontroller.WithEventHandler(eventHandler)) + opts := []managed.ReconcilerOption{ + managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["ovh_cloud_project_containerregistry_user"], tjcontroller.WithLogger(o.Logger), tjcontroller.WithConnectorEventHandler(eventHandler), + tjcontroller.WithCallbackProvider(ac), + )), + 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), + } + if o.PollJitter != 0 { + opts = append(opts, managed.WithPollJitterHook(o.PollJitter)) + } + if o.Features.Enabled(features.EnableBetaManagementPolicies) { + opts = append(opts, managed.WithManagementPolicies()) + } + r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.ProjectContainerregistryUser_GroupVersionKind), opts...) + + return ctrl.NewControllerManagedBy(mgr). + Named(name). + WithOptions(o.ForControllerRuntime()). + WithEventFilter(xpresource.DesiredStateChanged()). + Watches(&v1alpha1.ProjectContainerregistryUser{}, eventHandler). + Complete(ratelimiter.NewReconciler(name, r, o.GlobalRateLimiter)) +} diff --git a/internal/controller/zz_setup.go b/internal/controller/zz_setup.go index efa639e..3c19c33 100755 --- a/internal/controller/zz_setup.go +++ b/internal/controller/zz_setup.go @@ -70,6 +70,9 @@ import ( providerconfig "github.com/edixos/provider-ovh/internal/controller/providerconfig" projectnetworkprivate "github.com/edixos/provider-ovh/internal/controller/publiccloudnetwork/projectnetworkprivate" projectnetworkprivatesubnet "github.com/edixos/provider-ovh/internal/controller/publiccloudnetwork/projectnetworkprivatesubnet" + projectcontainerregistry "github.com/edixos/provider-ovh/internal/controller/registry/projectcontainerregistry" + projectcontainerregistryoidc "github.com/edixos/provider-ovh/internal/controller/registry/projectcontainerregistryoidc" + projectcontainerregistryuser "github.com/edixos/provider-ovh/internal/controller/registry/projectcontainerregistryuser" projectworkflowbackup "github.com/edixos/provider-ovh/internal/controller/vminstances/projectworkflowbackup" ) @@ -138,6 +141,9 @@ func Setup(mgr ctrl.Manager, o controller.Options) error { providerconfig.Setup, projectnetworkprivate.Setup, projectnetworkprivatesubnet.Setup, + projectcontainerregistry.Setup, + projectcontainerregistryoidc.Setup, + projectcontainerregistryuser.Setup, projectworkflowbackup.Setup, } { if err := setup(mgr, o); err != nil { diff --git a/package/crds/registry.ovh.edixos.io_projectcontainerregistries.yaml b/package/crds/registry.ovh.edixos.io_projectcontainerregistries.yaml new file mode 100644 index 0000000..6a9ebae --- /dev/null +++ b/package/crds/registry.ovh.edixos.io_projectcontainerregistries.yaml @@ -0,0 +1,383 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: projectcontainerregistries.registry.ovh.edixos.io +spec: + group: registry.ovh.edixos.io + names: + categories: + - crossplane + - managed + - ovh + kind: ProjectContainerregistry + listKind: ProjectContainerregistryList + plural: projectcontainerregistries + singular: projectcontainerregistry + 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: v1alpha1 + schema: + openAPIV3Schema: + description: ProjectContainerregistry is the Schema for the ProjectContainerregistrys + API. + 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: ProjectContainerregistrySpec defines the desired state of + ProjectContainerregistry + 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. This field is planned to be deprecated + in favor of the ManagementPolicies field in a future release. Currently, + both could be set independently and non-default values would be + honored if the feature flag is enabled. See the design doc for more + information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223' + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + planId: + description: Plan ID of the registry. + type: string + region: + description: Region of the registry. + type: string + serviceName: + type: string + type: object + initProvider: + description: THIS IS A BETA FIELD. It will be honored unless the Management + Policies feature flag is disabled. InitProvider holds the same fields + as ForProvider, with the exception of Identifier and other resource + reference fields. The fields that are in InitProvider are merged + into ForProvider when the resource is created. The same fields are + also added to the terraform ignore_changes hook, to avoid updating + them after creation. This is useful for fields that are required + on creation, but we do not desire to update them after creation, + for example because of an external controller is managing them, + like an autoscaler. + properties: + planId: + description: Plan ID of the registry. + type: string + region: + description: Region of the registry. + type: string + serviceName: + type: string + type: object + managementPolicies: + default: + - '*' + description: 'THIS IS A BETA FIELD. It is on by default but can be + opted out through a Crossplane feature flag. ManagementPolicies + specify the array of actions Crossplane is allowed to take on the + managed and external resources. This field is planned to replace + the DeletionPolicy field in a future release. Currently, both could + be set independently and non-default values would be honored if + the feature flag is enabled. If both are custom, the DeletionPolicy + field will be ignored. See the design doc for more information: + https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md' + items: + description: A ManagementAction represents an action that the Crossplane + controllers can take on an external resource. + enum: + - Observe + - Create + - Update + - Delete + - LateInitialize + - '*' + type: string + type: array + 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 + 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 + x-kubernetes-validations: + - message: spec.forProvider.region is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.region) + || (has(self.initProvider) && has(self.initProvider.region))' + - message: spec.forProvider.serviceName is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.serviceName) + || (has(self.initProvider) && has(self.initProvider.serviceName))' + status: + description: ProjectContainerregistryStatus defines the observed state + of ProjectContainerregistry. + properties: + atProvider: + properties: + createdAt: + description: Registry creation date + type: string + id: + type: string + plan: + description: Plan of the registry + items: + properties: + code: + type: string + createdAt: + type: string + features: + items: + properties: + vulnerability: + type: boolean + type: object + type: array + id: + type: string + name: + type: string + registryLimits: + items: + properties: + imageStorage: + type: number + parallelRequest: + type: number + type: object + type: array + updatedAt: + type: string + type: object + type: array + planId: + description: Plan ID of the registry. + type: string + projectId: + description: Project ID of your registry + type: string + region: + description: Region of the registry. + type: string + serviceName: + type: string + size: + description: Current size of the registry (bytes) + type: number + status: + description: Registry status + type: string + updatedAt: + description: Registry last update date + type: string + url: + description: Access url of the registry + type: string + version: + description: Version of your registry + 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 + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/package/crds/registry.ovh.edixos.io_projectcontainerregistryoidcs.yaml b/package/crds/registry.ovh.edixos.io_projectcontainerregistryoidcs.yaml new file mode 100644 index 0000000..492b550 --- /dev/null +++ b/package/crds/registry.ovh.edixos.io_projectcontainerregistryoidcs.yaml @@ -0,0 +1,415 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: projectcontainerregistryoidcs.registry.ovh.edixos.io +spec: + group: registry.ovh.edixos.io + names: + categories: + - crossplane + - managed + - ovh + kind: ProjectContainerregistryOidc + listKind: ProjectContainerregistryOidcList + plural: projectcontainerregistryoidcs + singular: projectcontainerregistryoidc + 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: v1alpha1 + schema: + openAPIV3Schema: + description: ProjectContainerregistryOidc is the Schema for the ProjectContainerregistryOidcs + API. + 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: ProjectContainerregistryOidcSpec defines the desired state + of ProjectContainerregistryOidc + 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. This field is planned to be deprecated + in favor of the ManagementPolicies field in a future release. Currently, + both could be set independently and non-default values would be + honored if the feature flag is enabled. See the design doc for more + information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223' + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + deleteUsers: + type: boolean + oidcAdminGroup: + type: string + oidcAutoOnboard: + type: boolean + oidcClientId: + type: string + oidcClientSecretSecretRef: + description: A SecretKeySelector is a reference to a secret key + in an arbitrary namespace. + 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 + oidcEndpoint: + type: string + oidcGroupsClaim: + type: string + oidcName: + type: string + oidcScope: + type: string + oidcUserClaim: + type: string + oidcVerifyCert: + type: boolean + registryId: + type: string + serviceName: + type: string + type: object + initProvider: + description: THIS IS A BETA FIELD. It will be honored unless the Management + Policies feature flag is disabled. InitProvider holds the same fields + as ForProvider, with the exception of Identifier and other resource + reference fields. The fields that are in InitProvider are merged + into ForProvider when the resource is created. The same fields are + also added to the terraform ignore_changes hook, to avoid updating + them after creation. This is useful for fields that are required + on creation, but we do not desire to update them after creation, + for example because of an external controller is managing them, + like an autoscaler. + properties: + deleteUsers: + type: boolean + oidcAdminGroup: + type: string + oidcAutoOnboard: + type: boolean + oidcClientId: + type: string + oidcEndpoint: + type: string + oidcGroupsClaim: + type: string + oidcName: + type: string + oidcScope: + type: string + oidcUserClaim: + type: string + oidcVerifyCert: + type: boolean + registryId: + type: string + serviceName: + type: string + type: object + managementPolicies: + default: + - '*' + description: 'THIS IS A BETA FIELD. It is on by default but can be + opted out through a Crossplane feature flag. ManagementPolicies + specify the array of actions Crossplane is allowed to take on the + managed and external resources. This field is planned to replace + the DeletionPolicy field in a future release. Currently, both could + be set independently and non-default values would be honored if + the feature flag is enabled. If both are custom, the DeletionPolicy + field will be ignored. See the design doc for more information: + https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md' + items: + description: A ManagementAction represents an action that the Crossplane + controllers can take on an external resource. + enum: + - Observe + - Create + - Update + - Delete + - LateInitialize + - '*' + type: string + type: array + 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 + 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 + x-kubernetes-validations: + - message: spec.forProvider.oidcClientId is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.oidcClientId) + || (has(self.initProvider) && has(self.initProvider.oidcClientId))' + - message: spec.forProvider.oidcClientSecretSecretRef is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.oidcClientSecretSecretRef)' + - message: spec.forProvider.oidcEndpoint is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.oidcEndpoint) + || (has(self.initProvider) && has(self.initProvider.oidcEndpoint))' + - message: spec.forProvider.oidcName is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.oidcName) + || (has(self.initProvider) && has(self.initProvider.oidcName))' + - message: spec.forProvider.oidcScope is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.oidcScope) + || (has(self.initProvider) && has(self.initProvider.oidcScope))' + - message: spec.forProvider.registryId is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.registryId) + || (has(self.initProvider) && has(self.initProvider.registryId))' + - message: spec.forProvider.serviceName is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.serviceName) + || (has(self.initProvider) && has(self.initProvider.serviceName))' + status: + description: ProjectContainerregistryOidcStatus defines the observed state + of ProjectContainerregistryOidc. + properties: + atProvider: + properties: + deleteUsers: + type: boolean + id: + type: string + oidcAdminGroup: + type: string + oidcAutoOnboard: + type: boolean + oidcClientId: + type: string + oidcEndpoint: + type: string + oidcGroupsClaim: + type: string + oidcName: + type: string + oidcScope: + type: string + oidcUserClaim: + type: string + oidcVerifyCert: + type: boolean + registryId: + type: string + serviceName: + 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 + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} diff --git a/package/crds/registry.ovh.edixos.io_projectcontainerregistryusers.yaml b/package/crds/registry.ovh.edixos.io_projectcontainerregistryusers.yaml new file mode 100644 index 0000000..b2c40c0 --- /dev/null +++ b/package/crds/registry.ovh.edixos.io_projectcontainerregistryusers.yaml @@ -0,0 +1,353 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: projectcontainerregistryusers.registry.ovh.edixos.io +spec: + group: registry.ovh.edixos.io + names: + categories: + - crossplane + - managed + - ovh + kind: ProjectContainerregistryUser + listKind: ProjectContainerregistryUserList + plural: projectcontainerregistryusers + singular: projectcontainerregistryuser + 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: v1alpha1 + schema: + openAPIV3Schema: + description: ProjectContainerregistryUser is the Schema for the ProjectContainerregistryUsers + API. + 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: ProjectContainerregistryUserSpec defines the desired state + of ProjectContainerregistryUser + 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. This field is planned to be deprecated + in favor of the ManagementPolicies field in a future release. Currently, + both could be set independently and non-default values would be + honored if the feature flag is enabled. See the design doc for more + information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223' + enum: + - Orphan + - Delete + type: string + forProvider: + properties: + email: + description: User email. + type: string + login: + description: Registry name + type: string + registryId: + description: RegistryID + type: string + serviceName: + description: Service name + type: string + type: object + initProvider: + description: THIS IS A BETA FIELD. It will be honored unless the Management + Policies feature flag is disabled. InitProvider holds the same fields + as ForProvider, with the exception of Identifier and other resource + reference fields. The fields that are in InitProvider are merged + into ForProvider when the resource is created. The same fields are + also added to the terraform ignore_changes hook, to avoid updating + them after creation. This is useful for fields that are required + on creation, but we do not desire to update them after creation, + for example because of an external controller is managing them, + like an autoscaler. + properties: + email: + description: User email. + type: string + login: + description: Registry name + type: string + registryId: + description: RegistryID + type: string + serviceName: + description: Service name + type: string + type: object + managementPolicies: + default: + - '*' + description: 'THIS IS A BETA FIELD. It is on by default but can be + opted out through a Crossplane feature flag. ManagementPolicies + specify the array of actions Crossplane is allowed to take on the + managed and external resources. This field is planned to replace + the DeletionPolicy field in a future release. Currently, both could + be set independently and non-default values would be honored if + the feature flag is enabled. If both are custom, the DeletionPolicy + field will be ignored. See the design doc for more information: + https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 + and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md' + items: + description: A ManagementAction represents an action that the Crossplane + controllers can take on an external resource. + enum: + - Observe + - Create + - Update + - Delete + - LateInitialize + - '*' + type: string + type: array + 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 + 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 + x-kubernetes-validations: + - message: spec.forProvider.email is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.email) + || (has(self.initProvider) && has(self.initProvider.email))' + - message: spec.forProvider.login is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.login) + || (has(self.initProvider) && has(self.initProvider.login))' + - message: spec.forProvider.registryId is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.registryId) + || (has(self.initProvider) && has(self.initProvider.registryId))' + - message: spec.forProvider.serviceName is a required parameter + rule: '!(''*'' in self.managementPolicies || ''Create'' in self.managementPolicies + || ''Update'' in self.managementPolicies) || has(self.forProvider.serviceName) + || (has(self.initProvider) && has(self.initProvider.serviceName))' + status: + description: ProjectContainerregistryUserStatus defines the observed state + of ProjectContainerregistryUser. + properties: + atProvider: + properties: + email: + description: User email. + type: string + id: + type: string + login: + description: Registry name + type: string + registryId: + description: RegistryID + type: string + serviceName: + description: Service name + type: string + user: + description: User name + 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 + x-kubernetes-list-map-keys: + - type + x-kubernetes-list-type: map + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {}