Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added DNSConfig into Instance and YTsaurusSpec #420

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 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 @@ -518,6 +521,9 @@ type UISpec struct {
DirectDownload *bool `json:"directDownload,omitempty"`
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// DNSConfig allows customizing the DNS settings for the pods.
//+optional
DNSConfig *corev1.PodDNSConfig `json:"dnsConfig,omitempty"`
}

type QueryTrackerSpec struct {
Expand All @@ -536,6 +542,9 @@ type StrawberryControllerSpec struct {
// For example, "chyt" (with `ControllerFamilies` set to {"chyt", "jupyt"} would mean
// that requests to "foo.<domain>" will be processed by chyt controller.
DefaultRouteFamily *string `json:"defaultRouteFamily,omitempty"`
// DNSConfig allows customizing the DNS settings for the pods.
//+optional
DNSConfig *corev1.PodDNSConfig `json:"dnsConfig,omitempty"`
}

type YQLAgentSpec struct {
Expand Down Expand Up @@ -659,8 +668,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"`
qurname2 marked this conversation as resolved.
Show resolved Hide resolved
Bootstrap *BootstrapSpec `json:"bootstrap,omitempty"`

Discovery DiscoverySpec `json:"discovery,omitempty"`
PrimaryMasters MastersSpec `json:"primaryMasters,omitempty"`
Expand Down
20 changes: 20 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
Loading