Skip to content
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

Initial version for k8sd-proxy #7

Merged
merged 9 commits into from
Jun 19, 2024
Merged

Initial version for k8sd-proxy #7

merged 9 commits into from
Jun 19, 2024

Conversation

berkayoz
Copy link
Member

@berkayoz berkayoz commented Jun 13, 2024

Had to close #4 since we are now targeting main branch after rebase.

  • Adds k8s-proxy daemonset for talking to k8sd api
  • Adds a generator for getting clients that proxy through the proxy pods like kubectl port-forward

The socat image is not currently mirrored, will be mirrored after PR is merged. Replace with alpine/socat manually for testing.

@berkayoz berkayoz marked this pull request as ready for review June 13, 2024 20:40
Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

Some final comment.

pkg/ck8s/k8sd_proxy.go Outdated Show resolved Hide resolved
ClientRestConfig *rest.Config
Client ctrlclient.Client
ClientRestConfig *rest.Config
K8sdProxyGenerator *k8sdProxyGenerator

// NOTE(neoaggelos): CoreDNSMigrator and etcdClientGenerator are used by upstream to reach and manage the services in the workload cluster
// TODO(neoaggelos): Replace them with a k8sdProxyClientGenerator.
Copy link
Contributor

Choose a reason for hiding this comment

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

obsolete comment

pkg/ck8s/workload_cluster.go Outdated Show resolved Hide resolved
test/unit/k8sd_proxy_manual_test.go Outdated Show resolved Hide resolved
@neoaggelos neoaggelos merged commit c4cf9bc into main Jun 19, 2024
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.

4 participants