mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-27 07:50:47 +00:00
cc32f48c9c
* fix(versioning): replace bare links with descriptive markdown links in urls Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * refactor: export markdownLinkRegex from common.ts and import in test Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
721 B
TypeScript
23 lines
721 B
TypeScript
import { RegExpVersioningApi } from '../regex/index.ts';
|
|
import type { VersioningApi } from '../types.ts';
|
|
|
|
export const id = 'kubernetes-api';
|
|
export const displayName = 'Kubernetes API';
|
|
export const urls = [
|
|
'[Kubernetes API versioning](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;
|