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

Add support to create Federated repositories using CLI #1513

Open
pavanvikas opened this issue Apr 13, 2022 · 3 comments · Fixed by jfrog/jfrog-cli-core#796
Open

Add support to create Federated repositories using CLI #1513

pavanvikas opened this issue Apr 13, 2022 · 3 comments · Fixed by jfrog/jfrog-cli-core#796
Labels
feature request New feature or request

Comments

@pavanvikas
Copy link

pavanvikas commented Apr 13, 2022

Is your feature request related to a problem? Please describe.
We can not create Federate repositories using JFrog CLI, while creating the repository as part of the template creation process, I don’t see the Federated repository option at all, please find the below screenshot for the same.
image

When creating the Federated repository bypassing the complete json we will get "unsupported rclass: federated" error as below:
image

Describe the solution you'd like to see
I would like to create Federated repositories using JFrog CLI.

Describe alternatives you've considered
As an alternative, we can create it using REST API or through Artifactory UI.

@pavanvikas pavanvikas added the feature request New feature or request label Apr 13, 2022
@xjg6yzl
Copy link

xjg6yzl commented Apr 26, 2022

Please add this feature. If the CLI tool is meant to automate management of Artifactory, then it needs to be kept in sync with all features in the enterprise version of Artifactory.

@sarao1310
Copy link
Contributor

Hi, @xjg6yzl @pavanvikas We've released a new version that would support this issue.
Please let us know if you have any more issues or questions.
And thank you for your feedback! 🐸

@misse
Copy link

misse commented Jul 5, 2023

Hi, thank you for adding federated repository support. However, the CLI doesn't allow you to add member clusters to the federated repo, and even when editing the template and adding the members manually, does it work.

# test-repo.json
{
  "key": "test-generic-fed",
  "packageType": "generic",
  "rclass": "federated",
  "members": [
    {
      "url": "https://cluster1.example.com/artifactory/gce-mbergman-generic-fed",
      "enabled": true
    },
    {
      "url": "https://cluster2.example.ea.com/artifactory/gce-mbergman-generic-fed",
      "enabled": true
    }
  ]
}
jf rt ru test-repo.json
[🚨Error] template syntax error: unknown key: "members".

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

Successfully merging a pull request may close this issue.

4 participants