Skip to content

clean up auth mode and secret name handling#452

Open
jaypipes wants to merge 1 commit into
temporalio:mainfrom
jaypipes:connection-redesign
Open

clean up auth mode and secret name handling#452
jaypipes wants to merge 1 commit into
temporalio:mainfrom
jaypipes:connection-redesign

Conversation

@jaypipes

Copy link
Copy Markdown
Contributor

This commit is the first of a series that attempts to clean up the Connection CRD and handling of Connection CRs in the client pool and controller packages.

This moves the AuthMode type out of internal/clientpool and into the api/v1alpha1 package but does not add a field to ConnectionSpec for auth mode. Instead, we add a ConnectionSpec.AuthMode() method that returns the calculate authentication mode after looking at the different fields of ConnectionSpec. Similarly, we add a
ConnectionSpec.SecretName() method that returns the name of the Kubernetes Secret that holds the authentication information for the Connection. We clean up code in clientpool and controller by now calling these methods on ConnectionSpec.

@jaypipes
jaypipes requested review from a team and jlegrone as code owners July 23, 2026 13:23
@jaypipes
jaypipes force-pushed the connection-redesign branch 4 times, most recently from 6e1153b to 4bac7ce Compare July 24, 2026 10:58
This commit is the first of a series that attempts to clean up the
Connection CRD and handling of Connection CRs in the client pool and
controller packages.

This moves the `AuthMode` type out of `internal/clientpool` and into the
`api/v1alpha1` package but *does not* add a field to `ConnectionSpec`
for auth mode. Instead, we add a `ConnectionSpec.AuthMode()` method that
returns the calculate authentication mode after looking at the different
fields of `ConnectionSpec`. Similarly, we add a
`ConnectionSpec.SecretName()` method that returns the name of the
Kubernetes Secret that holds the authentication information for the
Connection. We clean up code in clientpool and controller by now calling
these methods on `ConnectionSpec`.

Signed-off-by: Jay Pipes <jay.pipes@temporal.io>
@jaypipes
jaypipes force-pushed the connection-redesign branch from 4bac7ce to 3d9ef89 Compare July 24, 2026 11:45
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.

1 participant