Skip to content

Commit c081cb6

Browse files
committed
be less shouty!
1 parent 1961503 commit c081cb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/provider/cached_image_resource.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func (r *CachedImageResource) Read(ctx context.Context, req resource.ReadRequest
306306
if err != nil {
307307
if !strings.Contains(err.Error(), "MANIFEST_UNKNOWN") {
308308
// Explicitly not making this an error diag.
309-
resp.Diagnostics.AddWarning("Unable to check remote image!",
309+
resp.Diagnostics.AddWarning("Unable to check remote image.",
310310
fmt.Sprintf("The repository %q returned the following error while checking for a cached image %q: %q",
311311
data.CacheRepo.ValueString(),
312312
data.Image.ValueString(),
@@ -316,7 +316,7 @@ func (r *CachedImageResource) Read(ctx context.Context, req resource.ReadRequest
316316
}
317317
// Image does not exist any longer! Remove the resource so we can re-create
318318
// it next time.
319-
resp.Diagnostics.AddWarning("Previously built image not found, recreating!",
319+
resp.Diagnostics.AddWarning("Previously built image not found, recreating.",
320320
fmt.Sprintf("The repository %q does not contain the cached image %q. It will be rebuilt in the next apply.",
321321
data.CacheRepo.ValueString(),
322322
data.Image.ValueString(),
@@ -379,7 +379,7 @@ func (r *CachedImageResource) Create(ctx context.Context, req resource.CreateReq
379379
// FIXME: there are legit errors that can crop up here.
380380
// We should add a sentinel error in Kaniko for uncached layers, and check
381381
// it here.
382-
resp.Diagnostics.AddWarning("Cached image not found!", fmt.Sprintf(
382+
resp.Diagnostics.AddWarning("Cached image not found.", fmt.Sprintf(
383383
"Failed to find cached image in repository %q. It will be rebuilt in the next apply. Error: %s",
384384
data.CacheRepo.ValueString(),
385385
err.Error(),

0 commit comments

Comments
 (0)