Skip to main content
Version: v1.14.2

NiFi Resource

NifiResource is the Schema for multiple the NiFi APIs to create different resources.

apiVersion: nifi.konpyutaika.com/v1alpha1
kind: NifiResource
metadata:
name: process-group-parent
namespace: nifikop
spec:
clusterRef:
name: nc
namespace: nifikop
type: process-group
displayName: Process Group (Parent)
configuration:
comments: "I'm the parent"
logFileSuffix: .parent
position:
x: -150
y: 0
---
apiVersion: nifi.konpyutaika.com/v1alpha1
kind: NifiResource
metadata:
name: process-group-child
namespace: nifikop
spec:
clusterRef:
name: nc
namespace: nifikop
type: process-group
displayName: Process Group (child)
parentProcessGroupRef:
name: process-group-parent
configuration:
comments: "I'm the child"

NifiResource​

FieldTypeDescriptionRequiredDefault
metadataObjectMetadatais metadata that all persisted resources must have, which includes all objects dataflows must create.Nonil
specNifiResourceSpecdefines the desired state of NifiResource.Nonil
statusNifiResourceStatusdefines the observed state of NifiResource.Nonil

NifiResourceSpec​

FieldTypeDescriptionRequiredDefault
clusterRefClusterReferencecontains the reference to the NifiCluster with the one the user is linked.Yes-
typeComponentTypethe type of the resource (e.g. process-group).Yes-
parentProcessGroupIDstringthe UUID of the parent process group where you want to deploy your resource, if not set deploy at root level (is not used for all types of resource).No-
parentProcessGroupRefResourceReferencethe reference to the parent process group where you want to deploy your resource, if not set deploy at root level (is not used for all types of resource).No-
displayNamestringthe name of the resource (if not set, the name of the CR will be used).No-
ConfigurationRawExtensionthe configuration of the resource (e.g. the process group configuration).No-

NifiResourceStatus​

FieldTypeDescriptionRequiredDefault
idstringnifi resource's id.Yes-
versionint64the last nifi resource revision version catched.Yes-

ComponentType​

NameValueDescription
ResourcetInputPortinput-portindicates that the resource created is an input port. (not implemented)
ResourceOutputPortoutput-portindicates that the resource created is an output port. (not implemented)
ResourceProcessorprocessorindicates that the resource created is a processor. (not implemented)
ResourceFunnelfunnelindicates that the resource created is a funnel. (not implemented)
ResourceProcessGroupprocess-groupindicates that the resource created is a process group.
ResourceControllerServicecontroller-serviceindicates that the resource created is a controller service. (not implemented)

ResourceReference​

FieldTypeDescriptionRequiredDefault
namestringname of the NifiResource.Yes-
namespacestringthe NifiResource namespace location.Yes-