Ohara: the length of container host name is too long

Created on 9 Oct 2019  路  3Comments  路  Source: oharastream/ohara

container.name format : {prefixKey}-{group}-{clusterName}-{service}-{index}
which is guarantee < 255 length

container hostname required the length <= 63, we should random a string for it (since it is used internally) instead of using container.name.

for docker

using random string for command: docker -h {RANDOM_STRING}

for k8s

using random string for json:

"spce": {
  "hostname": "{RANDOM_STRING}"
}
bug v0.9.0

Most helpful comment

@saivirtue Let me take over this one :)

All 3 comments

/cc @chia7712 @jackyoh

@saivirtue Let me take over this one :)

I remove the 0.8 from fixed version since this is not a critical bug. Also, the changes is too big to be a hot fix :(

Was this page helpful?
0 / 5 - 0 ratings