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
Joe Tsai c299a96624 all: apply consistent imports of "json" packages
This runs:

        go run ./cmd/jsonimports -update -ignore=tempfork/

which applies the following rules:

  * Until the Go standard library formally accepts "encoding/json/v2"
    and "encoding/json/jsontext" into the standard library
    (i.e., they are no longer considered experimental),
    we forbid any code from directly importing those packages.
    Go code should instead import "github.com/go-json-experiment/json"
    and "github.com/go-json-experiment/json/jsontext".
    The latter packages contain aliases to the standard library
    if built on Go 1.25 with the goexperiment.jsonv2 tag specified.

  * Imports of "encoding/json" or "github.com/go-json-experiment/json/v1"
    must be explicitly imported under the package name "jsonv1".
    If both packages need to be imported, then
    the former should be imported under the package name "jsonv1std".

  * Imports of "github.com/go-json-experiment/json"
    must be explicitly imported under the package name "jsonv2".

The latter two rules exist to provide clarity when reading code.
Without them, it is unclear whether "json.Marshal" refers to v1 or v2.
With them, however, it is clear that "jsonv1.Marshal" is calling v1 and
that "jsonv2.Marshal" is calling v2.

Updates tailscale/corp#791

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
4 weeks ago
..
deploy cmd/k8s-operator: allow pod tolerations on nameservers (#17260) 2 months ago
e2e all: apply consistent imports of "json" packages 4 weeks ago
generate cmd/k8s-operator/generate: skip tests if no network or Helm is down 1 month ago
api-server-proxy-pg.go all: apply consistent imports of "json" packages 4 weeks ago
api-server-proxy-pg_test.go all: apply consistent imports of "json" packages 4 weeks ago
api-server-proxy.go cmd/{k8s-operator,k8s-proxy},kube: use consistent type for auth mode config (#16626) 5 months ago
connector.go cmd/k8s-operator: allow specifying replicas for connectors (#16721) 3 months ago
connector_test.go cmd/k8s-operator: allow specifying replicas for connectors (#16721) 3 months ago
depaware.txt wgengine/netlog: include node OS in logged attributes (#17755) 4 weeks ago
dnsrecords.go all: apply consistent imports of "json" packages 4 weeks ago
dnsrecords_test.go all: apply consistent imports of "json" packages 4 weeks ago
egress-eps.go all: apply consistent imports of "json" packages 4 weeks ago
egress-eps_test.go all: apply consistent imports of "json" packages 4 weeks ago
egress-pod-readiness.go util/backoff: rename logtail/backoff package to util/backoff 2 months ago
egress-pod-readiness_test.go cmd/k8s-operator: configure proxies for HA Ingress to run in cert share mode (#15308) 9 months ago
egress-services-readiness.go cmd/{containerboot,k8s-operator}: use state Secret for checking device auth (#16328) 5 months ago
egress-services-readiness_test.go cmd/{containerboot,k8s-operator}: use state Secret for checking device auth (#16328) 5 months ago
egress-services.go all: apply consistent imports of "json" packages 4 weeks ago
egress-services_test.go all: apply consistent imports of "json" packages 4 weeks ago
ingress-for-pg.go all: apply consistent imports of "json" packages 4 weeks ago
ingress-for-pg_test.go all: apply consistent imports of "json" packages 4 weeks ago
ingress.go cmd/k8s-operator: allow specifying replicas for connectors (#16721) 3 months ago
ingress_test.go cmd/k8s-operator: allow specifying replicas for connectors (#16721) 3 months ago
logger.go cmd/k8s-operator: send operator logs to tailscale (#17110) 2 months ago
metrics_resources.go cmd/k8s-operator: configure proxies for HA Ingress to run in cert share mode (#15308) 9 months ago
nameserver.go cmd/k8s-operator: allow pod tolerations on nameservers (#17260) 2 months ago
nameserver_test.go all: apply consistent imports of "json" packages 4 weeks ago
nodeport-service-ports.go cmd/k8s-operator, k8s-operator: support Static Endpoints on ProxyGroups (#16115) 5 months ago
nodeport-services-ports_test.go cmd/k8s-operator, k8s-operator: support Static Endpoints on ProxyGroups (#16115) 5 months ago
operator.go cmd/k8s-operator: rename 'l' variables (#17700) 1 month ago
operator_test.go all: apply consistent imports of "json" packages 4 weeks ago
proxyclass.go cmd/k8s-operator, k8s-operator: support Static Endpoints on ProxyGroups (#16115) 5 months ago
proxyclass_test.go cmd/k8s-operator, k8s-operator: support Static Endpoints on ProxyGroups (#16115) 5 months ago
proxygroup.go all: apply consistent imports of "json" packages 4 weeks ago
proxygroup_specs.go all-kube: create Tailscale Service for HA kube-apiserver ProxyGroup (#16572) 5 months ago
proxygroup_test.go all: apply consistent imports of "json" packages 4 weeks ago
sts.go all: apply consistent imports of "json" packages 4 weeks ago
sts_test.go cmd/k8s-operator: rename 'l' variables (#17700) 1 month ago
svc-for-pg.go all: apply consistent imports of "json" packages 4 weeks ago
svc-for-pg_test.go all: apply consistent imports of "json" packages 4 weeks ago
svc.go k8s-operator: reset service status before append (#17120) 3 months ago
testutils_test.go all: apply consistent imports of "json" packages 4 weeks ago
tsclient.go all-kube: create Tailscale Service for HA kube-apiserver ProxyGroup (#16572) 5 months ago
tsrecorder.go all: apply consistent imports of "json" packages 4 weeks ago
tsrecorder_specs.go cmd/k8s-operator: Set login server on tsrecorder nodes (#16443) 5 months ago
tsrecorder_specs_test.go cmd/k8s-operator: Set login server on tsrecorder nodes (#16443) 5 months ago
tsrecorder_test.go all: apply consistent imports of "json" packages 4 weeks ago