Skip to content

Commit

Permalink
Fix parameter context policy resource (konpyutaika#443)
Browse files Browse the repository at this point in the history
* Fix parameter context policy resource

* Update CHANGELOG
  • Loading branch information
juldrixx authored Aug 2, 2024
1 parent 85f8893 commit 69b02b6
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
### Fixed Bugs

- [PR #435](https://github.com/konpyutaika/nifikop/pull/435) - **[Operator/NifiCluster]** Fixed `NifiCluster` type fallback to `external` instead of the field value.
- [PR #443](https://github.com/konpyutaika/nifikop/pull/443) - **[Operator/NifiUser]** Replaced Parameter Context policy resource from `/parameter-context` to `/parameter-contexts`.

### Deprecated

Expand Down
4 changes: 2 additions & 2 deletions api/v1/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ type AccessPolicy struct {
// +kubebuilder:validation:Enum={"read","write"}
// action defines the kind of action that will be granted, could be "read" or "write"
Action AccessPolicyAction `json:"action"`
// +kubebuilder:validation:Enum={"/system","/flow","/controller","/parameter-context","/provenance","/restricted-components","/policies","/tenants","/site-to-site","/proxy","/counters","/","/operation","/provenance-data","/data","/policies","/data-transfer"}
// +kubebuilder:validation:Enum={"/system","/flow","/controller","/parameter-contexts","/provenance","/restricted-components","/policies","/tenants","/site-to-site","/proxy","/counters","/","/operation","/provenance-data","/data","/policies","/data-transfer"}
// resource defines the kind of resource targeted by this access policies, please refer to the following page:
// https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#access-policies
Resource AccessPolicyResource `json:"resource"`
Expand Down Expand Up @@ -221,7 +221,7 @@ const (
ControllerAccessPolicyResource AccessPolicyResource = "/controller"
// About the Parameter Contexts. Access to Parameter Contexts are inherited from the "access the controller"
// policies unless overridden.
ParameterContextAccessPolicyResource AccessPolicyResource = "/parameter-context"
ParameterContextAccessPolicyResource AccessPolicyResource = "/parameter-contexts"
// Allows users to submit a Provenance Search and request Event Lineage.
ProvenanceAccessPolicyResource AccessPolicyResource = "/provenance"
// About the restricted components assuming other permissions are sufficient. The restricted components may
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/nifi.konpyutaika.com_nifiusergroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- /system
- /flow
- /controller
- /parameter-context
- /parameter-contexts
- /provenance
- /restricted-components
- /policies
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/nifi.konpyutaika.com_nifiusers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- /system
- /flow
- /controller
- /parameter-context
- /parameter-contexts
- /provenance
- /restricted-components
- /policies
Expand Down
2 changes: 1 addition & 1 deletion helm/nifikop/crds/nifi.konpyutaika.com_nifiusergroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- /system
- /flow
- /controller
- /parameter-context
- /parameter-contexts
- /provenance
- /restricted-components
- /policies
Expand Down
2 changes: 1 addition & 1 deletion helm/nifikop/crds/nifi.konpyutaika.com_nifiusers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
- /system
- /flow
- /controller
- /parameter-context
- /parameter-contexts
- /provenance
- /restricted-components
- /policies
Expand Down
2 changes: 1 addition & 1 deletion site/docs/5_references/2_nifi_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
|-----|----|------------|
|FlowAccessPolicyResource|/flow|About the UI|
|ControllerAccessPolicyResource|/controller| about the controller including Reporting Tasks, Controller Services, Parameter Contexts and Nodes in the Cluster|
|ParameterContextAccessPolicyResource|/parameter-context|About the Parameter Contexts. Access to Parameter Contexts are inherited from the "access the controller" policies unless overridden.|
|ParameterContextAccessPolicyResource|/parameter-contexts|About the Parameter Contexts. Access to Parameter Contexts are inherited from the "access the controller" policies unless overridden.|
|ProvenanceAccessPolicyResource|/provenance|Allows users to submit a Provenance Search and request Event Lineage|
|RestrictedComponentsAccessPolicyResource|/restricted-components|About the restricted components assuming other permissions are sufficient. The restricted components may indicate which specific permissions are required. Permissions can be granted for specific restrictions or be granted regardless of restrictions. If permission is granted regardless of restrictions, the user can create/modify all restricted components.|
|PoliciesAccessPolicyResource|/policies|About the policies for all components|
Expand Down

0 comments on commit 69b02b6

Please sign in to comment.