-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 6b4b602 Author: Jeromy Cannon <[email protected]> Date: Sun Feb 9 19:47:06 2025 +0000 fixed rebase issue Signed-off-by: Jeromy Cannon <[email protected]> commit 475712c Author: Jeromy Cannon <[email protected]> Date: Sun Feb 9 18:47:05 2025 +0000 removed some TODOs Signed-off-by: Jeromy Cannon <[email protected]> commit e803801 Author: Jeromy Cannon <[email protected]> Date: Sun Feb 9 18:11:10 2025 +0000 refactor: align to kube hierarchial folder structure Signed-off-by: Jeromy Cannon <[email protected]> commit cb27150 Author: Jeromy Cannon <[email protected]> Date: Sun Feb 9 16:53:15 2025 +0000 Revert "fixed test case" This reverts commit bbb4738. Signed-off-by: Jeromy Cannon <[email protected]> commit bdad9ae Author: Jeromy Cannon <[email protected]> Date: Sun Feb 9 15:44:29 2025 +0000 aligned to code style Signed-off-by: Jeromy Cannon <[email protected]> commit 89a3081 Author: Jeromy Cannon <[email protected]> Date: Sun Feb 9 13:56:19 2025 +0000 moved pod files to resource/pod folder Signed-off-by: Jeromy Cannon <[email protected]> Signed-off-by: Jeromy Cannon <[email protected]>
- Loading branch information
1 parent
eadfabd
commit da6eb9f
Showing
74 changed files
with
191 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...core/kube/k8_client/k8_client_clusters.ts → ...t/resources/cluster/k8_client_clusters.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/core/kube/k8_client/resources/container/k8_client_containers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
import {type Containers} from '../../../resources/container/containers.js'; | ||
import {type ContainerRef} from '../../../resources/container/container_ref.js'; | ||
import {type Container} from '../../../resources/container/container.js'; | ||
import {K8ClientContainer} from './k8_client_container.js'; | ||
import {type KubeConfig} from '@kubernetes/client-node'; | ||
import {type Pods} from '../../../resources/pod/pods.js'; | ||
|
||
export class K8ClientContainers implements Containers { | ||
public constructor( | ||
private readonly kubeConfig: KubeConfig, | ||
private readonly pods: Pods, | ||
) {} | ||
|
||
public readByRef(containerRef: ContainerRef): Container { | ||
return new K8ClientContainer(this.kubeConfig, containerRef, this.pods); | ||
} | ||
} |
Oops, something went wrong.