Skip to content

Commit

Permalink
Remove usage of ttl.sh (#2653)
Browse files Browse the repository at this point in the history
* Remove usage of ttl.sh

Signed-off-by: Matej Vašek <[email protected]>

* Fix detection of host resolution failure

Signed-off-by: Matej Vašek <[email protected]>

---------

Signed-off-by: Matej Vašek <[email protected]>
  • Loading branch information
matejvasek authored Jan 21, 2025
1 parent 6c5b761 commit d2aa94d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-e2e-oncluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- name: E2E On Cluster Test
env:
E2E_RUNTIMES: ""
E2E_REGISTRY_URL: registry.default.svc.cluster.local:5000
FUNC_REPO_REF: ${{ github.event.pull_request.head.repo.full_name }}
FUNC_REPO_BRANCH_REF: ${{ github.head_ref }}
run: make test-e2e-on-cluster
Expand Down
3 changes: 2 additions & 1 deletion pkg/docker/pusher.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ func (n *Pusher) pushImage(ctx context.Context, f fn.Function, credentials Crede
if err == nil {
return digest, nil
}
if strings.Contains(err.Error(), "no such host") {
errStr := err.Error()
if strings.Contains(errStr, "no such host") || strings.Contains(errStr, "failure in name resolution") {
// push with custom transport to be able to push into cluster private registries
return n.push(ctx, f, credentials, output)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/pipelines/tekton/gitlab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestGitlab(t *testing.T) {
ns := usingNamespace(t)
t.Logf("testing in namespace: %q", ns)

funcImg := fmt.Sprintf("ttl.sh/func/fn-%s:5m", uuid.NewUUID())
funcImg := fmt.Sprintf("registry.default.svc.cluster.local:5000/fn-%s", uuid.NewUUID())

f := fn.Function{
Root: projDir,
Expand Down

0 comments on commit d2aa94d

Please sign in to comment.