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

fix (extensions/tekton) : Clashing package names in trigger model dependencies (#5113) #5346

Merged
merged 1 commit into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Fix #5293: Ensured the mock server uses only generic or JsonNode parsing
* Fix #5298: Prevent requests needing authentication from causing a 403 response
* Fix #5327: Ensured that the informer reconnect task terminates after client close
* Fix #5113: Clashing package names in trigger model dependencies

#### Improvements
* Fix #5166: Remove opinionated messages from Config's `errorMessages` and deprecate it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ func main() {
"k8s.io/api/core/v1": "io.fabric8.kubernetes.api.model",
"k8s.io/apimachinery/pkg/apis/meta/v1": "io.fabric8.kubernetes.api.model",
"github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1": "io.fabric8.tekton.pipeline.v1beta1",
"knative.dev/pkg/apis/duck/v1": "io.fabric8.knative.internal.pkg.apis.duck.v1",
"knative.dev/pkg/apis/duck/v1alpha1": "io.fabric8.knative.internal.pkg.apis.duck.v1alpha1",
"knative.dev/pkg/apis/duck/v1beta1": "io.fabric8.knative.internal.pkg.apis.duck.v1beta1",
"knative.dev/pkg/apis": "io.fabric8.knative.internal.pkg.apis",
}

// mapping of go packages of this module to the resulting java package
Expand All @@ -63,9 +67,7 @@ func main() {
// - replace <key> with <value> aka "package prefix"
// - replace '/' with '.' for a valid java package name
// e.g. github.com/tektoncd/pipeline/pkg/apis/pipeline/pod/Template is mapped to "io.fabric8.tekton.internal.pipeline.pkg.apis.pipeline.pod.Template"
mappingSchema := map[string]string{
"knative.dev": "io.fabric8.tekton.triggers.internal.knative",
}
mappingSchema := map[string]string{}

// overwriting some types
manualTypeMap := map[reflect.Type]string{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ func main() {
"k8s.io/api/core/v1": "io.fabric8.kubernetes.api.model",
"k8s.io/apimachinery/pkg/apis/meta/v1": "io.fabric8.kubernetes.api.model",
"github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1": "io.fabric8.tekton.pipeline.v1beta1",
"knative.dev/pkg/apis/duck/v1": "io.fabric8.knative.internal.pkg.apis.duck.v1",
"knative.dev/pkg/apis/duck/v1alpha1": "io.fabric8.knative.internal.pkg.apis.duck.v1alpha1",
"knative.dev/pkg/apis/duck/v1beta1": "io.fabric8.knative.internal.pkg.apis.duck.v1beta1",
"knative.dev/pkg/apis": "io.fabric8.knative.internal.pkg.apis",
}

// mapping of go packages of this module to the resulting java package
Expand All @@ -61,9 +65,7 @@ func main() {
// - replace <key> with <value> aka "package prefix"
// - replace '/' with '.' for a valid java package name
// e.g. github.com/tektoncd/pipeline/pkg/apis/pipeline/pod/Template is mapped to "io.fabric8.tekton.internal.pipeline.pkg.apis.pipeline.pod.Template"
mappingSchema := map[string]string{
"knative.dev": "io.fabric8.tekton.triggers.internal.knative",
}
mappingSchema := map[string]string{}

// overwriting some types
manualTypeMap := map[reflect.Type]string{
Expand Down
3 changes: 2 additions & 1 deletion extensions/tekton/model-triggers-v1alpha1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
*
</osgi.import>
<osgi.export>
io.fabric8.tekton.*
io.fabric8.tekton.*,
io.fabric8.knative.internal.pkg.apis.*
</osgi.export>
</properties>

Expand Down

This file was deleted.

Loading