Ta-Ching Chen and GitHub
5304be0d3c
Fix spec doesn't update status of failed package when applying spec files ( #1332 )
...
Previously, the spec doesn't update the package status if nothing
in the spec file changed. Due to this, the failed package will
always stay in the failed state.
This PR adds a check to see whether a package is in the failed state.
If yes, then changes the state to pending for builder manager to rebuild it.
2019-09-28 04:35:57 +08:00
Ta-Ching Chen and GitHub
1d5cb4e53c
Fix empty host value when list http triggers ( #1328 )
2019-09-28 00:28:14 +08:00
Ta-Ching Chen and GitHub
47723fcd18
List/Delete HTTP triggers by function ( #1327 )
...
Previously, a user has to delete HTTP triggers point to
the same function one by one. This PR adds new flag --function
to list & delete commands. So that user can delete or list all
triggers with the same function. However, this feature is not
working for triggers with canary deployment setup.
2019-09-27 17:21:11 +08:00
Ta-Ching Chen and GitHub
680eadd959
Add Ingress TLS support ( #1326 )
...
This PR aims to add the Ingress TLS support by specifying the
TLS secret when creating/updating the HTTP trigger.
Command example:
fission route create --name foo \
--url /foo/{bar} --function foofn --createingress \
--ingressannotation "nginx.ingress.kubernetes.io/ssl-redirect=false" \
--ingressannotation "nginx.ingress.kubernetes.io/use-regex=true" \
--ingressrule "*=/foo/*"
--ingresstls "foobartls"
2019-09-27 00:49:23 +08:00
Ta-Ching Chen and GitHub
4ba389cead
Add Ingress host, path and annotations support ( #1325 )
...
For each ingress controller, the format of ingress host,
path and annotations are different. To support different
kinds of controller, this PR adds new ingress config field
to http trigger spec. A user can set annotations, host and
path based on the type of underlying ingress controller
with CLI.
Command example:
fission route create --name foo \
--url /foo/{bar} --function foofn --createingress \
--ingressannotation "nginx.ingress.kubernetes.io/ssl-redirect=false" \
--ingressannotation "nginx.ingress.kubernetes.io/use-regex=true" \
--ingressrule "*=/foo/*"
2019-09-26 16:54:16 +08:00
Ta-Ching Chen and GitHub
85c757bd39
Set maxSurge to 20% for safe rolling upgrade ( #1321 )
2019-09-23 16:11:56 +08:00
Ta-Ching Chen and GitHub
b654bb1bdb
Disable revision history for newdeploy ( #1319 )
2019-09-23 14:25:49 +08:00
Ta-Ching Chen and GitHub
12061fe820
Fix newdeploy doesn't handle error properly ( #1316 )
2019-09-16 15:43:36 +08:00
Ta-Ching Chen and GitHub
7ba954417d
Fix failed to update specialization timeout ( #1315 )
2019-09-16 13:21:25 +08:00
Ta-Ching Chen and GitHub
2c95019257
Fix potential nil pointer problem when using multierror pkg ( #1311 )
2019-09-16 11:03:23 +08:00
Ta-Ching Chen and GitHub
8a8871ed97
Fix executor unable to list secrets/configmaps ( #1307 )
2019-09-11 10:47:20 +08:00
parauliya and Ta-Ching Chen
ff78137eb5
Configurable function level timeout ( #1284 )
2019-09-10 23:28:08 +08:00
Ta-Ching Chen and GitHub
7e9c3882bb
Add specialization timeout default value to CLI ( #1305 )
2019-09-10 17:24:35 +08:00
Ta-Ching Chen and GitHub
d0ca43cfa0
Refactor support dump CLI ( #1301 )
2019-09-04 14:42:47 +08:00
moluzhang and Ta-Ching Chen
fdadcc6e50
Support reverse query function for query log ( #1298 )
2019-09-02 18:02:07 +08:00
Ta-Ching Chen and GitHub
ca1702c85b
Fix unit tests failure ( #1297 )
2019-08-30 23:39:45 +08:00
David Sheldon and Ta-Ching Chen
135abe2bba
Fix environment version validation ( #1253 )
2019-08-30 19:02:18 +08:00
Vivek Singh and Ta-Ching Chen
bcad9f28b6
Support for providing multiple CMs and secrets in fn create/update ( #1282 )
2019-08-30 17:13:24 +08:00
Ta-Ching Chen and GitHub
2633a1cd0a
Bump Go version to 1.12 ( #1290 )
2019-08-28 13:47:40 +08:00
Ta-Ching Chen and GitHub
9b170f7d0c
Refactor environment CLI command ( #1265 )
2019-08-27 15:43:59 +08:00
Ta-Ching Chen and GitHub
bbff0445de
Update go dependencies ( #1240 )
...
NOTES for update k8s dependencies
In go.mod
require (
k8s.io/api kubernetes-x.x.x
k8s.io/apiextensions-apiserver kubernetes-x.x.x
k8s.io/apimachinery kubernetes-x.x.x
// check here https://github.com/kubernetes/client-go#compatibility-matrix
k8s.io/client-go v12.0.0+incompatible
)
2019-08-23 16:17:12 +08:00
Ta-Ching Chen and GitHub
ffc82efd04
Add swagger (OpenAPI 2.0) support ( #1245 )
...
* Add swagger (OpenAPI 2.0) support
* Gererate swagger_doc before building bundle image
2019-08-21 15:49:41 +08:00
Suraj Banakar and Ta-Ching Chen
161e084c8e
Fix typo "consumer" => "producer" ( #1278 )
2019-08-20 19:45:56 +08:00
Ta-Ching Chen and GitHub
cc25cc624d
Set full URL path to request header ( #1266 )
2019-08-20 16:44:21 +08:00
Suraj Banakar and Ta-Ching Chen
da74b8a86e
Fix typo "specialing" -> "specializing" ( #1275 )
2019-08-19 16:19:28 +08:00
Suraj Banakar and Ta-Ching Chen
6441320e73
Make NewDeployment specialization timeout configurable ( #1260 )
...
* Add specializationtimeout flag to function create/update
* Set specialization timeout of 120 seconds if not present
* Add default newdeploy timeout for rest of the test cases
* Comment out specialization timeout in validations for compatibility
* Add warning if specializationtimeout is lower than default value
2019-08-16 23:15:17 +08:00
cocoifly10 and Ta-Ching Chen
c69782b842
Fix Kafka message queue trigger panic problem caused by err.Error() ( #1271 )
...
fix bug: panic: runtime error: invalid memory address or nil pointer dereference
2019-08-14 17:07:29 +08:00
Ta-Ching Chen and GitHub
e63d7433c7
Allow to set deployment config uid during initialization ( #1249 )
2019-08-01 22:53:04 +08:00
Ta-Ching Chen and GitHub
88f645cc17
Fix wrongly replace spec api version ( #1254 )
2019-07-29 13:49:05 +08:00
David Sheldon and Ta-Ching Chen
f08883fda5
Revert change of product name in README ( #1250 )
2019-07-26 19:37:55 +08:00
Vishal and Ta-Ching Chen
a692656a1e
Function Update if config/secret changes ( #1224 )
...
* Config and secret change to invoke function update
* Added recycle function for pool manager as well - where it recycles the specialized pods
* Switched to rolling update of pods and env variable based change instead of deleting pods in new deploy executor
2019-07-23 09:27:43 +08:00
Ta-Ching Chen and GitHub
09df6c8e3e
Change log-level for better performance and less annoying logs ( #1231 )
...
This PR removes not so useful logs and changes most of Info level
log to Debug/Error level in hot path while preserving some of them
that is helpful for troubleshooting.
2019-07-19 12:38:36 +08:00
Ta-Ching Chen and GitHub
df7d30755e
Fix roundtripper doesn't increase request timeout setting after each retry ( #1216 )
2019-07-19 00:46:57 +08:00
David Sheldon and Ta-Ching Chen
b03892c400
Fix typo where "spec" is spelt "sepc" in some dump directories. ( #1239 )
2019-07-16 09:47:07 +08:00
Ta-Ching Chen and GitHub
49ce84cee3
Fix fetcher client doesn't handle error properly ( #1238 )
2019-07-15 21:01:32 +08:00
Ta-Ching Chen and GitHub
5ad8d837c8
Fix fetcher of newdeploy pod error out when starting up ( #1210 )
...
* Connect to k8s API server to ensure network connectivity
* Fix readiness probe path
2019-07-14 21:09:35 +08:00
Ta-Ching Chen and GitHub
14f1173a23
Make router keep-alive setting configurable ( #1225 )
2019-07-12 12:12:04 +08:00
Ta-Ching Chen and GitHub
32e1e688e4
Replace localhost with 127.0.0.1 to prevent DNS resolving problem ( #1227 )
2019-07-12 09:16:10 +08:00
Ta-Ching Chen and GitHub
801ca94240
Fix nil pointer when CLI unable to get server version ( #1223 )
2019-07-07 09:55:00 +08:00
Ta-Ching Chen and GitHub
e32cd61783
Allow to set log level through environment variable ( #1217 )
2019-07-07 04:39:42 +08:00
Ta-Ching Chen and GitHub
74e31fae05
Fix poolmanager specializes a function pod repeatedly if istio is enabled ( #1208 )
2019-07-03 11:26:35 +08:00
Ta-Ching Chen and GitHub
c9db33f116
Fix Istio-proxy cannot collect HTTP-level information ( #1209 )
2019-07-02 00:08:29 +08:00
Vishal and Ta-Ching Chen
4b309f7db3
Configmaps/secrets in function exist check ( #1214 )
2019-07-01 18:09:07 +08:00
cocoifly10 and Ta-Ching Chen
79ae010ea7
Modify code to make log collection comprehensive ( #1206 )
2019-06-24 16:33:42 +08:00
Ta-Ching Chen and GitHub
e4586a48a5
Fix executor panic problem when specialization timeout ( #1211 )
2019-06-20 13:56:02 +08:00
moluzhang and Ta-Ching Chen
9dcdffcdeb
[bugfix] Fix CLI drops controller URL path when querying logs ( #1201 )
2019-06-17 18:31:02 +09:00
Ta-Ching Chen and GitHub
a5eb87e46f
Fallback to get user home directory from env ( #1203 )
2019-06-05 12:56:30 +08:00
Ta-Ching Chen and GitHub
bd597cde0e
Add static code analysis to CI test ( #1197 )
2019-06-02 14:29:38 +08:00
Soam Vasani and Ta-Ching Chen
e4e68e22c3
Analytics bugfix ( #1195 )
2019-06-02 10:10:44 +08:00
Ta-Ching Chen and GitHub
2d5595e3de
Show warning message if spec alters poolsize while env version < 3 ( #1193 )
2019-05-31 17:49:56 +08:00