Secrets are not getting loaded to yaml when Cloud.toml does not exist
**Description:**
$Subject.


**Suggested Labels:**
<!-- Optional comma separated list of suggested labels. Non committers can’t assign labels to issues, so this will help issue creators who are not a committer to suggest possible labels-->

**Suggested Assignees:**
<!--Optional comma separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, so this will help issue creators who are not a committer to suggest possible assignees-->

**Affected Product Version:**

**OS, DB, other environment details and versions:**    

**Steps to reproduce:**


**Related Issues:**
<!-- Any related issues such as sub tasks, issues reported in other repositories (e.g component repositories), similar problems, etc. -->
diff --git a/c2c-extension/src/main/java/io/ballerina/c2c/ArtifactManager.java b/c2c-extension/src/main/java/io/ballerina/c2c/ArtifactManager.java
index e0083ab..e262ae8 100644
--- a/c2c-extension/src/main/java/io/ballerina/c2c/ArtifactManager.java
+++ b/c2c-extension/src/main/java/io/ballerina/c2c/ArtifactManager.java
@@ -24,6 +24,7 @@ import io.ballerina.c2c.handlers.DeploymentHandler;
 import io.ballerina.c2c.handlers.DockerHandler;
 import io.ballerina.c2c.handlers.HPAHandler;
 import io.ballerina.c2c.handlers.JobHandler;
+import io.ballerina.c2c.handlers.SecretHandler;
 import io.ballerina.c2c.handlers.ServiceHandler;
 import io.ballerina.c2c.models.DeploymentModel;
 import io.ballerina.c2c.models.KubernetesContext;
@@ -85,6 +86,7 @@ public class ArtifactManager {
             new ConfigMapHandler().createArtifacts();
             new DeploymentHandler().createArtifacts();
             new HPAHandler().createArtifacts();
+            new SecretHandler().createArtifacts();
         }
         new DockerHandler().createArtifacts();
         printInstructions();
diff --git a/c2c-extension/src/main/java/io/ballerina/c2c/CloudTomlResolver.java b/c2c-extension/src/main/java/io/ballerina/c2c/CloudTomlResolver.java
index 5298539..aab6e72 100644
--- a/c2c-extension/src/main/java/io/ballerina/c2c/CloudTomlResolver.java
+++ b/c2c-extension/src/main/java/io/ballerina/c2c/CloudTomlResolver.java
@@ -21,7 +21,6 @@ package io.ballerina.c2c;
 import io.ballerina.c2c.diagnostics.C2CDiagnosticCodes;
 import io.ballerina.c2c.diagnostics.NullLocation;
 import io.ballerina.c2c.exceptions.KubernetesPluginException;
-import io.ballerina.c2c.handlers.SecretHandler;
 import io.ballerina.c2c.models.ConfigMapModel;
 import io.ballerina.c2c.models.DeploymentModel;
 import io.ballerina.c2c.models.KubernetesContext;
@@ -264,7 +263,6 @@ public class CloudTomlResolver {
                 dataHolder.addSecrets(Collections.singleton(secretModel));
             }
         }
-        new SecretHandler().createArtifacts();
     }
 
     private Path validatePaths(Path path, Path mountPath) throws KubernetesPluginException {
['c2c-extension/src/main/java/io/ballerina/c2c/CloudTomlResolver.java', 'c2c-extension/src/main/java/io/ballerina/c2c/ArtifactManager.java']