Skip to content

Commit 182ac06

Browse files
committed
chore: add tests
1 parent ccc4f0a commit 182ac06

File tree

8 files changed

+1347
-83
lines changed

8 files changed

+1347
-83
lines changed

api/v1alpha1/dnsrecordset_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ type RecordEntry struct {
7575
// +optional
7676
CNAME *CNAMEValue `json:"cname,omitempty"`
7777
// +optional
78+
NS *SimpleValues `json:"ns,omitempty"`
79+
// +optional
7880
TXT *SimpleValues `json:"txt,omitempty"`
7981
// +optional
8082
SOA *SOARecordSpec `json:"soa,omitempty"`

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/dns.networking.miloapis.com_dnsrecordsets.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,15 @@ spec:
158158
description: Name is the owner name (relative to the zone or
159159
FQDN).
160160
type: string
161+
ns:
162+
properties:
163+
content:
164+
items:
165+
type: string
166+
type: array
167+
required:
168+
- content
169+
type: object
161170
raw:
162171
description: Raw contains raw RDATA strings when used instead
163172
of typed fields.

go.mod

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,56 @@ module go.miloapis.com/dns-operator
33
go 1.24.7
44

55
require (
6+
github.com/docker/docker v28.5.1+incompatible
67
github.com/onsi/ginkgo/v2 v2.23.4
78
github.com/onsi/gomega v1.37.0
89
go.datum.net/network-services-operator v0.9.0
910
go.miloapis.com/milo v0.7.4
10-
golang.org/x/sync v0.16.0
11+
golang.org/x/sync v0.17.0
1112
k8s.io/api v0.34.1
1213
k8s.io/apimachinery v0.34.1
1314
k8s.io/client-go v0.34.1
1415
sigs.k8s.io/controller-runtime v0.22.1
1516
sigs.k8s.io/multicluster-runtime v0.21.0-alpha.8
1617
)
1718

19+
require (
20+
dario.cat/mergo v1.0.2 // indirect
21+
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
22+
github.com/Microsoft/go-winio v0.6.2 // indirect
23+
github.com/containerd/errdefs v1.0.0 // indirect
24+
github.com/containerd/errdefs/pkg v0.3.0 // indirect
25+
github.com/containerd/log v0.1.0 // indirect
26+
github.com/containerd/platforms v0.2.1 // indirect
27+
github.com/cpuguy83/dockercfg v0.3.2 // indirect
28+
github.com/distribution/reference v0.6.0 // indirect
29+
github.com/docker/go-connections v0.6.0 // indirect
30+
github.com/docker/go-units v0.5.0 // indirect
31+
github.com/ebitengine/purego v0.8.4 // indirect
32+
github.com/go-ole/go-ole v1.3.0 // indirect
33+
github.com/klauspost/compress v1.18.0 // indirect
34+
github.com/lufia/plan9stats v0.0.0-20220913051719-115f729f3c8c // indirect
35+
github.com/magiconair/properties v1.8.10 // indirect
36+
github.com/moby/docker-image-spec v1.3.1 // indirect
37+
github.com/moby/go-archive v0.1.0 // indirect
38+
github.com/moby/patternmatcher v0.6.0 // indirect
39+
github.com/moby/sys/sequential v0.6.0 // indirect
40+
github.com/moby/sys/user v0.4.0 // indirect
41+
github.com/moby/sys/userns v0.1.0 // indirect
42+
github.com/moby/term v0.5.2 // indirect
43+
github.com/morikuni/aec v1.0.0 // indirect
44+
github.com/opencontainers/go-digest v1.0.0 // indirect
45+
github.com/opencontainers/image-spec v1.1.1 // indirect
46+
github.com/power-devops/perfstat v0.0.0-20221212215047-62379fc7944b // indirect
47+
github.com/shirou/gopsutil/v4 v4.25.6 // indirect
48+
github.com/sirupsen/logrus v1.9.3 // indirect
49+
github.com/stretchr/testify v1.11.1 // indirect
50+
github.com/tklauser/go-sysconf v0.3.12 // indirect
51+
github.com/tklauser/numcpus v0.6.1 // indirect
52+
github.com/yusufpapurcu/wmi v1.2.4 // indirect
53+
golang.org/x/crypto v0.43.0 // indirect
54+
)
55+
1856
require (
1957
cel.dev/expr v0.24.0 // indirect
2058
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
@@ -59,6 +97,7 @@ require (
5997
github.com/spf13/cobra v1.9.1 // indirect
6098
github.com/spf13/pflag v1.0.7 // indirect
6199
github.com/stoewer/go-strcase v1.3.1 // indirect
100+
github.com/testcontainers/testcontainers-go v0.40.0
62101
github.com/x448/float16 v0.8.4 // indirect
63102
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
64103
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0 // indirect
@@ -75,13 +114,13 @@ require (
75114
go.yaml.in/yaml/v2 v2.4.2 // indirect
76115
go.yaml.in/yaml/v3 v3.0.4 // indirect
77116
golang.org/x/exp v0.0.0-20250718183923-645b1fa84792 // indirect
78-
golang.org/x/net v0.42.0 // indirect
117+
golang.org/x/net v0.45.0 // indirect
79118
golang.org/x/oauth2 v0.30.0 // indirect
80-
golang.org/x/sys v0.34.0 // indirect
81-
golang.org/x/term v0.33.0 // indirect
82-
golang.org/x/text v0.27.0 // indirect
119+
golang.org/x/sys v0.37.0 // indirect
120+
golang.org/x/term v0.36.0 // indirect
121+
golang.org/x/text v0.30.0 // indirect
83122
golang.org/x/time v0.12.0 // indirect
84-
golang.org/x/tools v0.35.0 // indirect
123+
golang.org/x/tools v0.37.0 // indirect
85124
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
86125
google.golang.org/genproto/googleapis/api v0.0.0-20250728155136-f173205681a0 // indirect
87126
google.golang.org/genproto/googleapis/rpc v0.0.0-20250728155136-f173205681a0 // indirect

0 commit comments

Comments
 (0)