mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 21:48:32 +00:00
b6ed33ec01
This cleanup of default `fileMatch` values should be backwards compatible.
23 lines
680 B
TypeScript
23 lines
680 B
TypeScript
import { RegExpVersioningApi } from '../regex';
|
|
import type { VersioningApi } from '../types';
|
|
|
|
export const id = 'kubernetes-api';
|
|
export const displayName = 'Kubernetes API';
|
|
export const urls = [
|
|
'https://kubernetes.io/docs/reference/using-api/#api-versioning',
|
|
];
|
|
export const supportsRanges = false;
|
|
|
|
export class KubernetesApiVersioningApi extends RegExpVersioningApi {
|
|
private static readonly versionRegex =
|
|
'^(?:(?<compatibility>\\S+)/)?v(?<major>\\d+)(?<prerelease>(?:alpha|beta)\\d+)?$';
|
|
|
|
public constructor() {
|
|
super(KubernetesApiVersioningApi.versionRegex);
|
|
}
|
|
}
|
|
|
|
export const api: VersioningApi = new KubernetesApiVersioningApi();
|
|
|
|
export default api;
|