zees-dev
665bf2c887
feat(kubernetes/shell): kubectl web shell and kubeconfig functionality EE-448 ( #5229 )
...
* feat(kubernetes/shell): backport kubectl shell backend functionality EE-849 (#5168 )
* backported core backend kubectl shell functionality
* - backported kubectl shell unit tests
- backported k8s cli interface update
- backported k8s client library fake patch
* refactored backend to match EE
* fixed test error typo
* GetServiceAccountName -> GetServiceAccount - making the function reusable in multiple contexts
* feat(kubernetes/shell): backport kubeconfig generation backend functionality EE-1004 (#5213 )
* backported core backend kubectl shell functionality
* refactored backend to match EE
* - backported kubernetes backend handler implementation
- backported kubernetes config endpoint
- backported kubeconfig file generation
- backported kubeconfig and yaml unit tests
- backported updates to kubeclient interfaces
* feat(app): kubectl shell ui backport EE-927 (#5221 )
* Kubectl UI backport to CE
* fix authentication redirect issue
* comment out redirect function
* fix shell full width & change name of shell
* disable button when terminal connected
* fixed whitespace changes for css
* fixed whitespace changes for html
* linting fixes
Co-authored-by: zees-dev <dev.786zshan@gmail.com>
* feat(kubernetes/shell): backport of kubeconfig export functionality EE-926 (#5228 )
* EE backport of kubeconfig UI functionality
* using angularjs constant instead of hardcoded URL
* updated portainer kubectl shell image
* fix kubectl button position issue in ce
* fix pod keep running when switching page
* feat(app): Kubectl shell ui EE-833 EE-1099 (#5271 )
* fix kubectl shell css
* fix mini css issue
* fix tech issue for ui changes from review
* delete unuse file
* - refactored variable names
- restored content-wrapper scroll
- created object to store wrapper css
Co-authored-by: zees-dev <dev.786zshan@gmail.com>
* addressing PR issues
* fix required changes from tech reviews (#5319 )
* fix required changes from tech reviews
* remove unuse css variable
* component refactor accoridng to PR and style guidelines
Co-authored-by: zees-dev <dev.786zshan@gmail.com>
* removed redundant dockerhub api endpoint variable
* - autoHeight -> terminal-window
- removed redundant try-catch
- saving config.yaml file as config
* fix(kube/shell): show error on failure
* fixed default https bug
* resolved merge conflicts
Co-authored-by: Richard Wei <54336863+WaysonWei@users.noreply.github.com>
Co-authored-by: richard <richard@richards-iMac-Pro.local>
Co-authored-by: Chaim Lev-Ari <chiptus@gmail.com>
2021-08-05 15:02:06 +12:00
zees-dev
ce31de5e9e
feat(kubernetes/resource-usage): k8s resource usage for cluster, node and namespace EE-3 EE-1112 ( #5301 )
...
* backported resource usage functionality from EE
* utilising view bound endpoint object instead of depracated EndpointProvider
* refactor flatmap
* addressed merge conflict issues
2021-07-28 14:26:03 +12:00
dbuduev
7d6b1edd48
feat(k8s): Introduce the ability to restrict access to default namespace (EE-745) ( #5337 )
2021-07-23 17:10:46 +12:00
Chaim Lev-Ari
6a9b386df8
fix(kube/nodes): show node events ( #5246 )
2021-07-20 16:49:33 +03:00
fhanportainer
308f828446
fix(k8s): fixed generating kube auction summary issue ( #5331 )
2021-07-19 19:45:20 +12:00
Chaim Lev-Ari
89756b2e01
fix(kube/app): show resource allocation ( #5317 )
2021-07-19 10:44:48 +03:00
LP B
179df06267
feat(app): rework private registries and support private registries in kubernetes EE-30 ( #5131 )
...
* feat(app): rework private registries and support private registries in kubernetes
[EE-30]
feat(api): backport private registries backend changes (#5072 )
* feat(api/bolt): backport bolt changes
* feat(api/exec): backport exec changes
* feat(api/http): backport http/handler/dockerhub changes
* feat(api/http): backport http/handler/endpoints changes
* feat(api/http): backport http/handler/registries changes
* feat(api/http): backport http/handler/stacks changes
* feat(api/http): backport http/handler changes
* feat(api/http): backport http/proxy/factory/azure changes
* feat(api/http): backport http/proxy/factory/docker changes
* feat(api/http): backport http/proxy/factory/utils changes
* feat(api/http): backport http/proxy/factory/kubernetes changes
* feat(api/http): backport http/proxy/factory changes
* feat(api/http): backport http/security changes
* feat(api/http): backport http changes
* feat(api/internal): backport internal changes
* feat(api): backport api changes
* feat(api/kubernetes): backport kubernetes changes
* fix(api/http): changes on backend following backport
feat(app): backport private registries frontend changes (#5056 )
* feat(app/docker): backport docker/components changes
* feat(app/docker): backport docker/helpers changes
* feat(app/docker): backport docker/views/container changes
* feat(app/docker): backport docker/views/images changes
* feat(app/docker): backport docker/views/registries changes
* feat(app/docker): backport docker/views/services changes
* feat(app/docker): backport docker changes
* feat(app/kubernetes): backport kubernetes/components changes
* feat(app/kubernetes): backport kubernetes/converters changes
* feat(app/kubernetes): backport kubernetes/models changes
* feat(app/kubernetes): backport kubernetes/registries changes
* feat(app/kubernetes): backport kubernetes/services changes
* feat(app/kubernetes): backport kubernetes/views/applications changes
* feat(app/kubernetes): backport kubernetes/views/configurations changes
* feat(app/kubernetes): backport kubernetes/views/configure changes
* feat(app/kubernetes): backport kubernetes/views/resource-pools changes
* feat(app/kubernetes): backport kubernetes/views changes
* feat(app/portainer): backport portainer/components/accessManagement changes
* feat(app/portainer): backport portainer/components/datatables changes
* feat(app/portainer): backport portainer/components/forms changes
* feat(app/portainer): backport portainer/components/registry-details changes
* feat(app/portainer): backport portainer/models changes
* feat(app/portainer): backport portainer/rest changes
* feat(app/portainer): backport portainer/services changes
* feat(app/portainer): backport portainer/views changes
* feat(app/portainer): backport portainer changes
* feat(app): backport app changes
* config(project): gitignore + jsconfig changes
gitignore all files under api/cmd/portainer but main.go and enable Code Editor autocomplete on import ... from '@/...'
fix(app): fix pull rate limit checker
fix(app/registries): sidebar menus and registry accesses users filtering
fix(api): add missing kube client factory
fix(kube): fetch dockerhub pull limits (#5133 )
fix(app): pre review fixes (#5142 )
* fix(app/registries): remove checkbox for endpointRegistries view
* fix(endpoints): allow access to default namespace
* fix(docker): fetch pull limits
* fix(kube/ns): show selected registries for non admin
Co-authored-by: Chaim Lev-Ari <chiptus@gmail.com>
chore(webpack): ignore missing sourcemaps
fix(registries): fetch registry config from url
feat(kube/registries): ignore not found when deleting secret
feat(db): move migration to db 31
fix(registries): fix bugs in PR EE-869 (#5169 )
* fix(registries): hide role
* fix(endpoints): set empty access policy to edge endpoint
* fix(registry): remove double arguments
* fix(admin): ignore warning
* feat(kube/configurations): tag registry secrets (#5157 )
* feat(kube/configurations): tag registry secrets
* feat(kube/secrets): show registry secrets for admins
* fix(registries): move dockerhub to beginning
* refactor(registries): use endpoint scoped registries
feat(registries): filter by namespace if supplied
feat(access-managment): filter users for registry (#5191 )
* refactor(access-manage): move users selector to component
* feat(access-managment): filter users for registry
refactor(registries): sync code with CE (#5200 )
* refactor(registry): add inspect handler under endpoints
* refactor(endpoint): sync endpoint_registries_list
* refactor(endpoints): sync registry_access
* fix(db): rename migration functions
* fix(registries): show accesses for admin
* fix(kube): set token on transport
* refactor(kube): move secret help to bottom
* fix(kuberentes): remove shouldLog parameter
* style(auth): add description of security.IsAdmin
* feat(security): allow admin access to registry
* feat(edge): connect to edge endpoint when creating client
* style(portainer): change deprecation version
* refactor(sidebar): hide manage
* refactor(containers): revert changes
* style(container): remove whitespace
* fix(endpoint): add handler to registy on endpointService
* refactor(image): use endpointService.registries
* fix(kueb/namespaces): rename resource pool to namespace
* fix(kube/namespace): move selected registries
* fix(api/registries): hide accesses on registry creation
Co-authored-by: LP B <xAt0mZ@users.noreply.github.com>
refactor(api): remove code duplication after rebase
fix(app/registries): replace last registry api usage by endpoint registry api
fix(api/endpoints): update registry access policies on endpoint deletion (#5226 )
[EE-1027]
fix(db): update db version
* fix(dockerhub): fetch rate limits
* fix(registry/tests): supply restricred context
* fix(registries): show proget registry only when selected
* fix(registry): create dockerhub registry
* feat(db): move migrations to db 32
Co-authored-by: Chaim Lev-Ari <chiptus@gmail.com>
2021-07-14 21:15:21 +12:00
cong meng
33b428eb7f
EE-1110 Ingress routes and their mapping to a application name are not deleted when the application is deleted ( #5291 )
...
Co-authored-by: Simon Meng <simon.meng@portainer.io>
2021-07-09 10:41:04 +12:00
fhanportainer
d48f6bd02c
fix(ingress): fixed hostname field when having multiple ingresses EE-1072 ( #5273 )
2021-07-05 18:17:20 +12:00
Richard Wei
8b80eb1731
fix(app):Set resource assignment default to off EE-1043 ( #5248 )
...
test passed.
2021-06-30 19:15:28 +12:00
Hui
caa6c15032
feat(k8s): advanced deployment from Git repo EE-447 ( #5166 )
...
* feat(stack): UI updates in git repo deployment method for k8s EE-640. (#5097 )
* feat(stack): UI updates in git repo deployment method for k8s EE-640.
* feat(stack): supports the combination of GIT + COMPOSE.
* feat(stack): rename variable
* feat(stack): add git repo deployment method for k8s EE-638
* cleanup
* update payload validation rules
* make repo ref optional in frond end
Co-authored-by: fhanportainer <79428273+fhanportainer@users.noreply.github.com>
2021-06-16 23:47:32 +02:00
yi-portainer
6a88c2ae36
Merge branch 'release/2.5' into develop
2021-06-16 17:31:00 +12:00
Alice Groux
7f96220a09
feat(k8s/advanced-deployment): allow standard users to see and use advanced deployment feature EE-446 ( #5050 )
2021-06-16 17:28:44 +12:00
cong meng
296ecc5960
fix(k8s) Adding a Kube app does not allow Global to be set after removing persisted folder EE-563 ( #5143 )
...
Co-authored-by: Simon Meng <simon.meng@portainer.io>
2021-06-15 15:53:31 +12:00
cong meng
dc180d85c5
Feat 4612 real time metrics for kube nodes ( #4708 )
...
* feat(k8s/node): display realtime node metrics GH#4612
* feat(k8s): show observation timestamp instead of real timestamp GH#4612
Co-authored-by: Simon Meng <simon.meng@portainer.io>
2021-06-14 12:29:41 +12:00
Maxime Bajeux
45ceece1a9
feat(application): Invalid environment variable form validation when creating an application ( #5019 )
2021-06-14 11:06:54 +12:00
zees-dev
eae2f5c9fc
feat(kubernetes/summary): summary of k8s actions upon deploying/updating resources EE-436 ( #5137 )
...
* feat EE-440/EE-436 kubernetes-resources-summary-panel
* bugfix: returning created resources after update
* fixed patch based bugs - displaying accurate updates for k8s resources
Co-authored-by: Simon Meng <simon.meng@portainer.io>
2021-06-10 10:38:23 +12:00
cong meng
1f2a90a722
fix(frontend): When a docker endpoint is selected, configuring a newly added k8s agent fails EE-821 ( #5115 )
...
* fix(frontend): When a docker endpoint is selected, configuring a newly added k8s agent fails EE-821
* fix(frontend): restore endpointID in a finally block EE-821
Co-authored-by: Simon Meng <simon.meng@portainer.io>
2021-06-09 21:54:36 +02:00
testA113
2fb17c9cf9
Merge pull request #4983 from portainer/feat/EE-352/CE-truncate-image-name-in-tables
...
feat(k8s): truncate image name in tables
2021-06-04 15:20:26 +12:00
Alice Groux
b8660ed2a0
feat(k8s/applications): reorder placement policies and select mandatory by default ( #5063 )
2021-06-03 13:42:44 +02:00
Chaim Lev-Ari
230f8fddc3
fix(kube): replace remaining resource pool texts
2021-06-01 11:56:47 +03:00
Chaim Lev-Ari
6734f0ab74
feat(k8s): replace resource pool with name space
2021-06-01 11:52:05 +03:00
Chaim Lev-Ari
3e60167aeb
feat(k8s/applications): default to isolated application
2021-06-01 11:52:05 +03:00
Chaim Lev-Ari
8a4902f15a
feat(k8s/applications): rephrase descriptions
2021-06-01 11:52:05 +03:00
yi-portainer
2270de73ee
Merge branch 'release/2.5' into develop
2021-05-24 08:53:10 +12:00
Felix Han
5618794927
fix(k8s-config): check for config editor change before setting as dirty
2021-05-20 11:46:17 +12:00
yi-portainer
af03d91e39
Merge branch 'release/2.5' into develop
2021-05-18 17:02:31 +12:00
Chaim Lev-Ari
b7980f1b60
fix(k8s/ingress): remove only selected ingress ( #5035 )
...
* fix(k8s/ingress): remove only selected ingress
* fix(k8s/ingress): remove ingress from namespace
2021-05-07 09:49:56 +12:00
Alice Groux
d99358ea8e
feat(k8s/container): realtime metrics ( #4416 )
...
* feat(k8s/container): metrics layout
* feat(k8s/container): memory graph
* feat(k8s/container): cpu usage percent
* feat(k8s/metrics): metrics api validation to enable metrics server
* feat(k8s/pods): update error metrics view
* feat(k8s/container): improve stopRepeater function
* feat(k8s/pods): display empty view instead of empty graphs
* feat(k8s/pods): fix CPU usage
* feat(k8s/configure): fix the metrics server test
* feat(k8s/pod): fix cpu issue
* feat(k8s/pod): fix toaster for non register pods in metrics server
* feat(k8s/service): remove options before 30 secondes for refresh rate
* feat(k8s/pod): fix default value for the refresh rate
* feat(k8s/pod): fix rebase
2021-04-29 13:10:14 +12:00
Alice Groux
befccacc27
feat(k8s/ingress): create multiple ingress network per kubernetes namespace ( #4464 )
...
* feat(k8s/ingress): introduce multiple hosts per ingress
* feat(k8s/ingress): host selector in app create/edit
* feat(k8s/ingress): save empty hosts
* feat(k8s/ingress): fix empty host
* feat(k8s/ingress): rename inputs + ensure hostnames unicity + fix remove hostname and routes
* feat(k8s/ingress): fix duplicates hostname validation
* feat(k8s/application): fix rebase
* feat(k8s/resource-pool): fix error messages for ingress (wip)
* fix(k8s/resource-pool): ingress duplicates detection
2021-04-28 05:51:13 +12:00
alice groux
872a8262f1
feat(k8s): add full name on hovering over the image name
2021-04-14 14:59:17 +02:00
alice groux
c339afb562
feat(k8s): cut image name to 64 chars with truncate filter in all applications datatables
2021-04-13 16:09:37 +02:00
Lukas Grotz
d09ae22ba8
feat(container): add sysctls setting in the container view ( #4910 )
...
* feat(container): add sysctls in the container view (#2756 )
* feat(container): add setting to restrict sysctl access
* feat(endpoint): move sysctl disable setting to security settings
* feat(container): add sysctls to container edit view
* fix(container) remove unnecessary migration setting
Co-authored-by: Owen Kirby <oskirby@gmail.com>
2021-04-12 19:40:45 +12:00
Chaim Lev-Ari
f5aa6c4dc2
feat(docker): show docker pull rate limits ( #4666 )
...
* feat(dockerhub): introduce local status endpoint
* feat(proxy): rewrite request with dockerhub credentials
* feat(endpoint): check env type
* feat(endpoint): check for local endpoint
* feat(docker): introduce client side service to get limits
* feat(container): add info about rate limits in container
* feat(dockerhub): load rate limits just for specific endpoints
* feat(images): show specific dockerhub messages for admin
* feat(service-create): show docker rate limits
* feat(service-edit): show rate limit messages
* fix(images): fix loading of page
* refactor(images): move rate limits check to container
* feat(kubernetes): proxy agent requests
* feat(kubernetes/apps): show pull limits in application creation
* refactor(image-registry): move warning to end of field
* fix(image-registry): show right message for admin
* fix(images): silently fail when loading rate limits
* fix(kube/apps): use new rate limits comp
* fix(images): move rate warning to end
* fix(registry): move search to right place
* fix(service): remove service warning
* fix(endpoints): check if kube endpoint is local
2021-03-24 19:27:32 +01:00
Chaim Lev-Ari
d1a21ef6c1
fix(home): redirect home if edge endpoint is down ( #4670 )
...
* fix(home): redirect home if edge endpoint is down
* fix(kubernetes): rephrase error message when endpoint is down
Co-authored-by: Anthony Lapenna <anthony.lapenna@portainer.io>
Co-authored-by: Anthony Lapenna <anthony.lapenna@portainer.io>
2021-03-23 21:38:30 +01:00
Chaim Lev-Ari
c542964073
fix(kuberenetes/deploy): use default resource pool ( #4674 )
2021-03-22 23:35:17 +01:00
Yi Chen
572b64b68e
Merge changes from release 2.2 ( #4930 )
...
* fix windows build
* fix(endpoints): show correct values of security settings (#4889 )
* fix(app): EndpointProvider fallback on URL EndpointID when no endpoint is selected (#4892 )
* fix(templates): App templates not loading with error in browser console (#4895 )
* fix(kube/config): show used key warning when needed (#4890 )
fix [CE-469]
- recalculate duplcate keys when they are changed
- show used warning on duplicate keys
* fix(k8s): CE-471 variables from configuration showing on environment variables section on application edit screen (#4896 )
* fix(k8s): CE-471 variables from configuration showing on environment variables section on application edit screen
* fix(k8s): CE-471 avoid to remove value path of env when patch k8s deployment, as the value path does not exist if env variable has empty value.
Co-authored-by: Simon Meng <simon.meng@portainer.io>
Co-authored-by: Dmitry Salakhov <to@dimasalakhov.com>
Co-authored-by: Chaim Lev-Ari <chiptus@users.noreply.github.com>
Co-authored-by: LP B <xAt0mZ@users.noreply.github.com>
Co-authored-by: Maxime Bajeux <max.bajeux@gmail.com>
Co-authored-by: cong meng <mcpacino@gmail.com>
Co-authored-by: Simon Meng <simon.meng@portainer.io>
2021-03-23 08:58:11 +13:00
Alice Groux
a7ed6222b0
feat(app): Prevent web editor related views from being accidentally closed ( #4715 )
...
* feat(app): when leaving a view with unsaved changed, a modal prompt the user with a confirmation message
feat(app): when leaving a view with unsaved changes, a modal prompt the user with a confirmation message
* feat(app/web-editor): fix the modal behaviour when editing a stack details
* feat(app/web-editor): add a reusable function confirmWebEditorDiscard in modal service
* feat(docker/stack): fix missing dependency
2021-03-20 22:13:27 +01:00
Maxime Bajeux
32a9a2e46b
Enable the ability to cordon/uncordon/drain nodes ( #4723 )
...
* feat(node): Enable the ability to cordon/uncordon/drain nodes
* feat(cluster): check if there is a drain operation somewhere
* feat(kubernetes): allow to cordon, uncordon, drain nodes
* refacto(kubernetes): set a constant for drain label name
* fix(node): Relocate the warning message next to the dropdown and change the information message
2021-03-15 22:36:14 +01:00
Maxime Bajeux
660bc2dadf
fix(service): change application owner label in createPayload ( #4841 )
2021-03-14 22:48:17 +01:00
cong meng
f2faccdb10
feat(k8s): better form validation for configuration keys ( #4728 ) ( #4733 )
...
Co-authored-by: Simon Meng <simon.meng@portainer.io>
2021-02-27 01:53:47 +01:00
Alice Groux
ccf6babc02
refactor(app): backport technical changes ( #4679 )
...
* refactor(app): backport technical changes
* refactor(app): remove EE only features
* feat(app): small review changes to match EE codebase layout on some files
Co-authored-by: xAt0mZ <baron_l@epitech.eu>
2021-02-26 16:50:33 +01:00
Alice Groux
59faec45ce
feat(k8s/application): add the ability to redeploy external application ( #4704 )
...
* feat(k8s/application): add the ability to redeploy external application
* feat(k8s/application): remove extra whitespace for pod application
2021-02-25 12:12:17 +01:00
Eduardo Brito
d84a5b9c67
feat(yaml-inspector): add button to expand/collapse yaml inspector ( #4007 ) ( #4828 )
...
* #4007 feat(yaml-inspector): add button to expand/collapse yaml inspector
* feat(yaml-inspector): add button to expand/collapse yaml inspector
Better yamlInspector.html formatting
* feat(yaml-inspector): change name of toggle function
More descriptive name for the function that toggles the expansion of the YAML inspector.
2021-02-23 22:02:36 +01:00
Chaim Lev-Ari
20f8d03366
feat(k8s/config): disable edit used config keys ( #4754 )
...
* feat(k8s/config): tag used data keys
* feat(k8s/config): disabled edit of used data keys
2021-02-23 12:53:33 +13:00
Alice Groux
44b6aaedc8
feat(k8s/application): display all environment variables in edition ( #4860 )
2021-02-23 11:44:40 +13:00
Maxime Bajeux
cc9dd55b5c
fix(application): Can't update application with persisted data, after the storage option is disabled on cluster ( #4861 )
...
* fix(application): Can't update application with persisted data, after the storage option is disabled on cluster
* refacto(application): Some code extraction requested for better maintenance
2021-02-23 08:05:43 +13:00
Alice Groux
387bbeceba
feat(app): sort environment variables ( #4815 )
...
* feat(app): sort environment variables
* feat(k8s/application): improve the sorting for the env variables when creating/editing application
* feat(k8s/application): update the removal of the env var
* feat(docker/service): improve the sorting order for env var in service edition view
2021-02-18 14:46:26 +01:00
cong meng
86335a4357
fix(ingress): remove associated ingresses while removing ingress controller ( #4722 ) ( #4780 )
...
Co-authored-by: Simon Meng <simon.meng@portainer.io>
2021-02-18 14:52:59 +13:00
Chaim Lev-Ari
0cfa912d77
feat(kube/app): show image pull policy ( #4785 )
...
* feat(kube/app): show image pull policy
* fix(kube/app): remove image pull policy
* feat(kube/apps): show container image pull policy
2021-02-12 13:59:20 +13:00