Merge pull request #3411 from moustafab/feature/k8s-label-selector-2

refactor(k8s-plugin): update to use annotation based label selector
This commit is contained in:
Fredrik Adelöw
2020-12-02 16:31:20 +01:00
committed by GitHub
10 changed files with 64 additions and 77 deletions
@@ -32,15 +32,6 @@ const schema = yup.object<Partial<ComponentEntityV1alpha1>>({
implementsApis: yup.array(yup.string().required()).notRequired(),
providesApis: yup.array(yup.string().required()).notRequired(),
consumesApis: yup.array(yup.string().required()).notRequired(),
kubernetes: yup
.object<any>({
selector: yup
.object<any>({
matchLabels: yup.object<any>().required(),
})
.required(),
})
.notRequired(),
})
.required(),
});
@@ -60,13 +51,6 @@ export interface ComponentEntityV1alpha1 extends Entity {
implementsApis?: string[];
providesApis?: string[];
consumesApis?: string[];
kubernetes?: {
selector: {
matchLabels: {
[key: string]: string;
};
};
};
};
}