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

enable resource resolution on jenkins-config.config_path #190

Merged
merged 1 commit into from
Jul 15, 2022

Conversation

geoberle
Copy link
Contributor

this enables writing queries for jenkins-config-1.config_path like

{
  jenkins_configs: jenkins_configs_v1 {
    name
    ...
    type
    config
    config_path {
      content
    }
  }
}

part of https://issues.redhat.com/browse/APPSRE-6003
follows up on https://issues.redhat.com/browse/APPSRE-5950

Signed-off-by: Gerd Oberlechner goberlec@redhat.com

geoberle added a commit to geoberle/qontract-reconcile that referenced this pull request Jul 15, 2022
the jenkins job builder integration loads config_path resources one by one which results in slower reconciliation runs.
to improve that, we use the resource reference resolver feature from qontract-server introduced with app-sre/qontract-server#147

while the impact on integration speed is not that hight for jenkins job builder, the resource resolution capability can be easily showcased on this integration so others like terraform-resources have a working example

part of https://issues.redhat.com/browse/APPSRE-6003
depends on schema change app-sre/qontract-schemas#190

Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
this enables writing queries for jenkins_config config_path like

```
{
  jenkins_configs: jenkins_configs_v1 {
    name
    ...
    type
    config
    config_path {
      content
      sha256sum
    }
  }
}
```

part of https://issues.redhat.com/browse/APPSRE-6003
follows up on https://issues.redhat.com/browse/APPSRE-5950

Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
@geoberle geoberle force-pushed the jenkins-config-resource-resolution branch from 27bf4c8 to 992b208 Compare July 15, 2022 06:44
@geoberle geoberle merged commit e786aed into app-sre:main Jul 15, 2022
geoberle added a commit to app-sre/qontract-reconcile that referenced this pull request Jul 15, 2022
the jenkins job builder integration loads config_path resources one by one which results in slower reconciliation runs.
to improve that, we use the resource reference resolver feature from qontract-server introduced with app-sre/qontract-server#147

while the impact on integration speed is not that hight for jenkins job builder, the resource resolution capability can be easily showcased on this integration so others like terraform-resources have a working example

part of https://issues.redhat.com/browse/APPSRE-6003
depends on schema change app-sre/qontract-schemas#190

Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
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

Successfully merging this pull request may close these issues.

1 participant