Commit 5d4cb809 authored by Paul Gascou-Vaillancourt's avatar Paul Gascou-Vaillancourt Committed by Paul Gascou-Vaillancourt

Rename manifest to yaml in getPolicyKind

parent 21e2604e
...@@ -14,14 +14,14 @@ export const getContentWrapperHeight = (contentWrapperClass) => { ...@@ -14,14 +14,14 @@ export const getContentWrapperHeight = (contentWrapperClass) => {
/** /**
* Get a policy's type * Get a policy's type
* @param {String} manifest policy's YAML manifest * @param {String} yaml policy's YAML manifest
* @returns {String|null} policy type if available * @returns {String|null} policy type if available
*/ */
export const getPolicyKind = (manifest = '') => { export const getPolicyKind = (yaml = '') => {
if (manifest?.includes(POLICY_KINDS.ciliumNetwork)) { if (yaml?.includes(POLICY_KINDS.ciliumNetwork)) {
return POLICY_KINDS.ciliumNetwork; return POLICY_KINDS.ciliumNetwork;
} }
if (manifest?.includes(POLICY_KINDS.scanExecution)) { if (yaml?.includes(POLICY_KINDS.scanExecution)) {
return POLICY_KINDS.scanExecution; return POLICY_KINDS.scanExecution;
} }
return null; return null;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment