diff --git a/docker/sandbox-bundled/bootstrap/cmd/bootstrap/main.go b/docker/sandbox-bundled/bootstrap/cmd/bootstrap/main.go index 6afee0e82c..0614d1e347 100644 --- a/docker/sandbox-bundled/bootstrap/cmd/bootstrap/main.go +++ b/docker/sandbox-bundled/bootstrap/cmd/bootstrap/main.go @@ -81,7 +81,7 @@ func main() { if err := os.MkdirAll(filepath.Dir(renderedManifestPath), 0755); err != nil { log.Fatalf("failed to create destination directory: %s", err) } - if err := os.WriteFile(renderedManifestPath, rendered, 0644); err != nil { + if err := os.WriteFile(renderedManifestPath, rendered, 0644); err != nil { //nolint:gosec log.Fatalf("failed to write rendered manifest: %s", err) } } diff --git a/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/cluster-resource-templates.go b/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/cluster-resource-templates.go index 183ac9eec9..e476c1608a 100644 --- a/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/cluster-resource-templates.go +++ b/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/cluster-resource-templates.go @@ -7,11 +7,12 @@ import ( "os" "path/filepath" - "github.com/flyteorg/flyte/docker/sandbox-bundled/bootstrap/internal/utils" appsv1 "k8s.io/api/apps/v1" apiv1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/kustomize/api/types" + + "github.com/flyteorg/flyte/docker/sandbox-bundled/bootstrap/internal/utils" ) type ClusterResourceTemplatesNotFound struct { diff --git a/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/configuration.go b/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/configuration.go index 6df4109711..b92b601704 100644 --- a/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/configuration.go +++ b/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/configuration.go @@ -5,11 +5,12 @@ import ( "fmt" "os" - "github.com/flyteorg/flyte/docker/sandbox-bundled/bootstrap/internal/utils" appsv1 "k8s.io/api/apps/v1" apiv1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/kustomize/api/types" + + "github.com/flyteorg/flyte/docker/sandbox-bundled/bootstrap/internal/utils" ) type ConfigurationNotFound struct { diff --git a/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/loader.go b/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/loader.go index c601c8c846..d510814b26 100644 --- a/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/loader.go +++ b/docker/sandbox-bundled/bootstrap/internal/transform/plugins/config/loader.go @@ -76,7 +76,7 @@ func (cl *Loader) Transform(data []byte) ([]byte, error) { // Write base resource module baseManifestPath := filepath.Join(workDir, "base.yaml") - if err := os.WriteFile(baseManifestPath, data, 0644); err != nil { + if err := os.WriteFile(baseManifestPath, data, 0644); err != nil { //nolint:gosec return nil, err } @@ -102,7 +102,7 @@ func (cl *Loader) Transform(data []byte) ([]byte, error) { if err != nil { return nil, err } - if err := os.WriteFile(filepath.Join(workDir, "kustomization.yaml"), kyaml, 0644); err != nil { + if err := os.WriteFile(filepath.Join(workDir, "kustomization.yaml"), kyaml, 0644); err != nil { //nolint:gosec return nil, err }