You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TargetGroupBinding now support targetGroupName - #2655 refresh (#3903)
* TargetGroupBinding now support targetGroupName
* documentation for targetGroupName
* unit tests now validate if either either TargetGroupARN or TargetGroupName has been provided
* more unit tests
* updated documentation
* Unit Test for MutateCreate
* implemented changes requested by reviewers
* Fixes following migration to `aws-sdk-go-v2`
* make crds
Also tweaked the description for the `TargetGroupName` field
---------
Co-authored-by: Marcos Diez <[email protected]>
Copy file name to clipboardexpand all lines: docs/guide/targetgroupbinding/targetgroupbinding.md
+18-1
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,25 @@ TargetGroupBinding CR supports TargetGroups of either `instance` or `ip` TargetT
16
16
!!!tip ""
17
17
If TargetType is not explicitly specified, a mutating webhook will automatically call AWS API to find the TargetType for your TargetGroup and set it to correct value.
18
18
19
+
## Choosing the Target Group
20
+
One can either use ``targetGroupARN`` of ``targetGroupName`` to identify a Target Group. Although both are unique and immutable in an AWS region, one only has control of the ``targetGroupName``, for ``targetGroupARN`` is generated by AWS and contain random characters.
21
+
22
+
If you provide both ``targetGroupARN`` and ``targetGroupName``, beware that ``targetGroupARN`` prevails.
23
+
24
+
25
+
## Sample YAMLs
26
+
```yaml
27
+
apiVersion: elbv2.k8s.aws/v1beta1
28
+
kind: TargetGroupBinding
29
+
metadata:
30
+
name: my-tgb
31
+
spec:
32
+
serviceRef:
33
+
name: awesome-service # route traffic to the awesome-service
0 commit comments