Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commands/fn/doc/cmdfndoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"os/exec"

"github.com/kptdev/kpt/internal/docs/generated/fndocs"
"github.com/kptdev/kpt/internal/fnruntime"
fnruntime "github.com/kptdev/kpt/pkg/fn/runtime"
"github.com/kptdev/kpt/pkg/lib/runneroptions"
"github.com/kptdev/kpt/pkg/lib/util/cmdutil"
"github.com/kptdev/kpt/pkg/printer"
Expand Down
2 changes: 1 addition & 1 deletion commands/fn/doc/cmdfndoc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"testing"

"github.com/kptdev/kpt/commands/fn/doc"
"github.com/kptdev/kpt/internal/fnruntime"
fnruntime "github.com/kptdev/kpt/pkg/fn/runtime"
"github.com/kptdev/kpt/pkg/printer/fake"
"sigs.k8s.io/kustomize/kyaml/testutil"
)
Expand Down
2 changes: 1 addition & 1 deletion e2e/fn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strings"
"testing"

"github.com/kptdev/kpt/internal/fnruntime"
fnruntime "github.com/kptdev/kpt/pkg/fn/runtime"
"github.com/kptdev/kpt/pkg/test/runner"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/hook/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import (
"fmt"
"io"

"github.com/kptdev/kpt/internal/fnruntime"
"github.com/kptdev/kpt/internal/pkg"
"github.com/kptdev/kpt/internal/types"
fnresult "github.com/kptdev/kpt/pkg/api/fnresult/v1"
kptfilev1 "github.com/kptdev/kpt/pkg/api/kptfile/v1"
"github.com/kptdev/kpt/pkg/fn"
fnruntime "github.com/kptdev/kpt/pkg/fn/runtime"
"github.com/kptdev/kpt/pkg/lib/runneroptions"
"sigs.k8s.io/kustomize/kyaml/filesys"
"sigs.k8s.io/kustomize/kyaml/kio"
Expand Down
2 changes: 1 addition & 1 deletion internal/util/render/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ import (
"slices"
"strings"

"github.com/kptdev/kpt/internal/fnruntime"
"github.com/kptdev/kpt/internal/pkg"
"github.com/kptdev/kpt/internal/types"
"github.com/kptdev/kpt/internal/util/attribution"
"github.com/kptdev/kpt/internal/util/printerutil"
fnresult "github.com/kptdev/kpt/pkg/api/fnresult/v1"
kptfilev1 "github.com/kptdev/kpt/pkg/api/kptfile/v1"
"github.com/kptdev/kpt/pkg/fn"
fnruntime "github.com/kptdev/kpt/pkg/fn/runtime"
"github.com/kptdev/kpt/pkg/kptfile/kptfileutil"
"github.com/kptdev/kpt/pkg/lib/errors"
"github.com/kptdev/kpt/pkg/lib/runneroptions"
Expand Down
2 changes: 1 addition & 1 deletion internal/util/render/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
"strings"
"testing"

"github.com/kptdev/kpt/internal/fnruntime"
"github.com/kptdev/kpt/internal/pkg"
"github.com/kptdev/kpt/internal/types"
fnresult "github.com/kptdev/kpt/pkg/api/fnresult/v1"
kptfilev1 "github.com/kptdev/kpt/pkg/api/kptfile/v1"
fnruntime "github.com/kptdev/kpt/pkg/fn/runtime"
"github.com/kptdev/kpt/pkg/kptfile/kptfileutil"
"github.com/kptdev/kpt/pkg/printer"
"github.com/stretchr/testify/assert"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"bufio"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fnruntime
package runtime

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion internal/fnruntime/exec.go → pkg/fn/runtime/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

// The glue code below has been tested with node.js v18.6.0.
// It may need some small changes to work with v14 and v16.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// Package pipeline provides struct definitions for Pipeline and utility
// methods to read and write a pipeline resource.
package fnruntime
package runtime

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion internal/fnruntime/utils.go → pkg/fn/runtime/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion internal/fnruntime/wasm.go → pkg/fn/runtime/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

import (
"errors"
Expand All @@ -23,7 +23,7 @@ import (
"log"
"os"

wasmtime "github.com/bytecodealliance/wasmtime-go"
"github.com/bytecodealliance/wasmtime-go"
"github.com/prep/wasmexec"
"github.com/prep/wasmexec/wasmtimexec"
"sigs.k8s.io/kustomize/kyaml/yaml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package fnruntime
package runtime

// Stub functions for running without wasmtime support compiled in.
// wasmtime requires cgo, which is not always a viable option.
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/errors/resolver/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package resolver
import (
"errors"

"github.com/kptdev/kpt/internal/fnruntime"
fnruntime "github.com/kptdev/kpt/pkg/fn/runtime"
)

//nolint:gochecknoinits
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/kptdev/kpt/internal/fnruntime"
fnruntime "github.com/kptdev/kpt/pkg/fn/runtime"
)

// Runner runs an e2e test
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/kyaml/runfn/runfn.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"strings"

"github.com/kptdev/kpt/internal/types"
fnruntime "github.com/kptdev/kpt/pkg/fn/runtime"
"github.com/kptdev/kpt/pkg/lib/runneroptions"
"github.com/kptdev/kpt/pkg/printer"
"sigs.k8s.io/kustomize/kyaml/errors"
Expand All @@ -21,7 +22,6 @@ import (
"sigs.k8s.io/kustomize/kyaml/kio"
"sigs.k8s.io/kustomize/kyaml/yaml"

"github.com/kptdev/kpt/internal/fnruntime"
"github.com/kptdev/kpt/internal/pkg"
"github.com/kptdev/kpt/internal/util/printerutil"
fnresult "github.com/kptdev/kpt/pkg/api/fnresult/v1"
Comment thread
mozesl-nokia marked this conversation as resolved.
Expand Down
Loading