Skip to content

Commit ebe03ff

Browse files
authored
Adding IPv6 App Mesh feature to controllers (#596)
* Update logic to populate IpPreference based on ipFamily of the cluster. * Updating chart version and controller image repository * Fixing go.mod * Updating the aws-sdk-go version * Fixed failing integration test * Updating the chart version to 1.5.0 * Remove GOPROXY direct to speed up the build process
1 parent f2b92f6 commit ebe03ff

38 files changed

+1935
-479
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ build
1717
# Ignore vendored files
1818

1919
vendor
20+
override_model_dev.sh
2021

2122
# editor and IDE paraphernalia
2223
.idea

apis/appmesh/v1beta2/mesh_types.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ type MeshSpec struct {
8181
// Required if the account ID is not your own.
8282
// +optional
8383
MeshOwner *string `json:"meshOwner,omitempty"`
84+
// +optional
85+
ServiceDiscovery *MeshServiceDiscovery `json:"meshServiceDiscovery,omitempty"`
86+
}
87+
88+
type MeshServiceDiscovery struct {
89+
// The ipPreference for the mesh.
90+
// +kubebuilder:validation:Enum=IPv6_ONLY;IPv4_ONLY
91+
// +optional
92+
IpPreference *string `json:"ipPreference,omitempty"`
8493
}
8594

8695
// MeshStatus defines the observed state of Mesh

apis/appmesh/v1beta2/types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,3 +244,8 @@ type SubjectAlternativeNames struct {
244244
// Match is a required field
245245
Match *SubjectAlternativeNameMatchers `json:"match"`
246246
}
247+
248+
const (
249+
IpPreferenceIPv4 string = "IPv4_ONLY"
250+
IpPreferenceIPv6 string = "IPv6_ONLY"
251+
)

apis/appmesh/v1beta2/zz_generated.deepcopy.go

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

config/crd/bases/appmesh.k8s.aws_meshes.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ spec:
6666
description: The AWS IAM account ID of the service mesh owner. Required
6767
if the account ID is not your own.
6868
type: string
69+
meshServiceDiscovery:
70+
properties:
71+
ipPreference:
72+
description: The ipPreference for the mesh.
73+
enum:
74+
- IPv6_ONLY
75+
- IPv4_ONLY
76+
type: string
77+
type: object
6978
namespaceSelector:
7079
description: "NamespaceSelector selects Namespaces using labels to
7180
designate mesh membership. This field follows standard label selector

config/helm/appmesh-controller/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
name: appmesh-controller
33
description: App Mesh controller Helm chart for Kubernetes
4-
version: 1.4.7
5-
appVersion: 1.4.3
4+
version: 1.5.0
5+
appVersion: 1.5.0
66
home: https://github.com/aws/eks-charts
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
88
sources:

config/helm/appmesh-controller/crds/crds.yaml

Lines changed: 944 additions & 383 deletions
Large diffs are not rendered by default.

config/helm/appmesh-controller/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ spec:
7171
- --preview={{ .Values.preview }}
7272
- --enable-sds={{ .Values.sds.enabled }}
7373
- --sds-uds-path={{ .Values.sds.udsPath }}
74+
- --cluster-name={{ .Values.clusterName}}
7475
{{- if .Values.cloudMapCustomHealthCheck.enabled }}
7576
- --enable-custom-health-check=true
7677
{{- end }}

config/helm/appmesh-controller/test.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ replicaCount: 1
66
region: ""
77
accountId: ""
88
preview: false
9+
clusterName: ""
910

1011
image:
11-
repository: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/appmesh-controller
12-
tag: v1.4.3
12+
repository: 840364872350.dkr.ecr.us-west-2.amazonaws.com/amazon/appmesh-controller
13+
tag: v1.5.0
1314
pullPolicy: IfNotPresent
1415

1516
sidecar:

config/helm/appmesh-controller/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ replicaCount: 1
66
region: ""
77
accountId: ""
88
preview: false
9+
clusterName: ""
910

1011
image:
11-
repository: 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/appmesh-controller
12-
tag: v1.4.3
12+
repository: 840364872350.dkr.ecr.us-west-2.amazonaws.com/amazon/appmesh-controller
13+
tag: v1.5.0
1314
pullPolicy: IfNotPresent
1415

1516
sidecar:

0 commit comments

Comments
 (0)