Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nifi-registry not able Intregrate with Gitlab #253

Open
Rachitgupta12-code opened this issue Jul 25, 2023 · 6 comments
Open

Nifi-registry not able Intregrate with Gitlab #253

Rachitgupta12-code opened this issue Jul 25, 2023 · 6 comments

Comments

@Rachitgupta12-code
Copy link

file:
enabled: true
# -- the path in the running pod where the git repo will be cloned into
# either absolute or relative to the container working directory, which is NIFI_REGISTRY_HOME
# If you elect to use a non-default location, you must also update the property associated.
storageDirectory:

flowProvider:
git:
enabled: true
# Repository to be cloned at pod startup
url:
# Sets NIFI_REGISTRY_GIT_REMOTE for update_flow_provider.sh
remote: origin
# Sets NIFI_REGISTRY_GIT_USER for update_flow_provider.sh
user:
# Sets NIFI_REGISTRY_GIT_PASSWORD for update_flow_provider.sh
password:

I use this configuration in the nifi registry to connect with gitlab but it's not work
In the storage directory add the repo name with ./
In the URL section add the repo https URL
Add the Username and Password .In the Password section add the token of our gitlab

Please suggest a way to integrate the nifi-registry with gitlab

@dimitri995
Copy link

Hello,

I try this configuration and it doesn't work too.

Have you found a solution ?

@lfreinag
Copy link

I have the same problem. Any solutions yet?

@NechiHeni
Copy link

anyone found a solution?

@lfreinag
Copy link

I managed to integrate this with the user and a HTTP access token as password. I am using bit bucket but it might be the same issue with Gitlab. Hope it helps! 🙌

@dimitri995
Copy link

Hi,

Now it's working fine. Can you verify if you try to commit your flow version from NiFi, if you kill your NiFi pod, take a look if there is a push on your gitlab repo.

If it doesn't work, try to uncomment some properties below gitlab. I can't access what I did now. I will paste my config when I will have access

@dimitri995
Copy link

Hi all,

Sorry for the late of my response. This is my actual config for Registry and it's working fine.

registry:
    ## If true, install the Nifi registry
    enabled: true
    url: ""
    port: 18080
    flowProvider:
      git:
        enabled: true
        url: https://#####################/nifi-flow-preview.git
        remote: origin
        user: ###
        password: ##########
        # The secret name can be used to supply your own SSH key:
        # 1. Generate a SSH key named identity:
        #      ssh-keygen -q -N "" -f ./identity
        # 2. Create a Kubernetes secret:
        #      kubectl -n nifi-registry create secret generic nifi-registry-git-deploy --from-file=./identity
        # 3. Don't check these key files into your Git repository! Once you've created
        #    the Kubernetes secret, Delete the private key:
        #      rm ./identity
        # 4. Add ./identity.pub as a deployment key with write access in your Git repo
        # 5. Set the secret name (default: nifi-registry-git-deploy) below
        secretName:
        # Global Git configuration See https://git-scm.com/docs/git-config for more details.
        config:
          enabled: false
          secretName: ""
          data: ""
          # data: |
          #   [credential "https://github.com"]
          #           username = foo
      postgres:
        enabled: false
        driverURL: https://jdbc.postgresql.org/download/
        fileName: postgresql-42.2.6.jar
        driverClass: org.postgresql.Driver
        url: jdbc:postgresql://localhost/nifireg
        username: nifitest
        password: nifitest
        ## Add values for the nifi-registry here
        ## ref: https://github.com/dysnix/charts/blob/main/dysnix/nifi-registry/values.yaml

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants