-
Notifications
You must be signed in to change notification settings - Fork 22
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
Kyma Binding with Gardener's Adminkubeconfig #1160
Conversation
Add one of following labels |
internal/broker/bind_create.go
Outdated
|
||
log logrus.FieldLogger | ||
} | ||
|
||
func NewBind(cfg BindingConfig, instanceStorage storage.Instances, log logrus.FieldLogger, clientProvider broker.ClientProvider, kubeconfigProvider broker.KubeconfigProvider, tokenExpirationSeconds int) *BindEndpoint { | ||
type BindingParams struct { | ||
TokenRequest bool `json:"token_requests,omit"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TokenRequest bool `json:"token_requests,omit"` | |
TokenRequest bool `json:"token_request,omit"` |
// get kubeconfig for the instance | ||
kubeconfig, err = b.tokenRequestBindingManager.Create(ctx, instance, bindingID) | ||
if err != nil { | ||
return domain.Binding{}, fmt.Errorf("failed to create kyma binding using token requests: %s", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return domain.Binding{}, fmt.Errorf("failed to create kyma binding using token requests: %s", err) | |
return domain.Binding{}, fmt.Errorf("failed to create kyma binding using token request: %s", err) |
internal/broker/bind_create_test.go
Outdated
@@ -204,6 +210,7 @@ func TestCreateBindingEndpoint(t *testing.T) { | |||
"service_id": "123", | |||
"plan_id": "%s", | |||
"parameters": { | |||
"token_requests": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"token_requests": true | |
"token_request": true |
* Gardener Admin Kubeconfig Generation as a Default Binding Provider * Linter & Default Service Account Correction * Build Correction * Added Missing Scheme Registration for shoot Package * Linter * Removed Empty Test * Removed Debug Lines * Review Remarks * Review Remarks * Removed Unnecessary Import * Linter * Review Remarks * Review Remarks * Linter * Review Remarks
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Kyma Binding with Gardener's Adminkubeconfig (#1160) * Gardener Admin Kubeconfig Generation as a Default Binding Provider * Linter & Default Service Account Correction * Build Correction * Added Missing Scheme Registration for shoot Package * Linter * Removed Empty Test * Removed Debug Lines * Review Remarks * Review Remarks * Removed Unnecessary Import * Linter * Review Remarks * Review Remarks * Linter * Review Remarks * Bump sec-scanners-config.yaml, KEB images and Chart to 1.10.6 (#1181) * Extend binding create endpoint (#1180) * Extend binding create endpoint * Apply suggestions * Remove necessary comment * Bump sec-scanners-config.yaml, KEB images and Chart to 1.10.7 (#1183) * Remove avs (#1182) * Remove AvS code * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip --------- Co-authored-by: Wojciech Wrzalik <[email protected]> Co-authored-by: Kyma gopher bot <[email protected]> Co-authored-by: KsaweryZietara <[email protected]> Co-authored-by: Piotr Miśkiewicz <[email protected]>
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Kyma Binding with Gardener's Adminkubeconfig (#1160) * Gardener Admin Kubeconfig Generation as a Default Binding Provider * Linter & Default Service Account Correction * Build Correction * Added Missing Scheme Registration for shoot Package * Linter * Removed Empty Test * Removed Debug Lines * Review Remarks * Review Remarks * Removed Unnecessary Import * Linter * Review Remarks * Review Remarks * Linter * Review Remarks * Bump sec-scanners-config.yaml, KEB images and Chart to 1.10.6 (#1181) * Extend binding create endpoint (#1180) * Extend binding create endpoint * Apply suggestions * Remove necessary comment * Bump sec-scanners-config.yaml, KEB images and Chart to 1.10.7 (#1183) * Remove avs (#1182) * Remove AvS code * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip --------- Co-authored-by: Wojciech Wrzalik <[email protected]> Co-authored-by: Kyma gopher bot <[email protected]> Co-authored-by: KsaweryZietara <[email protected]> Co-authored-by: Piotr Miśkiewicz <[email protected]>
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Kyma Binding with Gardener's Adminkubeconfig (#1160) * Gardener Admin Kubeconfig Generation as a Default Binding Provider * Linter & Default Service Account Correction * Build Correction * Added Missing Scheme Registration for shoot Package * Linter * Removed Empty Test * Removed Debug Lines * Review Remarks * Review Remarks * Removed Unnecessary Import * Linter * Review Remarks * Review Remarks * Linter * Review Remarks * Bump sec-scanners-config.yaml, KEB images and Chart to 1.10.6 (#1181) * Extend binding create endpoint (#1180) * Extend binding create endpoint * Apply suggestions * Remove necessary comment * Bump sec-scanners-config.yaml, KEB images and Chart to 1.10.7 (#1183) * Remove avs (#1182) * Remove AvS code * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip --------- Co-authored-by: Wojciech Wrzalik <[email protected]> Co-authored-by: Kyma gopher bot <[email protected]> Co-authored-by: KsaweryZietara <[email protected]> Co-authored-by: Piotr Miśkiewicz <[email protected]>
Description
The following PR introduces kubeconfig generation for Kyma Binding using a Gardener's shoot subresource - adminkubeconfig.
Changes proposed in this pull request:
Related issue(s)
#284