Commit Graph

29 Commits

Author SHA1 Message Date
Vincent Fiduccia d1296e385d
Allow empty cluster name (#3798) 2021-08-17 02:16:37 -07:00
Phillip Rak 6ff31647b7 Check for upper and lower case in uri 2021-08-16 12:17:31 -07:00
Phillip Rak d20155a320 Add custom validator to check if server-url starts with https 2021-08-16 12:10:05 -07:00
Nancy Butler f3a7b9f0d5 validate cluster name for rke2 2021-08-03 16:59:49 -07:00
Richard Cox 2fdd87d790
Merge pull request #2785 from richard-cox/remove-non-resource-urls-namespaced
[2.6] Improve Role Required Indicators/Validation
2021-04-21 18:14:39 +01:00
Richard Cox a516fb3a9f Fix translation 2021-04-21 16:13:28 +01:00
Nancy Butler d4af6b12b4 check for empty container array 2021-04-21 07:41:56 -07:00
Richard Cox 0b2851032e Improve Role Required Indicators/Validation
- RBAC Role type improvements
  - Remove rule 'Non-Resource URL' field. RBAC role type is namespaced, non-resource url's are not.
  - Apply additional validation (
    - rule resource AND api group required, rather than default rule resource, non-resource url or api group required
    - name is required
  - Show Required indicator for all fields (reflecting validation)
- Other Role type improvements
  - Show Required indicator for rule Verbs field
    - This does mean that when the page initially loads we show an empty rule row with required fields... but user can ignore this and successfully save the role anyway. The alternative is to not show an empty rule to begin with... but this forces the user to `Add Resource`. I feel the later is more of an issue than the former.
  - name is required
2021-04-21 13:48:50 +01:00
Nancy Butler f79bec2723 fix sidecar indexing
fix container image validator

fix workload storage pvc namespace reactivity
2021-04-20 10:53:07 -07:00
Vincent Fiduccia 0524b95749
Only use individual exports of lodash 2021-03-17 23:02:49 -07:00
Cody Jackson 3963da0798 Adding validation to role template
- Ensuring that the verbs field is filled out

rancher/dashboard#2358
2021-03-15 11:52:14 -07:00
Nancy Butler c4bdaeb571 fix boolean validation 2021-02-02 18:48:57 -07:00
Nancy Butler 4f92b0218f fix ldap/saml add users and groups 2021-02-02 12:01:42 -07:00
Cody Jackson c94f3acde0 Small fixes to logging outputs
- Making logdna apiKey a required field
- Ensuring the ports are with a valid port range and changing it to min or max if it's not

rancher/dashboard#2075
rancher/dashboard#2074
2020-12-16 15:01:35 -07:00
Nancy Butler 196674a075 allow 0 replicas
clear env var fields when type changed

fix stdin/tty in workload create

no clone job

node/pod affinity re-do
2020-12-03 16:26:56 -07:00
Nancy Butler aac16915fe fix validation no affinity defined 2020-11-05 09:27:02 -07:00
Nancy Butler 2ea93d1be9 validate pod affinity/antiafiinity 2020-11-03 13:40:12 -07:00
Nancy Butler 71585a503e pr feedback 2020-10-29 13:45:37 -07:00
Nancy Butler 2ae4685e3b simple custom validators 2020-10-29 13:44:55 -07:00
Cody Jackson 0118e0c984 Adding the route alertmanager route type
- Extracted code that could be shared between route and receiver into an alertmanagerconfig util
- Added some more support code to allow users to dynamically add/remove uncreatableTypes

rancher/dashboard#1239
2020-10-27 16:10:01 -07:00
Westly Wright 6785a33aea
Change rule group label to start at one instead of zero
formatting
2020-10-23 15:51:57 -07:00
Westly Wright 564d7337ce
Prometheus Rules Custom UI Components 2020-10-23 15:25:03 -07:00
Westly Wright 37dec3ba6b
remove headless check as reaching this error is not possible in the UI 2020-10-20 10:59:26 -07:00
Westly Wright e45da6c823
PR feedback checking targetPort is number
removed a function that coerced target port to a number all the time which is not valid as it can be a string
2020-10-20 10:23:38 -07:00
Westly Wright aa33b16785
Service validation
Adds the following validation:
Service Ports - adds extra checks for port name, fixes invalid check for externalname services
ClusterIP - Conditional Checks on service types and ip none check
ExternalName
2020-10-20 08:58:18 -07:00
Cody Jackson 29aaa185e5 Adding validation to verify atleast one local or global output is selected
rancher/dashboard#
2020-10-02 15:06:05 -07:00
Vincent Fiduccia 94cb6a49d7
Use individual lodash modules 2020-07-10 11:25:45 -07:00
Westly Wright 69452c7154
review feedback 2020-06-15 11:55:16 -07:00
Westly Wright 96c951f262
Adds client side validation
Supports basic scalar types string, int, bool, array etc
Supports custom validation logic

Adds initial service validations
Adds additional error processing logic to better parse Kubernetes api errors

Fixes some minor bugs found while writing custom validtion for service

rancher/dashboard#189
2020-06-15 08:57:35 -07:00