-
Notifications
You must be signed in to change notification settings - Fork 196
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
[BUG] API not present in configuration file is still being deployed #659
Comments
|
Based on what I can see when I debug the publisher ("Launch Publisher" in VS code), it seems that there is a part of the code that look at files on the disk and will always push config that is stored locally, regardless if there is an entry in the configuration file, there does not seem to be a filter to look of files on disk AND match an entry in the configuration file |
@fabienmazieres - are you passing the full path of |
@guythetechie , CONFIGURATION_YAML_PATH: ${{ GITHUB.WORKSPACE }}/${{ inputs.CONFIGURATION_YAML_PATH }} I have changes a few things from the template to adapt to our authentication and self-hosted runners but this part of |
@fabienmazieres - after rereading your issue, I think there's a misunderstanding of how the extractor and publisher work with configuration.
There is no built-in functionality to only publish (or exclude from publishing) a specific resource. You can only control what gets extracted. Once something lands in your artifacts source control, it's eligible for publishing. |
@guythetechie, |
@fabienmazieres - I don't think so. It's not a simple task, and it goes against our philosophy of Git being the source of truth. If different teams are responsible for different components of the same APIM instance, they can work with different repositories. Team A can work in repository A where only artifacts related to API A are extracted. They have their own extractor/publisher pipeline. Similarly, team B can work in repository B with their separate artifacts and extractor/publisher pipelines. Both teams can target the same APIM instance, and only their relevant resources will be published. |
Release version
v6.0.11
Describe the bug
As per documentation and #435, I was told that I should be able to prevent the deployment of an API by omitting the API from the configuration file.
However, this does not appear to work as I have an API currently commented in configuration code:
but the API is being deployed whether I make a publish all artifacts or edit the specs and publish last commit...
I always deploy with configuration file as I have multiple environment, I am using different configuration files for each environment
Expected behavior
Only API defined explicitly in the configuration files are published. API that are commented should not be published.
Actual behavior
All API are deployed, all the time.
Reproduction Steps
configuration file
configuration.d1.yaml
:folder structure:
The text was updated successfully, but these errors were encountered: