Commit Graph

26 Commits

Author SHA1 Message Date
Matej Vasek 15368599cd
chore: linkage assignable socatImage (#1266)
var can be set at build (link) time as opposed to const

Signed-off-by: Matej Vasek <mvasek@redhat.com>

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-21 04:34:09 +00:00
Matej Vasek 427d453f81
chore: dialer improvements (#1232)
* Relaxed test condition.
* Independence of `socat` image entrypoint.
* The `socat` image is configurable via environment variable.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-12 19:26:46 +00:00
Gab Satchi 7e96146840
Adds labels and annotations from func.yaml to pipeline resources (#1205)
* adds labels from func.yaml to pipeline resources

* Unify function labels across resources (kService and tekton pipelines)

* Adds function annotations to pipeline resources

* Remove refactored function
2022-09-09 12:48:25 +00:00
Matej Vasek fee8dfcb0c
fix: in cluster dialer security context is non-privileged (#1181)
* fix: in cluster dialer sec.ctx. is non-privileged

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: drop all capabilities

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: seccomp

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: unset seccomp profile type

the seccomp profile type must be empty for osh 4.10

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: suppress warnings

Signed-off-by: Matej Vasek <mvasek@redhat.com>

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-09-06 15:37:43 +00:00
Matej Vasek bbfb3e9f98
Use socat image from quay.io (#987)
Rationale: avoid docker.io pull limit.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-04-21 15:42:30 +00:00
Zbynek Roubalik 36cfef726f
Print logs if Pipeline Run fails (#943)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-04-05 16:07:44 +00:00
Zbynek Roubalik e9251f518c
feat: on cluster build doens't require privileged cluster permissions (#934)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-04-05 12:52:43 +00:00
Matej Vasek 669329f02f
Improve error handling (#916)
* replaced plain `==` by `error.Is()`
* wrapping some more errors using `fmt.Errorf()`

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-03-22 17:18:17 -07:00
Zbynek Roubalik c60079d792
🐛 allow adding environment variables without a cluster connection (#893)
* allow adding environment variables without a cluster connection

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

* add tests

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

* use k8s clientcmd

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2022-03-16 07:20:00 -07:00
Zbynek Roubalik d478f555cc
feat: delete pipeline and resources with `func delete` (#763)
* feat: delete pipeline and resources with `func delete`

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* fix test and prompt

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2022-01-24 12:39:29 -08:00
Matej Vasek 8ceb325142
Enable custom CA for specified server names (#770)
* src: refactor

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* src: Allow usage of custom CA for

Allows TLS verify against custom CA for chosen server names.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: style

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: lint

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: cleanup

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2022-01-21 06:50:04 -08:00
Zbynek Roubalik bddac30621
feat: add `function.knative.dev/name: functionName` label to every resouce created for a Function (#757)
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2022-01-13 10:19:11 -08:00
Zbynek Roubalik f06fd97759
src: simplyfing Knative Deployer RoleBinding (#759)
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2022-01-13 08:21:12 -08:00
Zbynek Roubalik cb719ff564
feat!: support on cluster build from git repo with Tekton (#743)
* feat: support on cluster build from git repo with Tekton

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* incorporate feedback

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* incorporate feedback 2

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* fixup-licence

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix deploy with --build=disabled

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* incorporate feedback

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* incorporate feedback

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

Co-authored-by: Matej Vasek <mvasek@redhat.com>
2022-01-12 11:58:51 -08:00
Matej Vasek a13f897fbb
feat: custom default HTTP transport (#711)
* src: dialer pod auto-exit

The pod should exit (be Completed) when func exits.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* feat: use in cluster dialer by default

This sets http.DefaultTransport to our specialized RoundTripper.
The RoundTripper first tries dial in standard way.
If dial operation fails due to hostname resolution error
in cluster dialer will be used.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-12-10 02:31:29 -08:00
Matej Vasek 49883545c8
Fix dialer test (#713)
* src: randomize testing namespace

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* src: test wait for servise

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixes pre review request

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-12-09 15:59:28 -08:00
Matej Vasek 98ef5a0035
feat: In cluster dialer to proxy TCP connections to unexposed services (#688)
* src: in cluster dialer

Added code that will proxy TCP connections via in cluster pod.
This is useful for accessing k8s services that are not exposed.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: increase timeouts

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: decrease test iterations

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* Use official image

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2021-12-06 13:50:56 -08:00
Fabian Lopez 7b80790bc9
Fix deployment on k8s cloud providers (#563)
* fix deployment on k8s cloud providers

* ran update codegen
2021-10-05 13:34:45 -07:00
Lance Ball 71368c6a1d
chore: update files with goimport (#513)
* chore: update files with goimport

This should get https://github.com/knative-sandbox/kn-plugin-func/pull/509
happy and green.

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: remove extraneous print statements

Signed-off-by: Lance Ball <lball@redhat.com>
2021-09-08 06:53:45 -07:00
Zbynek Roubalik 4ba95b69a8
feat: `func config volumes` - interactive prompt (#391)
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-06-17 09:21:07 +02:00
Zbynek Roubalik 541e8586f7
feat: function name matches KService name (#317)
* feat: function name matches KService name

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* fix typo

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-04-26 10:13:32 +02:00
Luke Kingland ddf4ab86c4
feat: integration tests target 2021-03-10 19:35:27 +09:00
Zbynek Roubalik 025862689e
feat: decouple function name from function domain (#127)
* decouple function name from function domain

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2020-09-24 09:52:22 -04:00
Luke K 23308783cd
moved cluster config notes and yamls to dedicated config repo 2020-04-15 16:57:44 +00:00
Luke K 38dd3dd6cf
network and domain kube configs 2020-04-11 19:41:42 +00:00
Luke K a4565d497f
initialize using a k8s-friendly name derived from full service name 2020-04-11 19:30:47 +00:00