Skip to content

Commit

Permalink
Update kubernetes schema to 1.20.5
Browse files Browse the repository at this point in the history
- According to instrumenta/kubernetes-json-schema#26 we also need to change the referenced schema repository to https://github.com/yannh/kubernetes-json-schema/ that now contains latest/daily updated schemas.
  • Loading branch information
Agorgianitis Loukas authored and evidolob committed Mar 22, 2021
1 parent 30001e5 commit 520d7af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/languageservice/utils/schemaUrls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { URI } from 'vscode-uri';
import { isRelativePath, relativeToAbsolutePath } from './paths';

export const KUBERNETES_SCHEMA_URL =
'https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.18.1-standalone-strict/all.json';
'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.20.5-standalone-strict/all.json';
export const JSON_SCHEMASTORE_URL = 'https://www.schemastore.org/api/json/catalog.json';

export function checkSchemaURI(workspaceFolders: WorkspaceFolder[], workspaceRoot: URI, uri: string): string {
Expand Down
2 changes: 1 addition & 1 deletion test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('Kubernetes Integration Tests', () => {
let yamlSettings: SettingsState;

before(() => {
const uri = 'https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.18.1-standalone-strict/all.json';
const uri = 'https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.20.5-standalone-strict/all.json';
const fileMatch = ['*.yml', '*.yaml'];
languageSettingsSetup = new ServiceSetup()
.withHover()
Expand Down

0 comments on commit 520d7af

Please sign in to comment.