- try to find both from / to prov cluster
Also
- wrap creation of value in catch (just in case)
- only calc provClusterId once
Tested local cluster, imported cluster, rke1, rke2
* When execing into a container, try linux and windows commands when we can't determine if the node is windows
* Fix lint
* Lint: Remove trailing white space
* Use error message rather than last error
* extra failover, caching last working os against pod, errors, tests
* add __mocks__ folders to eslint ignore patterns
* standard user test fix
* removed unnecessary try/catch logic
* Revert "removed unnecessary try/catch logic"
This reverts commit c263131927.
---------
Co-authored-by: Sean <sean.mchugh@suse.com>
- the dashboard uses the kontainerdriver id for things like images, text and also to provide embedded ember with a key
- this works fine when the id is the type of kontainerdriver
- this doesn't if the kontainerdriver is custom and has a random id
- for these cases use the status.displayName to use as an id instead
* Move persistent volume constants and configurations away from model
* Add fallback for drivers with name only
* Enable support for CSI volume
* Prevent errors if no name is provided for route in CRUResource method
* Update test to check plugin options and value
* Update i18n
* Extension support for custom provisioning
* FIx lint issues
* Discovery / Tweaks
- fix issue where namespacesOverride was lost
- tidy up PROVIDER
- try to handle missing provider=type url param (could be missing extension-params)
- added a few comments to comments to come back to
* Names and typings
- change param --> customParam to make it clearer it's not url params
- add labels-annotations to shell types
* Wire in provider detailTabs
- as per original readme this should be made generic (extension point working directly with ResourceTabs)
* Update IClusterProvisioner & docs
* Improvements / Changes to support proving out DO extension
- cluster hooks optional
- buff up save hook (and pass in cluster when calling apply fn)
- move normalizeName into generic place
- bring back async create machine config
- hack for do extension (map example provider to do provider)
* updates, add optional saveCluster, add missing kube file
- saveCluster complements hooks, doesn't skip handling of addons, etc
- ensure register hooks take the `this` context in all worlds
* Adding docs
* Updates
- location config based changes
- change customParams to context
- add query param
- add new extention point to add tabs to cluster create cluster config section
- fixed some typing
- fixed issue where cluster was not passed to before / after hooks (only important if 'this' changes
* Changes following review, fix `t` in plugins
* Fix linting
* Docs updates, pass through more edit/view things
* Conditionally show the namespace grouping in the cluster list
- means users can differentiate between clusters with same name in different namespaces
- useful when clusters created via extension provisioner where ns can be selected
* docs tweaks, actually include the provisioning page in docs
---------
Co-authored-by: Richard Cox <richard.cox@suse.com>
* Add additional permission check for cluster and project member admin
* Fixes the projectMembership editor on the edit project page
* per-project filtering for managing project-members on cluster/project
* Fixed admin behavior, simplified PRTB mgmt check,
* Optimise code
- Exit from cluster part early if
- we're not ready to calc it
- we've already calc'd it
- Move back calc of per project current user permissions to original loop
- Exit from project part early if
- existing checks
- we've already approved the
---------
Co-authored-by: Richard Cox <richard.cox@suse.com>
- Cluster tab
- Remove prompt - Improved type name (Cluster Member --> Cluster Membership removes confusion with Cluster Member role)
- Projects tab
- Fixed delete of membership to group. This would just delete the first binding that didn't have a user and was of the correct role
- Remove prompt - Added name for projectroletemplatebinding type
- Use same padding on right of Add button as on the left of the table
- CRB List
- Removed custom header definition so native schema headers are used (with role)
* Add list of cases to be covered for the model tests
* Create test cases for Namespace
* Pass empty object when creating new Namespace
* Add test about projectId in Namespace
* Remove mock for CI
* Remove unnecessary code
This adds the following functionality to the violations list on the OPA Gatekeeper constraint detail page:
* Add a namespace column to the violations
* Make the violations list searchable
* Allow to download the violations as a CSV, similar to CIS scanner violations
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
- Use `SteveDescriptionModel` as base of PodSecurityAdmissionTemplate model
- Provide a generic mechanism for model save to tweak the object that's saved
- In SteveDescriptionModel ensure the object that's saved has the correct description
- Save worked for other users of class ... as they saved via norman rather than steve
Tweaks
- Removed duplicate PSACT definition
- Fixed width of PSACT table name / description columns
* Prevent to display PSP related banners if no PSP active
* Add custom API request for PSP
* Prevent PSP check on cluster creation
* Add PSPS type
* Correc PSP deprecation message on upgrade, to mention automatic removal
* Correct banner loading and exclude generic message
* Prevent check of PSP if the cluster is reconciling
* Remove deprecated logic about PSP templates check
* Restrict invalid PSP check only on k8s upgrade
* Handle nodeGroups undefined for manually imported RKE cluster.
* Forward part changes from #8222
---------
Co-authored-by: Neil MacDougall <nmacdougall@suse.com>