Description
Describe the bug
When using an Endpoint object with a set of IP addresses explicitally declared, when comparing the state against the intention the diff appears to sort the IP addresses Alphanumerically whilst Kubernetes sorts by octet resulting in a mistaken diff output.
To Reproduce
Provide a configuration as shown;
apiVersion: v1
kind: Endpoints
metadata:
annotations:
description: A workaround to support a set of backend IPs for solr
linkerd.io/inject: disabled
name: solrcloud
namespace: engineering-fcsis-vanilla-quantum
subsets:
- addresses:
- ip: 172.20.10.97
- ip: 172.20.10.98
- ip: 172.20.10.99
- ip: 172.20.10.100
- ip: 172.20.10.101
ports:
- name: solr-http
port: 8080
Expected behavior
State in kubernetes is applied and no diff errors are shown.
** Actual Behaviour **
The diff triggers an out-of-sync warning as the IP list gets changed by some part of the system.
Screenshots
Version
argocd: v1.0.1+5fe1447.dirty
BuildDate: 2019-05-28T17:28:05Z
GitCommit: 5fe1447b722716649143c63f9fc054886d5b111c
GitTreeState: dirty
GoVersion: go1.11.4
Compiler: gc
Platform: darwin/amd64
argocd-server: v1.0.1+5fe1447.dirty
BuildDate: 2019-05-28T17:27:38Z
GitCommit: 5fe1447b722716649143c63f9fc054886d5b111c
GitTreeState: dirty
GoVersion: go1.11.4
Compiler: gc
Platform: linux/amd64
Ksonnet Version: 0.13.1