From 1de4e4974c4a102445e69e95717da0d29c959f2f Mon Sep 17 00:00:00 2001
From: Cian Johnston <cian@coder.com>
Date: Thu, 1 Aug 2024 20:51:22 +0100
Subject: [PATCH] add TODO

---
 internal/provider/cached_image_data_source.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/internal/provider/cached_image_data_source.go b/internal/provider/cached_image_data_source.go
index 9b17f03..03a34aa 100644
--- a/internal/provider/cached_image_data_source.go
+++ b/internal/provider/cached_image_data_source.go
@@ -264,6 +264,8 @@ func (d *CachedImageDataSource) Read(ctx context.Context, req datasource.ReadReq
 		tflog.Error(ctx, "failed to create kaniko dir: "+err.Error())
 	}
 
+	// TODO: check if this is a "plan" or "apply", and only run envbuilder on "apply".
+	// This may require changing this to be a resource instead of a data source.
 	opts := eboptions.Options{
 		// These options are always required
 		CacheRepo:       data.CacheRepo.ValueString(),