-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kumactl): in apply support empty docs (#10951)
When a document had just 1 comment this would cause problems when doing `kumactl apply -f`. We now strip comments before doing anything which would ignore this doc Signed-off-by: Charly Molter <[email protected]>
- Loading branch information
Showing
3 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
app/kumactl/cmd/apply/testdata/apply-multiple-resource-different-type.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Just a starting comment | ||
--- | ||
name: sample1 | ||
# --- Checking a random separation doesn't break everything | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters