1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

[Improvement] Deprecate Endpoint field in ArangoDeployment (#1293)

This commit is contained in:
jwierzbo 2023-04-17 13:42:39 +02:00 committed by GitHub
parent 1c3ba8b873
commit 47b690b086
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 23 additions and 14 deletions

View file

@ -3,6 +3,7 @@
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
- (Bugfix) Fix manual overwrite for ReplicasCount in helm
- (Bugfix) Fix for ArangoTask list error
- (Improvement) Deprecate Endpoint field in ArangoDeployment
## [1.2.25](https://github.com/arangodb/kube-arangodb/tree/1.2.25) (2023-04-07)
- (Feature) Add Generics & Drop policy/v1beta1 support

View file

@ -52,6 +52,7 @@ type ArangoMemberPodTemplate struct {
PodSpecChecksum string `json:"podSpecChecksum,omitempty"`
Checksum string `json:"checksum,omitempty"`
// deprecated
Endpoint *string `json:"endpoint,omitempty"`
}

View file

@ -73,8 +73,7 @@ type MemberStatus struct {
Architecture *ArangoDeploymentArchitectureType `json:"architecture,omitempty"`
// Upgrade define if upgrade should be enforced during next execution
Upgrade bool `json:"upgrade,omitempty"`
// Endpoint definition how member should be reachable
Endpoint *string `json:"endpoint,omitempty"`
// Topology define topology member status assignment
Topology *TopologyMemberStatus `json:"topology,omitempty"`
Pod *MemberPodStatus `json:"pod,omitempty"`
@ -101,6 +100,9 @@ type MemberStatus struct {
// deprecated
// PersistentVolumeClaimName holds the name of the persistent volume claim used for this member (if any).
PersistentVolumeClaimName string `json:"persistentVolumeClaimName,omitempty"`
// deprecated
// Endpoint definition how member should be reachable
Endpoint *string `json:"-"`
}
// Equal checks for equality
@ -152,6 +154,7 @@ func (s *MemberStatus) RemoveTerminationsBefore(timestamp time.Time) int {
}
}
// deprecated
func (s *MemberStatus) GetEndpoint(defaultEndpoint string) string {
if s == nil || s.Endpoint == nil {
return defaultEndpoint

View file

@ -1768,11 +1768,6 @@ func (in *MemberStatus) DeepCopyInto(out *MemberStatus) {
*out = new(ArangoDeploymentArchitectureType)
**out = **in
}
if in.Endpoint != nil {
in, out := &in.Endpoint, &out.Endpoint
*out = new(string)
**out = **in
}
if in.Topology != nil {
in, out := &in.Topology, &out.Topology
*out = new(TopologyMemberStatus)
@ -1805,6 +1800,11 @@ func (in *MemberStatus) DeepCopyInto(out *MemberStatus) {
(*out)[key] = *val.DeepCopy()
}
}
if in.Endpoint != nil {
in, out := &in.Endpoint, &out.Endpoint
*out = new(string)
**out = **in
}
return
}

View file

@ -52,6 +52,7 @@ type ArangoMemberPodTemplate struct {
PodSpecChecksum string `json:"podSpecChecksum,omitempty"`
Checksum string `json:"checksum,omitempty"`
// deprecated
Endpoint *string `json:"endpoint,omitempty"`
}

View file

@ -73,8 +73,7 @@ type MemberStatus struct {
Architecture *ArangoDeploymentArchitectureType `json:"architecture,omitempty"`
// Upgrade define if upgrade should be enforced during next execution
Upgrade bool `json:"upgrade,omitempty"`
// Endpoint definition how member should be reachable
Endpoint *string `json:"endpoint,omitempty"`
// Topology define topology member status assignment
Topology *TopologyMemberStatus `json:"topology,omitempty"`
Pod *MemberPodStatus `json:"pod,omitempty"`
@ -101,6 +100,9 @@ type MemberStatus struct {
// deprecated
// PersistentVolumeClaimName holds the name of the persistent volume claim used for this member (if any).
PersistentVolumeClaimName string `json:"persistentVolumeClaimName,omitempty"`
// deprecated
// Endpoint definition how member should be reachable
Endpoint *string `json:"-"`
}
// Equal checks for equality
@ -152,6 +154,7 @@ func (s *MemberStatus) RemoveTerminationsBefore(timestamp time.Time) int {
}
}
// deprecated
func (s *MemberStatus) GetEndpoint(defaultEndpoint string) string {
if s == nil || s.Endpoint == nil {
return defaultEndpoint

View file

@ -1768,11 +1768,6 @@ func (in *MemberStatus) DeepCopyInto(out *MemberStatus) {
*out = new(ArangoDeploymentArchitectureType)
**out = **in
}
if in.Endpoint != nil {
in, out := &in.Endpoint, &out.Endpoint
*out = new(string)
**out = **in
}
if in.Topology != nil {
in, out := &in.Topology, &out.Topology
*out = new(TopologyMemberStatus)
@ -1805,6 +1800,11 @@ func (in *MemberStatus) DeepCopyInto(out *MemberStatus) {
(*out)[key] = *val.DeepCopy()
}
}
if in.Endpoint != nil {
in, out := &in.Endpoint, &out.Endpoint
*out = new(string)
**out = **in
}
return
}