Skip to content

Fix how names are generated for external EndpointSlice resources#12016

Merged
mateiidavid merged 1 commit intomainfrom
matei/change-slice-names
Jan 31, 2024
Merged

Fix how names are generated for external EndpointSlice resources#12016
mateiidavid merged 1 commit intomainfrom
matei/change-slice-names

Conversation

@mateiidavid
Copy link
Member

@mateiidavid mateiidavid commented Jan 30, 2024

Any slices generated for a group of external workloads follow a similar convention: linkerd-external-<svc-name>-<hash>. Currently the hash is appended directly to the service name making it less readable. We add a - to the generate name value so that random hashes are not part of the service name. This is similar to the upstream implementation.

e.g.

# Before
# Ours
linkerd-external-external-workload-18wm5k      IPv4          80        172.22.0.4                     
# Upstream's
external-workload-1-7qfhm                      IPv4          <unset>   <unset>                            5s
external-workload-1-qt84r                       IPv4          <unset>   <unset>                            100s
linkerd-external-external-workload-1-7q8l6      IPv4          80        172.22.0.4                         6s

Any slices generated for a group of external workloads follow a similar
convention: `linkerd-external-<svc-name>-<hash>`. Currently the hash is
appended directly to the service name making it less readable. We add a
`-` to the generate name value so that random hashes are not part of the
service name. This is similar to the upstream implementation.

Signed-off-by: Matei David <[email protected]>
@mateiidavid mateiidavid requested a review from a team as a code owner January 30, 2024 16:54
Copy link
Member

@zaharidichev zaharidichev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mateiidavid mateiidavid merged commit 4a8e760 into main Jan 31, 2024
@mateiidavid mateiidavid deleted the matei/change-slice-names branch January 31, 2024 09:57
alpeb added a commit that referenced this pull request Feb 1, 2024
This edge release contains performance and stability improvements to the
Destination controller, and continues stabilizing support for ExternalWorkloads.

* Reduced the load on the Destination controller by only processing Server
  updates on workloads affected by the Server ([#12017])
* Changed how the Destination controller reacts to target clusters (in
  multicluster pod-to-pod mode) whose Server CRD is outdated: skip them and log
  an error instead of panicking ([#12008])
* Improved the leader election of the ExternalWorkloads Endpoints controller to
  avoid missing events ([#12021])
* Improved naming of EndpointSlices generated by ExternWorkloads ([#12016])
alpeb added a commit that referenced this pull request Feb 1, 2024
This edge release contains performance and stability improvements to the
Destination controller, and continues stabilizing support for ExternalWorkloads.

* Reduced the load on the Destination controller by only processing Server
  updates on workloads affected by the Server ([#12017])
* Changed how the Destination controller reacts to target clusters (in
  multicluster pod-to-pod mode) whose Server CRD is outdated: skip them and log
  an error instead of panicking ([#12008])
* Improved the leader election of the ExternalWorkloads Endpoints controller to
  avoid missing events ([#12021])
* Improved naming of EndpointSlices generated by ExternWorkloads ([#12016])
alpeb added a commit that referenced this pull request Feb 2, 2024
This edge release contains performance and stability improvements to the
Destination controller, and continues stabilizing support for ExternalWorkloads.

* Reduced the load on the Destination controller by only processing Server
  updates on workloads affected by the Server ([#12017])
* Changed how the Destination controller reacts to target clusters (in
  multicluster pod-to-pod mode) whose Server CRD is outdated: skip them and log
  an error instead of panicking ([#12008])
* Improved the leader election of the ExternalWorkloads Endpoints controller to
  avoid missing events ([#12021])
* Improved naming of EndpointSlices generated by ExternWorkloads ([#12016])
* Restriced the number of IPs an ExternalWorkload can have ([#12026])
alpeb added a commit that referenced this pull request Feb 2, 2024
This edge release contains performance and stability improvements to the
Destination controller, and continues stabilizing support for ExternalWorkloads.

* Reduced the load on the Destination controller by only processing Server
  updates on workloads affected by the Server ([#12017])
* Changed how the Destination controller reacts to target clusters (in
  multicluster pod-to-pod mode) whose Server CRD is outdated: skip them and log
  an error instead of panicking ([#12008])
* Improved the leader election of the ExternalWorkloads Endpoints controller to
  avoid missing events ([#12021])
* Improved naming of EndpointSlices generated by ExternWorkloads ([#12016])
* Restriced the number of IPs an ExternalWorkload can have ([#12026])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants