Skip to content

Commit

Permalink
Added DNSConfig into Instance and YTsaurusSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
qurname2 committed Jan 10, 2025
1 parent a8da302 commit 4d69512
Show file tree
Hide file tree
Showing 14 changed files with 1,172 additions and 2 deletions.
9 changes: 7 additions & 2 deletions api/v1/ytsaurus_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ type InstanceSpec struct {
// Component config for native RPC bus transport.
//+optional
NativeTransport *RPCTransportSpec `json:"nativeTransport,omitempty"`
// DNSConfig allows customizing the DNS settings for the pods.
//+optional
DNSConfig *corev1.PodDNSConfig `json:"dnsConfig,omitempty"`
}

type MasterConnectionSpec struct {
Expand Down Expand Up @@ -659,8 +662,10 @@ type YtsaurusSpec struct {

NodeSelector map[string]string `json:"nodeSelector,omitempty"`
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`

Bootstrap *BootstrapSpec `json:"bootstrap,omitempty"`
// DNSConfig allows customizing the DNS settings for the pods.
//+optional
DNSConfig *corev1.PodDNSConfig `json:"dnsConfig,omitempty"`
Bootstrap *BootstrapSpec `json:"bootstrap,omitempty"`

Discovery DiscoverySpec `json:"discovery,omitempty"`
PrimaryMasters MastersSpec `json:"primaryMasters,omitempty"`
Expand Down
10 changes: 10 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions config/crd/bases/cluster.ytsaurus.tech_remotedatanodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,34 @@ spec:
x-kubernetes-map-type: atomic
coreImage:
type: string
dnsConfig:
description: DNSConfig allows customizing the DNS settings for the
pods.
properties:
nameservers:
description: A list of DNS name server IP addresses.
items:
type: string
type: array
options:
description: A list of DNS resolver options.
items:
description: PodDNSConfigOption defines DNS resolver options
of a pod.
properties:
name:
description: Required.
type: string
value:
type: string
type: object
type: array
searches:
description: A list of DNS search domains for host-name lookup.
items:
type: string
type: array
type: object
enableAntiAffinity:
description: 'Deprecated: use Affinity.PodAntiAffinity instead.'
type: boolean
Expand Down
28 changes: 28 additions & 0 deletions config/crd/bases/cluster.ytsaurus.tech_remoteexecnodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,34 @@ spec:
x-kubernetes-map-type: atomic
coreImage:
type: string
dnsConfig:
description: DNSConfig allows customizing the DNS settings for the
pods.
properties:
nameservers:
description: A list of DNS name server IP addresses.
items:
type: string
type: array
options:
description: A list of DNS resolver options.
items:
description: PodDNSConfigOption defines DNS resolver options
of a pod.
properties:
name:
description: Required.
type: string
value:
type: string
type: object
type: array
searches:
description: A list of DNS search domains for host-name lookup.
items:
type: string
type: array
type: object
enableAntiAffinity:
description: 'Deprecated: use Affinity.PodAntiAffinity instead.'
type: boolean
Expand Down
28 changes: 28 additions & 0 deletions config/crd/bases/cluster.ytsaurus.tech_remotetabletnodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,34 @@ spec:
x-kubernetes-map-type: atomic
coreImage:
type: string
dnsConfig:
description: DNSConfig allows customizing the DNS settings for the
pods.
properties:
nameservers:
description: A list of DNS name server IP addresses.
items:
type: string
type: array
options:
description: A list of DNS resolver options.
items:
description: PodDNSConfigOption defines DNS resolver options
of a pod.
properties:
name:
description: Required.
type: string
value:
type: string
type: object
type: array
searches:
description: A list of DNS search domains for host-name lookup.
items:
type: string
type: array
type: object
enableAntiAffinity:
description: 'Deprecated: use Affinity.PodAntiAffinity instead.'
type: boolean
Expand Down
28 changes: 28 additions & 0 deletions config/crd/bases/cluster.ytsaurus.tech_remoteytsaurus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,34 @@ spec:
type: integer
cellTagMasterCaches:
type: integer
dnsConfig:
description: DNSConfig allows customizing the DNS settings for the
pods.
properties:
nameservers:
description: A list of DNS name server IP addresses.
items:
type: string
type: array
options:
description: A list of DNS resolver options.
items:
description: PodDNSConfigOption defines DNS resolver options
of a pod.
properties:
name:
description: Required.
type: string
value:
type: string
type: object
type: array
searches:
description: A list of DNS search domains for host-name lookup.
items:
type: string
type: array
type: object
enableAntiAffinity:
description: 'Deprecated: use Affinity.PodAntiAffinity instead.'
type: boolean
Expand Down
Loading

0 comments on commit 4d69512

Please sign in to comment.