Skip to content

Commit

Permalink
fix: move k8s ctrl to k8s/core (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 1, 2019
1 parent 915df8a commit 637c5e2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
metadata:
kind: kubernetes-controller
name: test_k8s
kind: kubernetes-core-controller
name: test-k8s-core
data:
context:
default: true
Expand Down
2 changes: 1 addition & 1 deletion docs/isolex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data:
- !include ../docs/controller/dice-controller.yml
- !include ../docs/controller/github/pr-controller.yml
- !include ../docs/controller/gitlab/ci-controller.yml
- !include ../docs/controller/kubernetes-controller.yml
- !include ../docs/controller/kubernetes/core-controller.yml
- !include ../docs/controller/learn-controller.yml
- !include ../docs/controller/math-controller.yml
- !include ../docs/controller/random-controller.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { BaseController } from 'src/controller/BaseController';
import { Controller, ControllerData, ControllerOptions } from 'src/controller/Controller';
import { Command, CommandVerb } from 'src/entity/Command';

export const NOUN_POD = 'k8s-pod';
export const NOUN_SERVICE = 'k8s-service';
export const NOUN_POD = 'kubernetes-pod';
export const NOUN_SERVICE = 'kubernetes-service';

export interface KubernetesControllerData extends ControllerData {
context: {
Expand All @@ -23,7 +23,7 @@ export interface KubernetesControllerData extends ControllerData {
export type KubernetesControllerOptions = ControllerOptions<KubernetesControllerData>;

@Inject()
export class KubernetesController extends BaseController<KubernetesControllerData> implements Controller {
export class KubernetesCoreController extends BaseController<KubernetesControllerData> implements Controller {
protected client: k8s.Core_v1Api;

constructor(options: KubernetesControllerOptions) {
Expand Down
4 changes: 2 additions & 2 deletions src/module/ControllerModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { DiceController } from 'src/controller/DiceController';
import { EchoController } from 'src/controller/EchoController';
import { GithubPRController } from 'src/controller/github/PRController';
import { GitlabCIController } from 'src/controller/gitlab/CIController';
import { KubernetesController } from 'src/controller/KubernetesController';
import { KubernetesCoreController } from 'src/controller/kubernetes/CoreController';
import { LearnController } from 'src/controller/LearnController';
import { MathController } from 'src/controller/MathController';
import { PickController } from 'src/controller/PickController';
Expand Down Expand Up @@ -51,6 +51,6 @@ export class ControllerModule extends Module {
this.bind(kebabCase(GitlabCIController.name)).toConstructor(GitlabCIController);

// kubernetes controllers
this.bind(kebabCase(KubernetesController.name)).toConstructor(KubernetesController);
this.bind(kebabCase(KubernetesCoreController.name)).toConstructor(KubernetesCoreController);
}
}

0 comments on commit 637c5e2

Please sign in to comment.