Skip to content

Commit

Permalink
fix(fabric8io#2596) Add buildable ref for container, port and volume
Browse files Browse the repository at this point in the history
  • Loading branch information
iocanel committed Nov 12, 2020
1 parent bec9ac9 commit d397a7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,7 @@
* Fix #2537: Checking for Readiness of DeploymentConfig
* Fix #2300: Remove job extensions/v1beta1 from backward compatibiliy interceptor
* Fix #2514: SharedIndexInformer watches only pods of its own namespace when run in the cluster
* Fix #2596: Add buildable references for Container, Port and Volume

#### Improvements
* Fix #2507: Add a test for creating a Job with generateName
Expand Down
Expand Up @@ -63,8 +63,11 @@ public void propertyOrder(JDefinedClass clazz, JsonNode propertiesNode) {
.param("prefix", "Doneable")
.param("value", "done");

buildable.paramArray("refs").annotate(BuildableReference.class)
.param("value", new JCodeModel()._class("io.fabric8.kubernetes.api.model.ObjectMeta"));
buildable.paramArray("refs")
.annotate(BuildableReference.class).param("value", new JCodeModel()._class("io.fabric8.kubernetes.api.model.ObjectMeta"))
.annotate(BuildableReference.class).param("value", new JCodeModel()._class("io.fabric8.kubernetes.api.model.Container"))
.annotate(BuildableReference.class).param("value", new JCodeModel()._class("io.fabric8.kubernetes.api.model.Port"))
.annotate(BuildableReference.class).param("value", new JCodeModel()._class("io.fabric8.kubernetes.api.model.Volume"));

if (isCRD(clazz, propertiesNode) || isCRDList(clazz, propertiesNode)) { // add CRD-specific annotations
String apiVersion = getApiVersion(propertiesNode);
Expand Down

0 comments on commit d397a7f

Please sign in to comment.