Skip to content

feat(k8s): add exec-credential #4069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix useless cassettes generation
  • Loading branch information
jtherin committed Aug 22, 2024
commit cb55cf8693f757ce439ea008e6fcbddf33dbe4d7
3 changes: 3 additions & 0 deletions internal/namespaces/k8s/v1/custom_execcredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ func k8sExecCredentialCommand() *core.Command {
ArgsType: reflect.TypeOf(struct{}{}),
ArgSpecs: core.ArgSpecs{},
Run: k8sExecCredentialRun,

// avoid calling checkAPIKey (Check if API Key is about to expire)
DisableAfterChecks: true,
}
}

Expand Down
3 changes: 3 additions & 0 deletions internal/namespaces/k8s/v1/custom_execcredentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func beforeFuncCreateFullConfig() core.BeforeFunc {
APIURL: scw.StringPtr("https://mock-api-url.com"),
Insecure: scw.BoolPtr(true),
DefaultOrganizationID: scw.StringPtr("deadbeef-dead-dead-dead-deaddeafbeef"),
DefaultProjectID: scw.StringPtr("deadbeef-dead-dead-dead-deaddeafbeef"),
DefaultRegion: scw.StringPtr("fr-par"),
DefaultZone: scw.StringPtr("fr-par-1"),
SendTelemetry: scw.BoolPtr(true),
Expand All @@ -126,6 +127,7 @@ func beforeFuncCreateFullConfig() core.BeforeFunc {
APIURL: scw.StringPtr("https://p2-mock-api-url.com"),
Insecure: scw.BoolPtr(true),
DefaultOrganizationID: scw.StringPtr("deadbeef-dead-dead-dead-deaddeafbeef"),
DefaultProjectID: scw.StringPtr("deadbeef-dead-dead-dead-deaddeafbeef"),
DefaultRegion: scw.StringPtr("fr-par"),
DefaultZone: scw.StringPtr("fr-par-1"),
SendTelemetry: scw.BoolPtr(true),
Expand All @@ -136,6 +138,7 @@ func beforeFuncCreateFullConfig() core.BeforeFunc {
APIURL: scw.StringPtr("https://p3-mock-api-url.com"),
Insecure: scw.BoolPtr(true),
DefaultOrganizationID: scw.StringPtr("deadbeef-dead-dead-dead-deaddeafbeef"),
DefaultProjectID: scw.StringPtr("deadbeef-dead-dead-dead-deaddeafbeef"),
DefaultRegion: scw.StringPtr("fr-par"),
DefaultZone: scw.StringPtr("fr-par-1"),
SendTelemetry: scw.BoolPtr(true),
Expand Down
Loading