Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 2.48 KB

objects_role.md

File metadata and controls

43 lines (25 loc) · 2.48 KB

Creating Roles

The HULL Roles allow to have key value pair rules to define the rules.

⚠️ For downwards compatibility it is alternatively still possible to specify the rules as an array, however no mixed-style of arrays and key value pairs is possible! ⚠️

JSON Schema Elements

The hull.Role.v1 properties

Properties can be set as they are defined in the Kubernetes API's roles spec.

However the properties listed below are overwritten or added by HULL:

Parameter Description Default Example
rules Dictionary with PolicyRules to add to the ClusterRole's rules section.

Key:
Unique related to parent element.

Value:
The hull.PolicyRules.v1 properties. See below for reference.
{}

The hull.ClusterRole.v1 properties

Properties can be set as they are defined in the Kubernetes API's clusterroles spec.

However the properties listed below are overwritten or added by HULL:

Parameter Description Default Example
rules Dictionary with PolicyRules to add to the ClusterRole's rules section.

Key:
Unique related to parent element.

Value:
The hull.PolicyRules.v1 properties. See below for reference.
{}

The hull.PolicyRules.v1 properties

The key-value pairs of value type hull.PolicyRules.v1 are converted to an array on rendering

Properties can be set as they are defined in the Kubernetes API's policyrules spec.

However the properties listed below are overwritten or added by HULL:

Parameter Description Default Example
enabled Needs to resolve to a boolean switch, it can be a boolean input directly or a transformation that resolves to a boolean value. If resolved to true or missing, the key-value-pair will be rendered for deployment. If resolved to false, it will be omitted from rendering. This way you can predefine objects which are only enabled and created in the cluster in certain environments when needed. true

Back to README.md