Commit Graph

22 Commits

Author SHA1 Message Date
Vincent Fiduccia 31ea3b138e
Eslint changes new nuxt defaults want 2020-05-28 14:22:52 -07:00
Cody Jackson 2417c11cd3 Adding translations for constraints and nodes 2020-05-12 09:24:04 -07:00
Nancy Butler ec1a7819d4 pass mode prop to resourcetabs 2020-04-27 09:58:33 -07:00
Vincent Fiduccia 4a8d34fa95
Merge pull request #551 from mantis-toboggan-md/labels-annotations-consistency
labels and annotations consistent on every create/detail page
2020-04-26 14:49:19 -05:00
Vincent Fiduccia 8bf1f45bca
Merge pull request #536 from codyrancher/template-switcher
Disable editing a constraint's constraint template
2020-04-26 14:46:41 -05:00
Cody Jackson ab70740ff9 Disable editing a constraint's constraint template
Editing a constraint's constraint template would require us to delete
the existing constraint and create a new one transactionally. Since
the backend doesn't support this transaction of we're disabling the ability
to edit which template is being used.

I also noticed a number of inconcictencies and poor behaviors
with the LabeledSelect component so I went ahead and made
it consistent with LabeledInput.
- The search field switched to a color distinct from the rest of the container
  when disabled and hovered.
- There wasn't a focus outline.
- The size was slightly different because it was in a container
- There was a distinct background color around the arrow indicator

rancher/dashboard#433
2020-04-24 16:25:01 -07:00
Nancy Butler d58f0a59ad fix linting error 2020-04-24 15:16:15 -07:00
Nancy Butler 8222932a27 resourcetabs component for labels and annotations on every CRU page 2020-04-24 15:10:24 -07:00
Nancy Butler b8a996c43f revert NameNsDescription and filter annotations, labels in create-edit-view 2020-04-24 12:04:15 -07:00
Nancy Butler 6249c766ab placeholder visibility
secret type display in edit form

add custom secret types

description as prop in namens

secret styling

service account link in list view for service acct token secrets
2020-04-24 12:04:15 -07:00
Cody Jackson 2cc259d241 Remove new yaml serialization
Adding serialization to the scope of the currently pr has become
slightly unwieldy. I'm going to put the serialization into a separate
pr.
2020-04-15 10:00:09 -07:00
Cody Jackson fea71ffae2 Refactored YAML editing to better support parameters
We needed a way to support arbitrarily complex parameters in both
type and nesting level. As a temporary solution I enabled the user
to toggle between a key value component and a yaml editor.

To enable this I refactored ResourceYaml into a composable YamlEditor
component that can be used elsewhere.

rancher/dashboard#388
rancher/dashboard#380
2020-04-15 09:53:24 -07:00
Cody Jackson 30cc6e3053 Namespace filtering and type editing
- Make system namespaces a part of the excluded namespaces match by default.
- Remove system namespaces from the options of namespace match
- Ensure that the types are getting edited appropriately.

rancher/dashboard#455
rancher/dashboard#503
2020-04-13 14:53:21 -07:00
Vincent Fiduccia 780647a15d
Merge branch 'master' into namespaces 2020-03-26 16:31:01 -07:00
Vincent Fiduccia c8b886c484
Merge pull request #430 from codyrancher/api-groups
Adding ApiGroups to Constraints by default
2020-03-26 16:29:04 -07:00
Cody Jackson f7dad4c923 Removing namespaces from match when empty
There's an upstream issue which prevents gatekeeper from processing
namespaces with empty lists incorrectly. We need to remove the
namespaces field if it's empty.
https://github.com/open-policy-agent/gatekeeper/issues/508
2020-03-26 13:58:40 -07:00
Cody Jackson dda4e5f2d6 Adding ApiGroups to Constraints by default
rancher/dashboard#387
2020-03-26 13:44:23 -07:00
Cody Jackson 797c038d4d Adding ApiGroups to Constraints by default
rancher/dashboard#387
2020-03-26 13:27:05 -07:00
Cody Jackson 1a5d557d07 Adding enforcement action param to constraints
rancher/dashboard#390
2020-03-26 10:56:37 -07:00
Cody Jackson a84968ef68 Fix Selectors according to the selected operation
The set operators should not have a values field when getting saved.

rancher/dashboard#404
2020-03-25 15:29:17 -07:00
Cody Jackson 7d7e3b60b7 Updated the gatekeeper constraints and templates
this should better reflect the new Mocks.

rancher/dashboard#305
2020-03-15 01:34:30 -07:00
Cody Jackson 1265853652 Implement the view, create and edit pages for constraints
This implementst the view, create and edit pages for the
gatekeeper constraints. The constraint templates weren't
touched since we intend to only use the yaml editor.

rancher/dashboard#307
2020-03-02 12:43:39 -07:00