Skip to content

Commit 7086a5e

Browse files
Merge pull request #479 from bogdando/ttl
Add local/max/dhcp TTL options for DNSmasq opts
2 parents e3c2756 + 75d8f03 commit 7086a5e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

apis/bases/network.openstack.org_dnsmasqs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ spec:
8686
- synth-domain
8787
- no-negcache
8888
- local
89+
- local-ttl
90+
- dhcp-ttl
91+
- max-ttl
8992
type: string
9093
values:
9194
items:

apis/network/v1beta1/dnsmasq_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ limitations under the License.
1717
package v1beta1
1818

1919
import (
20+
topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1"
2021
"github.com/openstack-k8s-operators/lib-common/modules/common/condition"
2122
"github.com/openstack-k8s-operators/lib-common/modules/common/service"
2223
"github.com/openstack-k8s-operators/lib-common/modules/common/util"
23-
topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1"
2424
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2525
"k8s.io/apimachinery/pkg/util/validation/field"
2626
)
@@ -40,7 +40,7 @@ const (
4040

4141
// DNSMasqOption defines allowed options for dnsmasq
4242
type DNSMasqOption struct {
43-
// +kubebuilder:validation:Enum=server;rev-server;srv-host;txt-record;ptr-record;rebind-domain-ok;naptr-record;cname;host-record;caa-record;dns-rr;auth-zone;synth-domain;no-negcache;local
43+
// +kubebuilder:validation:Enum=server;rev-server;srv-host;txt-record;ptr-record;rebind-domain-ok;naptr-record;cname;host-record;caa-record;dns-rr;auth-zone;synth-domain;no-negcache;local;local-ttl;dhcp-ttl;max-ttl
4444
Key string `json:"key"`
4545
Values []string `json:"values"`
4646
}

config/crd/bases/network.openstack.org_dnsmasqs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ spec:
8686
- synth-domain
8787
- no-negcache
8888
- local
89+
- local-ttl
90+
- dhcp-ttl
91+
- max-ttl
8992
type: string
9093
values:
9194
items:

0 commit comments

Comments
 (0)