Skip to content

Commit

Permalink
Merge pull request #9253 from olemarkus/cilium-ipv4
Browse files Browse the repository at this point in the history
Don't make it possible to toggle ipv4/6. We only support ipv4 anyway
  • Loading branch information
k8s-ci-robot authored Jun 3, 2020
2 parents 4fe5ad0 + 972d7a3 commit c8674f2
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 26 deletions.
10 changes: 4 additions & 6 deletions k8s/crds/kops.k8s.io_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2937,14 +2937,12 @@ spec:
in the future. Setting this has no effect.
type: boolean
enableipv4:
description: 'EnableIpv4 enables cluster IPv4 traffic. If
both EnableIpv6 and EnableIpv4 are set to false then IPv4
will be enabled. Default: false'
description: EnableIpv4 is not implemented and may be removed
in the future. Setting this has no effect.
type: boolean
enableipv6:
description: 'EnableIpv6 enables cluster IPv6 traffic. If
both EnableIpv6 and EnableIpv4 are set to false then IPv4
will be enabled. Default: false'
description: EnableIpv6 is not implemented and may be removed
in the future. Setting this has no effect.
type: boolean
envoyLog:
description: EnvoyLog is not implemented and may be removed
Expand Down
10 changes: 4 additions & 6 deletions pkg/apis/kops/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,11 @@ type CiliumNetworkingSpec struct {
// Tunnel specifies the Cilium tunelling mode. Possible values are "vxlan", "geneve", or "disabled".
// Default: vxlan
Tunnel string `json:"tunnel,omitempty"`
// EnableIpv6 enables cluster IPv6 traffic. If both EnableIpv6 and EnableIpv4 are set to false
// then IPv4 will be enabled.
// Default: false
// EnableIpv6 is not implemented and may be removed in the future.
// Setting this has no effect.
EnableIpv6 bool `json:"enableipv6"`
// EnableIpv4 enables cluster IPv4 traffic. If both EnableIpv6 and EnableIpv4 are set to false
// then IPv4 will be enabled.
// Default: false
// EnableIpv4 is not implemented and may be removed in the future.
// Setting this has no effect.
EnableIpv4 bool `json:"enableipv4"`
// MonitorAggregation sets the level of packet monitoring. Possible values are "low", "medium", or "maximum".
// Default: medium
Expand Down
10 changes: 4 additions & 6 deletions pkg/apis/kops/v1alpha2/networking.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,11 @@ type CiliumNetworkingSpec struct {
// Tunnel specifies the Cilium tunelling mode. Possible values are "vxlan", "geneve", or "disabled".
// Default: vxlan
Tunnel string `json:"tunnel,omitempty"`
// EnableIpv6 enables cluster IPv6 traffic. If both EnableIpv6 and EnableIpv4 are set to false
// then IPv4 will be enabled.
// Default: false
// EnableIpv6 is not implemented and may be removed in the future.
// Setting this has no effect.
EnableIpv6 bool `json:"enableipv6"`
// EnableIpv4 enables cluster IPv4 traffic. If both EnableIpv6 and EnableIpv4 are set to false
// then IPv4 will be enabled.
// Default: false
// EnableIpv4 is not implemented and may be removed in the future.
// Setting this has no effect.
EnableIpv4 bool `json:"enableipv4"`
// MonitorAggregation sets the level of packet monitoring. Possible values are "low", "medium", or "maximum".
// Default: medium
Expand Down
8 changes: 4 additions & 4 deletions upup/models/bindata.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ data:
{{ end }}
# Enable IPv4 addressing. If enabled, all endpoints are allocated an IPv4
# address.
enable-ipv4: "{{- if or (.EnableIpv4) (and (not (.EnableIpv4)) (not (.EnableIpv6))) -}}true{{- else -}}false{{- end -}}"
enable-ipv4: "true"
# Enable IPv6 addressing. If enabled, all endpoints are allocated an IPv6
# address.
enable-ipv6: "{{- if .EnableIpv6 -}}true{{- else -}}false{{- end -}}"
enable-ipv6: "false"
# If you want cilium monitor to aggregate tracing for packets, set this level
# to "low", "medium", or "maximum". The higher the level, the less packets
# that will be seen in monitor output.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ data:
{{ end }}
# Enable IPv4 addressing. If enabled, all endpoints are allocated an IPv4
# address.
enable-ipv4: "{{- if or (.EnableIpv4) (and (not (.EnableIpv4)) (not (.EnableIpv6))) -}}true{{- else -}}false{{- end -}}"
enable-ipv4: "true"
# Enable IPv6 addressing. If enabled, all endpoints are allocated an IPv6
# address.
enable-ipv6: "{{- if .EnableIpv6 -}}true{{- else -}}false{{- end -}}"
enable-ipv6: "false"
# If you want cilium monitor to aggregate tracing for packets, set this level
# to "low", "medium", or "maximum". The higher the level, the less packets
# that will be seen in monitor output.
Expand Down

0 comments on commit c8674f2

Please sign in to comment.