Skip to content

Commit

Permalink
fix(kustomize): ensure string before extractResource (#20338)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 11, 2023
1 parent 15365b5 commit c9777bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/modules/manager/kustomize/extract.ts
Expand Up @@ -177,7 +177,7 @@ export function extractPackageFile(content: string): PackageFile | null {
}

// grab the remote bases
for (const base of coerceArray(pkg.bases)) {
for (const base of coerceArray(pkg.bases).filter(is.string)) {
const dep = extractResource(base);
if (dep) {
deps.push({
Expand All @@ -188,7 +188,7 @@ export function extractPackageFile(content: string): PackageFile | null {
}

// grab the remote resources
for (const resource of coerceArray(pkg.resources)) {
for (const resource of coerceArray(pkg.resources).filter(is.string)) {
const dep = extractResource(resource);
if (dep) {
deps.push({
Expand All @@ -199,7 +199,7 @@ export function extractPackageFile(content: string): PackageFile | null {
}

// grab the remote components
for (const component of coerceArray(pkg.components)) {
for (const component of coerceArray(pkg.components).filter(is.string)) {
const dep = extractResource(component);
if (dep) {
deps.push({
Expand Down

0 comments on commit c9777bc

Please sign in to comment.