You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/k8s-operator
Irbe Krumina 469af614b0
cmd/k8s-operator: fix base truncating for extra long Service names (#10825)
cmd/k8s-operator: fix base truncating for extra long Service names

StatefulSet names for ingress/egress proxies are calculated
using Kubernetes name generator and the parent resource name
as a base.
The name generator also cuts the base, but has a higher max cap.
This commit fixes a bug where, if we get a shortened base back
from the generator, we cut off too little as the base that we
have cut will be passed into the generator again, which will
then itself cut less because the base is shorter- so we end up
with a too long name again.

Updates tailscale/tailscale#10807

Co-authored-by: Maisem Ali <maisem@tailscale.com>
Signed-off-by: Irbe Krumina <irbekrm@gmail.com>
2 years ago
..
deploy cmd/k8s-operator: add Connector CRD to Helm chart and static manifests (#10775) 2 years ago
generate cmd/k8s-operator: add Connector CRD to Helm chart and static manifests (#10775) 2 years ago
connector.go cmd/k8s-operator,k8s-operator: allow the operator to deploy exit nodes via Connector custom resource (#10724) 2 years ago
connector_test.go cmd/k8s-operator,k8s-operator: allow the operator to deploy exit nodes via Connector custom resource (#10724) 2 years ago
ingress.go cmd/k8s-operator: allow setting same host value for tls and ingress rules 2 years ago
operator.go cmd/k8s-operator: add Connector CRD to Helm chart and static manifests (#10775) 2 years ago
operator_test.go cmd/k8s-operator,k8s-operator: allow the operator to deploy exit nodes via Connector custom resource (#10724) 2 years ago
proxy.go cmd/k8s-operator: drop https:// in capName 2 years ago
proxy_test.go cmd/k8s-operator: log user/group impersonated by apiserver proxy (#10334) 2 years ago
sts.go cmd/k8s-operator: fix base truncating for extra long Service names (#10825) 2 years ago
sts_test.go cmd/k8s-operator: fix base truncating for extra long Service names (#10825) 2 years ago
svc.go cmd/{containerboot,k8s-operator}: allow users to define tailnet egress target by FQDN (#10360) 2 years ago
testutils_test.go cmd/k8s-operator,k8s-operator: allow the operator to deploy exit nodes via Connector custom resource (#10724) 2 years ago