1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

SkaffoldでKustomize使っていて"yaml: invalid trailing UTF-8"が出て対処した方法

Last updated at Posted at 2020-12-17

状況

複数コンテナ使う関係でSkaffold、Kustomizeを使っている環境で、最近brew upgradeしてからか急にskaffold runするとエラーが出るようになりました(Macでローカル実行)

running [kustomize build ./hogehoge]
 - stdout: ""
 - stderr: "Error: accumulating resources: 2 errors occurred:\n\t* accumulateFile error: \"accumulating resources from '../fugafuga': '/Users/*****/hogehoge' must resolve to a file\"\n\t* accumulateDirector error: \"recursed accumulation of path '/Users/******/hogehoge': yaml: invalid trailing UTF-8 octet\"\n\n\n"
 - cause: exit status 1

解決した方法

今回はアプリ内にあるkustomize設定ファイル(yaml)のうち一部コメントに使用していた全角文字を全て削除すると解消しました。
UTF-8で保存し直すだけじゃなく、ここまでやる必要があったみたいです

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?