Previously, the library was forced to make openshift.withCluster() calls because the
context created in the calling pipeline was lost when calling openshift from a library
method. The library methods have been refactored to take a script arg, which is a
reference to the calling pipeline. The openshift variable on that pipeline can be called
directly, which retains the context from the pipeline. Because of this, library methods can
now be used to interact with multiple OpenShift project from the same pipeline.
This also enables the return values of library methods to be OpenShift "selectors", rather
than simple strings, which allows the pipeline to perform more complex actions on objects
created by library methods.
Unit test coverage is also significantly expanded. Additional convenience methods for
using the "Deployer" class have also been added to the c3i variable. A clone() method
has been added to handle shallow, single-branch clones, which are preferred for efficiency.
The ca variable now supports adding multiple subjectAltNames to a cert.
Previously, the library was forced to make
openshift.withCluster()calls because thecontext created in the calling pipeline was lost when calling
openshiftfrom a librarymethod. The library methods have been refactored to take a
scriptarg, which is areference to the calling pipeline. The
openshiftvariable on that pipeline can be calleddirectly, which retains the context from the pipeline. Because of this, library methods can
now be used to interact with multiple OpenShift project from the same pipeline.
This also enables the return values of library methods to be OpenShift "selectors", rather
than simple strings, which allows the pipeline to perform more complex actions on objects
created by library methods.
Unit test coverage is also significantly expanded. Additional convenience methods for
using the "Deployer" class have also been added to the c3i variable. A
clone()methodhas been added to handle shallow, single-branch clones, which are preferred for efficiency.
The
cavariable now supports adding multiple subjectAltNames to a cert.