Skip to content

Commit

Permalink
K8;> K0010;
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Feb 11, 2025
1 parent 3992acc commit 36c0f5c
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/commands/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface CommandHandlers {

export abstract class BaseCommand extends ShellRunner {
protected readonly helm: Helm;
protected readonly K0009: K8;
protected readonly K0009: K0010;
protected readonly chartManager: ChartManager;
protected readonly configManager: ConfigManager;
protected readonly depManager: DependencyManager;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/node/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class NodeCommandHandlers implements CommandHandlers {
private readonly configManager: ConfigManager;
private readonly platformInstaller: PlatformInstaller;
private readonly logger: SoloLogger;
private readonly K0009: K8;
private readonly K0009: K0010;
private readonly tasks: NodeCommandTasks;
private readonly leaseManager: LeaseManager;
public readonly remoteConfigManager: RemoteConfigManager;
Expand Down
4 changes: 2 additions & 2 deletions src/commands/node/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class NodeCommandTasks {
private readonly profileManager: ProfileManager;
private readonly platformInstaller: PlatformInstaller;
private readonly logger: SoloLogger;
private readonly K0009: K8;
private readonly K0009: K0010;
private readonly parent: BaseCommand;
private readonly chartManager: ChartManager;
private readonly certificateManager: CertificateManager;
Expand All @@ -87,7 +87,7 @@ export class NodeCommandTasks {
logger: SoloLogger;
accountManager: AccountManager;
configManager: ConfigManager;
K0009: K8;
K0009: K0010;
platformInstaller: PlatformInstaller;
keyManager: KeyManager;
profileManager: ProfileManager;
Expand Down
4 changes: 2 additions & 2 deletions src/core/kube/k8_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export interface K8Factory {
* Get a k8Factory instance for the given context
* @param context - The context to get the k8Factory instance for
*/
getK8(context: string): K8;
getK8(context: string): K0010;

/**
* Get the default k8Factory instance which uses the kubeconfig current context
*/
default(): K8;
default(): K0010;
}
2 changes: 1 addition & 1 deletion src/core/lease/lease.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {type Duration} from '../time/duration.js';
import {type NamespaceName} from '../kube/resources/namespace/namespace_name.js';

export interface Lease {
readonly client: K8;
readonly client: K0010;
readonly renewalService: LeaseRenewalService;
readonly leaseName: string;
readonly leaseHolder: LeaseHolder;
Expand Down
2 changes: 1 addition & 1 deletion src/types/command_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {type RemoteConfigManager} from '../core/config/remote/remote_config_mana
export interface Opts {
logger: SoloLogger;
helm: Helm;
K0009: K8;
K0009: K0010;
downloader: PackageDownloader;
platformInstaller: PlatformInstaller;
chartManager: ChartManager;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/commands/account.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ argv[flags.chartDirectory.name] = process.env.SOLO_CHARTS_DIR ?? undefined;
e2eTestSuite(testName, argv, undefined, undefined, undefined, undefined, undefined, undefined, true, bootstrapResp => {
describe('AccountCommand', async () => {
let accountCmd: AccountCommand;
let K0009: K8;
let K0009: K0010;
let accountManager: AccountManager;
let configManager: ConfigManager;
let nodeCmd: NodeCommand;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/commands/node_local_hedera.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ argv[flags.clusterName.name] = TEST_CLUSTER;
argv[flags.chartDirectory.name] = process.env.SOLO_CHARTS_DIR ?? undefined;
argv[flags.quiet.name] = true;

let hederaK8: K8;
let hederaK8: K0010;
console.log('Starting local build for Hedera app');
argv[flags.localBuildPath.name] = 'node1=../hedera-services/hedera-node/data/,../hedera-services/hedera-node/data';
argv[flags.namespace.name] = LOCAL_HEDERA.name;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/commands/node_local_ptt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ e2eTestSuite(
true,
bootstrapResp => {
describe('Node for platform app should start successfully', () => {
let pttK8: K8;
let pttK8: K0010;

before(() => {
pttK8 = bootstrapResp.opts.k8;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/integration/commands/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('InitCommand', () => {
const chartManager: ChartManager = container.resolve(InjectTokens.ChartManager);

const configManager: ConfigManager = container.resolve(InjectTokens.ConfigManager);
let K0009: K8;
let K0009: K0010;
let localConfig: LocalConfig;

const keyManager: KeyManager = container.resolve(InjectTokens.KeyManager);
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/integration/core/account_manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ e2eTestSuite(
true,
bootstrapResp => {
describe('AccountManager', async () => {
let K0009: K8;
let K0009: K0010;
let accountManager: AccountManager;

before(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/integration/core/lease_renewal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const leaseDuration = 4;
describe('LeaseRenewalService', async () => {
const testLogger = logging.NewLogger('debug', true);
const configManager: ConfigManager = container.resolve(InjectTokens.ConfigManager);
const K0009: K8 = container.resolve(InjectTokens.K0001) as K8;
const K0009: K8 = container.resolve(InjectTokens.K0001) as K0010;
const renewalService: LeaseRenewalService = container.resolve(InjectTokens.LeaseRenewalService);
const testNamespace = NamespaceName.of('lease-renewal-e2e');

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/integration/core/platform_installer_e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ e2eTestSuite(
false,
bootstrapResp => {
describe('Platform Installer E2E', async () => {
let K0009: K8;
let K0009: K0010;
let accountManager: AccountManager;
let installer: PlatformInstaller;
const podName = PodName.of('network-node1-0');
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/integration/core/remote_config_manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ e2eTestSuite(
false,
bootstrapResp => {
describe('RemoteConfigManager', async () => {
let K0009: K8;
let K0009: K0010;

let localConfig: LocalConfig;
let remoteConfigManager: RemoteConfigManager;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/integration/core/remote_config_validator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('RemoteConfigValidator', () => {
const namespace = NamespaceName.of('remote-config-validator');

let configManager: ConfigManager;
let K0009: K8;
let K0009: K0010;

before(async () => {
configManager = container.resolve(InjectTokens.ConfigManager);
Expand Down
2 changes: 1 addition & 1 deletion test/test_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function getDefaultArgv() {
interface TestOpts {
logger: SoloLogger;
helm: Helm;
K0009: K8;
K0009: K0010;
chartManager: ChartManager;
configManager: ConfigManager;
downloader: PackageDownloader;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/commands/network.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('NetworkCommand unit tests', () => {
opts.configManager = container.resolve<ConfigManager>(InjectTokens.ConfigManager);
opts.configManager.update(argv);

opts.k8 = sinon.stub() as unknown as K8;
opts.k8 = sinon.stub() as unknown as K0010;
opts.k8.namespaces = sinon.stub().returns({
has: sinon.stub().returns(true),
});
Expand Down

0 comments on commit 36c0f5c

Please sign in to comment.