Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/state/configuration/configurationAtom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@ const getConfigs = async (fetchFn: FetchFn | undefined) => {
}
}

const configParams = jsyaml.load(await configResponse.text()) as Config;
// Check if there is config.yaml - case for deploying Busola in a Cluster
let configParams: Config = {};
try {
configParams = jsyaml.load(await configResponse.text()) as Config;
} catch (e) {
console.warn('Cannot load config.yaml: ', e);
}

const mapParams = configMapResponse?.data?.config
? (jsyaml.load(configMapResponse.data.config) as Config)
: {};
Expand Down
Loading