类 ChartRepository
- java.lang.Object
-
- org.microbean.helm.chart.resolver.AbstractChartResolver
-
- org.microbean.helm.chart.repository.ChartRepository
-
@Experimental public class ChartRepository extends AbstractChartResolver
- 作者:
- Laird Nelson
- 另请参阅:
resolve(String, String)
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classChartRepository.IndexA class representing certain of the contents of a Helm chart repository'sindex.yamlfile.
-
构造器概要
构造器 构造器 说明 ChartRepository(String name, URI uri)Creates a newChartRepositorywhose cached index path will be aPathrelative to the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, and bearing a name consisting of the suppliednamesuffixed with-index.yaml.ChartRepository(String name, URI uri, boolean reifyHelmHomeIfNecessary)Creates a newChartRepositorywhose cached index path will be aPathrelative to the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, and bearing a name consisting of the suppliednamesuffixed with-index.yaml.ChartRepository(String name, URI uri, Path cachedIndexPath)Creates a newChartRepository.ChartRepository(String name, URI uri, Path cachedIndexPath, boolean reifyHelmHomeIfNecessary)Creates a newChartRepository.ChartRepository(String name, URI uri, Path archiveCacheDirectory, Path indexCacheDirectory, Path cachedIndexPath)Creates a newChartRepository.ChartRepository(String name, URI uri, Path archiveCacheDirectory, Path indexCacheDirectory, Path cachedIndexPath, boolean reifyHelmHomeIfNecessary)Creates a newChartRepository.ChartRepository(String name, URI uri, Path archiveCacheDirectory, Path indexCacheDirectory, Path cachedIndexPath, boolean reifyHelmHomeIfNecessary, Proxy proxy)Creates a newChartRepository.ChartRepository(String name, URI uri, Path archiveCacheDirectory, Path indexCacheDirectory, Path cachedIndexPath, Proxy proxy)Creates a newChartRepository.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ChartRepository.IndexclearIndex()Clears theChartRepository.Indexstored internally by thisChartRepository, paving the way for a fresh copy to be installed by thegetIndex(boolean)method, and returns the old value.PathdownloadIndex()Invokes thedownloadIndexTo(Path, CopyOption...)method with the return value of thegetCachedIndexPath()method as its first parameter value, andStandardCopyOption.REPLACE_EXISTINGas its second parameter value.@Issue(id="156",uri="https://github.com/microbean/microbean-helm/issues/156") PathdownloadIndex(CopyOption... copyOptions)Invokes thedownloadIndexTo(Path, CopyOption...)method with the return value of thegetCachedIndexPath()method.PathdownloadIndexTo(Path path)Downloads a copy of the chart repository'sindex.yamlfile to thePathspecified and returns the canonical representation of thePathto which the file was actually downloaded.@Issue(id="156",uri="https://github.com/microbean/microbean-helm/issues/156") PathdownloadIndexTo(Path path, CopyOption... copyOptions)Downloads a copy of the chart repository'sindex.yamlfile to thePathspecified and returns the canonical representation of thePathto which the file was actually downloaded.PathgetCachedChartPath(String chartName, String chartVersion)Given a Helm chart name and its version, returns the localPath, representing a local copy of the Helm chart as downloaded from the chart repository represented by thisChartRepository, downloading the archive if necessary, and replacing any prior copy that may exist.@Issue(id="156",uri="https://github.com/microbean/microbean-helm/issues/156") PathgetCachedChartPath(String chartName, String chartVersion, CopyOption... copyOptions)Given a Helm chart name and its version, returns the localPath, representing a local copy of the Helm chart as downloaded from the chart repository represented by thisChartRepository, downloading the archive if necessary.PathgetCachedIndexPath()Returns a non-null, absolutePathto the file that contains or will contain a copy of the chart repository'sindex.yamlfile.ChartRepository.IndexgetIndex()Returns theChartRepository.Indexfor thisChartRepository.ChartRepository.IndexgetIndex(boolean forceDownload)Returns theChartRepository.Indexfor thisChartRepository.@Issue(id="156",uri="https://github.com/microbean/microbean-helm/issues/156") ChartRepository.IndexgetIndex(boolean forceDownload, CopyOption... copyOptions)Returns theChartRepository.Indexfor thisChartRepository.StringgetName()Returns the name of thisChartRepository.URIgetUri()Returns theURIof the root of thisChartRepository.booleanisCachedIndexExpired()ChartRepository.IndexloadIndex()Creates a newChartRepository.Indexfrom the contents of the cached copy of the chart repository'sindex.yamlfile and returns it.protected InputStreamopenStream(URL url)Returns anInputStreamcorresponding to the suppliedURL.ChartOuterClass.Chart.Builderresolve(String chartName, String chartVersion)Uses the suppliedchartNameandchartVersionparameters to find an appropriate Helm chart and returns it in the form of aChartOuterClass.Chart.Builderobject.
-
-
-
构造器详细资料
-
ChartRepository
public ChartRepository(String name, URI uri)
Creates a newChartRepositorywhose cached index path will be aPathrelative to the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, and bearing a name consisting of the suppliednamesuffixed with-index.yaml.- 参数:
name- the name of thisChartRepository; must not benulluri- the absoluteURIto the root of thisChartRepository; must not benull- 抛出:
NullPointerException- if eithernameoruriisnullIllegalArgumentException- ifuriis not absolute, or if there is no existing "Helm home" directory- 另请参阅:
ChartRepository(String, URI, Path, Path, Path, boolean, Proxy),getName(),getUri(),getCachedIndexPath()
-
ChartRepository
public ChartRepository(String name, URI uri, boolean reifyHelmHomeIfNecessary)
Creates a newChartRepositorywhose cached index path will be aPathrelative to the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, and bearing a name consisting of the suppliednamesuffixed with-index.yaml.- 参数:
name- the name of thisChartRepository; must not benulluri- the absoluteURIto the root of thisChartRepository; must not benullreifyHelmHomeIfNecessary- iftrueand, for whatever reason, the local Helm home directory structure needs to be partially or entirely created, then this constructor will attempt to reify it- 抛出:
NullPointerException- if eithernameoruriisnullIllegalArgumentException- ifuriis not absolute, or if there is no existing "Helm home" directory- 另请参阅:
ChartRepository(String, URI, Path, Path, Path, boolean, Proxy),getName(),getUri(),getCachedIndexPath()
-
ChartRepository
public ChartRepository(String name, URI uri, Path cachedIndexPath)
Creates a newChartRepository.- 参数:
name- the name of thisChartRepository; must not benulluri- theURIto the root of thisChartRepository; must not benullcachedIndexPath- aPathnaming the file that will store a copy of the chart repository'sindex.yamlfile; ifnullthen aPathrelative to the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, and bearing a name consisting of the suppliednamesuffixed with-index.yamlwill be used instead- 抛出:
NullPointerException- if eithernameoruriisnullIllegalArgumentException- ifuriis not absolute, or if there is no existing "Helm home" directory- 另请参阅:
ChartRepository(String, URI, Path, Path, Path, boolean, Proxy),getName(),getUri(),getCachedIndexPath()
-
ChartRepository
public ChartRepository(String name, URI uri, Path cachedIndexPath, boolean reifyHelmHomeIfNecessary)
Creates a newChartRepository.- 参数:
name- the name of thisChartRepository; must not benulluri- theURIto the root of thisChartRepository; must not benullcachedIndexPath- aPathnaming the file that will store a copy of the chart repository'sindex.yamlfile; ifnullthen aPathrelative to the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, and bearing a name consisting of the suppliednamesuffixed with-index.yamlwill be used insteadreifyHelmHomeIfNecessary- iftrueand, for whatever reason, the local Helm home directory structure needs to be partially or entirely created, then this constructor will attempt to reify it- 抛出:
NullPointerException- if eithernameoruriisnullIllegalArgumentException- ifuriis not absolute, or if there is no existing "Helm home" directory- 另请参阅:
ChartRepository(String, URI, Path, Path, Path, boolean, Proxy),getName(),getUri(),getCachedIndexPath()
-
ChartRepository
public ChartRepository(String name, URI uri, Path archiveCacheDirectory, Path indexCacheDirectory, Path cachedIndexPath)
Creates a newChartRepository.- 参数:
name- the name of thisChartRepository; must not benulluri- theURIto the root of thisChartRepository; must not benullarchiveCacheDirectory- an absolutePathrepresenting a directory where Helm chart archives may be stored; ifnullthen aPathbeginning with the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, appended withcache/archivewill be used insteadindexCacheDirectory- an absolutePathrepresenting a directory that the suppliedcachedIndexPathparameter value will be considered to be relative to; will be ignored and hence may benullif the suppliedcachedIndexPathparameter value is absolutecachedIndexPath- aPathnaming the file that will store a copy of the chart repository'sindex.yamlfile; ifnullthen aPathrelative to the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, and bearing a name consisting of the suppliednamesuffixed with-index.yamlwill be used instead- 抛出:
NullPointerException- if eithernameoruriisnullIllegalArgumentException- ifuriis not absolute, or if there is no existing "Helm home" directory, or ifarchiveCacheDirectoryis non-nulland either empty or not Path.isAbsolute()- 另请参阅:
ChartRepository(String, URI, Path, Path, Path, boolean, Proxy),getName(),getUri(),getCachedIndexPath()
-
ChartRepository
public ChartRepository(String name, URI uri, Path archiveCacheDirectory, Path indexCacheDirectory, Path cachedIndexPath, boolean reifyHelmHomeIfNecessary)
Creates a newChartRepository.- 参数:
name- the name of thisChartRepository; must not benulluri- theURIto the root of thisChartRepository; must not benullarchiveCacheDirectory- an absolutePathrepresenting a directory where Helm chart archives may be stored; ifnullthen aPathbeginning with the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, appended withcache/archivewill be used insteadindexCacheDirectory- an absolutePathrepresenting a directory that the suppliedcachedIndexPathparameter value will be considered to be relative to; will be ignored and hence may benullif the suppliedcachedIndexPathparameter value is absolutecachedIndexPath- aPathnaming the file that will store a copy of the chart repository'sindex.yamlfile; ifnullthen aPathrelative to the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, and bearing a name consisting of the suppliednamesuffixed with-index.yamlwill be used insteadreifyHelmHomeIfNecessary- iftrueand, for whatever reason, the local Helm home directory structure needs to be partially or entirely created, then this constructor will attempt to reify it- 抛出:
NullPointerException- if eithernameoruriisnullIllegalArgumentException- ifuriis not absolute, or if there is no existing "Helm home" directory and/or it could not be reified, or ifarchiveCacheDirectoryis non-nulland either empty or not Path.isAbsolute()- 另请参阅:
ChartRepository(String, URI, Path, Path, Path, boolean, Proxy),getName(),getUri(),getCachedIndexPath()
-
ChartRepository
public ChartRepository(String name, URI uri, Path archiveCacheDirectory, Path indexCacheDirectory, Path cachedIndexPath, Proxy proxy)
Creates a newChartRepository.- 参数:
name- the name of thisChartRepository; must not benulluri- theURIto the root of thisChartRepository; must not benullarchiveCacheDirectory- an absolutePathrepresenting a directory where Helm chart archives may be stored; ifnullthen aPathbeginning with the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, appended withcache/archivewill be used insteadindexCacheDirectory- an absolutePathrepresenting a directory that the suppliedcachedIndexPathparameter value will be considered to be relative to; will be ignored and hence may benullif the suppliedcachedIndexPathparameter value Path.isAbsolute()cachedIndexPath- aPathnaming the file that will store a copy of the chart repository'sindex.yamlfile; ifnullthen aPathrelative to the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, and bearing a name consisting of the suppliednamesuffixed with-index.yamlwill be used insteadproxy- aProxyrepresenting a proxy server used to establish a connection to the chart repository represented by thisChartRepository; may benullin which caseProxy.NO_PROXYwill be used instead- 抛出:
NullPointerException- if eithernameoruriisnullIllegalArgumentException- ifuriis not absolute, or if there is no existing "Helm home" directory- 另请参阅:
getName(),getUri(),getCachedIndexPath()
-
ChartRepository
public ChartRepository(String name, URI uri, Path archiveCacheDirectory, Path indexCacheDirectory, Path cachedIndexPath, boolean reifyHelmHomeIfNecessary, Proxy proxy)
Creates a newChartRepository.- 参数:
name- the name of thisChartRepository; must not benulluri- theURIto the root of thisChartRepository; must not benullarchiveCacheDirectory- an absolutePathrepresenting a directory where Helm chart archives may be stored; ifnullthen aPathbeginning with the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, appended withcache/archivewill be used insteadindexCacheDirectory- an absolutePathrepresenting a directory that the suppliedcachedIndexPathparameter value will be considered to be relative to; will be ignored and hence may benullif the suppliedcachedIndexPathparameter value Path.isAbsolute()cachedIndexPath- aPathnaming the file that will store a copy of the chart repository'sindex.yamlfile; ifnullthen aPathrelative to the absolute directory represented by the value of thehelm.homesystem property, or the value of theHELM_HOMEenvironment variable, and bearing a name consisting of the suppliednamesuffixed with-index.yamlwill be used insteadreifyHelmHomeIfNecessary- iftrueand, for whatever reason, the local Helm home directory structure needs to be partially or entirely created, then this constructor will attempt to reify itproxy- aProxyrepresenting a proxy server used to establish a connection to the chart repository represented by thisChartRepository; may benullin which caseProxy.NO_PROXYwill be used instead- 抛出:
NullPointerException- if eithernameoruriisnullIllegalArgumentException- ifuriis not absolute, or if there is no existing "Helm home" directory and/or it could not be reified- 另请参阅:
getName(),getUri(),getCachedIndexPath()
-
-
方法详细资料
-
getName
public final String getName()
Returns the name of thisChartRepository.This method never returns
null.- 返回:
- the non-
nullname of thisChartRepository
-
getUri
public final URI getUri()
Returns theURIof the root of thisChartRepository.This method never returns
null.The
URIreturned by this method is guaranteed to be absolute.- 返回:
- the non-
null, absoluteURIof the root of thisChartRepository
-
getCachedIndexPath
public final Path getCachedIndexPath()
Returns a non-null, absolutePathto the file that contains or will contain a copy of the chart repository'sindex.yamlfile.This method never returns
null.- 返回:
- a non-
null, absolutePathto the file that contains or will contain a copy of the chart repository'sindex.yamlfile
-
getIndex
public final ChartRepository.Index getIndex() throws IOException, URISyntaxException
Returns theChartRepository.Indexfor thisChartRepository.This method never returns
null.If this method has not been invoked before on this
ChartRepository, then the cached copy of the chart repository'sindex.yamlfile is parsed into anChartRepository.Indexand thatChartRepository.Indexis stored in an instance variable before it is returned.If no cached copy of the chart repository's
return theindex.yamlfile exists, then one is downloaded first.ChartRepository.Indexrepresenting the contents of thisChartRepository; nevernull- 抛出:
IOException- if there was a problem either parsing anindex.yamlfile or downloading itURISyntaxException- if one of the URIs in theindex.yamlfile is invalid- 另请参阅:
getIndex(boolean, CopyOption...),downloadIndex()
-
getIndex
public final ChartRepository.Index getIndex(boolean forceDownload) throws IOException, URISyntaxException
Returns theChartRepository.Indexfor thisChartRepository.This method never returns
null.If this method has not been invoked before on this
ChartRepository, then the cached copy of the chart repository'sindex.yamlfile is parsed into anChartRepository.Indexand thatChartRepository.Indexis stored in an instance variable before it is returned.If the cached copy of the chart repository's
index.yamlfile has expired, then one is downloaded first.- 参数:
forceDownload- iftruethen no caching will happen- 返回:
- the
ChartRepository.Indexrepresenting the contents of thisChartRepository; nevernull - 抛出:
IOException- if there was a problem either parsing anindex.yamlfile or downloading itURISyntaxException- if one of the URIs in theindex.yamlfile is invalid- 另请参阅:
getIndex(boolean, CopyOption...),downloadIndexTo(Path, CopyOption...),isCachedIndexExpired()
-
getIndex
@Issue(id="156", uri="https://github.com/microbean/microbean-helm/issues/156") public final @Issue(id="156",uri="https://github.com/microbean/microbean-helm/issues/156") ChartRepository.Index getIndex(boolean forceDownload, CopyOption... copyOptions) throws IOException, URISyntaxExceptionReturns theChartRepository.Indexfor thisChartRepository.This method never returns
null.If this method has not been invoked before on this
ChartRepository, then the cached copy of the chart repository'sindex.yamlfile is parsed into anChartRepository.Indexand thatChartRepository.Indexis stored in an instance variable before it is returned.If the cached copy of the chart repository's
index.yamlfile has expired, then one is downloaded first.- 参数:
forceDownload- iftruethen no caching will happencopyOptions- anyCopyOptioninstances that will be passed to anyFiles.move(Path, Path, CopyOption...)invocation that may be necessary; may benull- 返回:
- the
ChartRepository.Indexrepresenting the contents of thisChartRepository; nevernull - 抛出:
IOException- if there was a problem either parsing anindex.yamlfile or downloading itURISyntaxException- if one of the URIs in theindex.yamlfile is invalid- 另请参阅:
downloadIndexTo(Path, CopyOption...),isCachedIndexExpired()
-
isCachedIndexExpired
public boolean isCachedIndexExpired()
Returnstrueif the cached copy of theindex.yamlfile is to be considered stale.The default implementation of this method returns the negation of the return value of an invocation of the
Files.isRegularFile(Path, LinkOption...)method on the return value of thegetCachedIndexPath()method.- 返回:
trueif the cached copy of theindex.yamlfile is to be considered stale;falseotherwise- 另请参阅:
getIndex(boolean)
-
clearIndex
public final ChartRepository.Index clearIndex()
Clears theChartRepository.Indexstored internally by thisChartRepository, paving the way for a fresh copy to be installed by thegetIndex(boolean)method, and returns the old value.This method may return
nullif#getIndex(boolean)has not yet been called.- 返回:
- the
ChartRepository.Index, ornull
-
downloadIndex
public final Path downloadIndex() throws IOException
Invokes thedownloadIndexTo(Path, CopyOption...)method with the return value of thegetCachedIndexPath()method as its first parameter value, andStandardCopyOption.REPLACE_EXISTINGas its second parameter value.This method never returns
null.- 返回:
PaththePathto which theindex.yamlfile was downloaded; nevernull- 抛出:
IOException- if there was a problem downloading- 另请参阅:
downloadIndexTo(Path, CopyOption...)
-
downloadIndex
@Issue(id="156", uri="https://github.com/microbean/microbean-helm/issues/156") public final @Issue(id="156",uri="https://github.com/microbean/microbean-helm/issues/156") Path downloadIndex(CopyOption... copyOptions) throws IOExceptionInvokes thedownloadIndexTo(Path, CopyOption...)method with the return value of thegetCachedIndexPath()method.This method never returns
null.- 参数:
copyOptions- anyCopyOptioninstances that will be passed to anyFiles.move(Path, Path, CopyOption...)invocations that may be necessary; may benull- 返回:
PaththePathto which theindex.yamlfile was downloaded; nevernull- 抛出:
IOException- if there was a problem downloading- 另请参阅:
downloadIndexTo(Path, CopyOption...)
-
downloadIndexTo
public Path downloadIndexTo(Path path) throws IOException
Downloads a copy of the chart repository'sindex.yamlfile to thePathspecified and returns the canonical representation of thePathto which the file was actually downloaded.This method never returns
null.Overrides of this method must not return
null.The default implementation of this method actually downloads the
index.yamlfile to a temporary file first, and then renames it, replacing any existing file with that name.- 参数:
path- thePathto download theindex.yamlfile to; may benullin which case the return value of thegetCachedIndexPath()method will be used instead- 返回:
- the
Pathto the file; nevernull - 抛出:
IOException- if there was a problem downloading- 另请参阅:
downloadIndexTo(Path, CopyOption...)
-
downloadIndexTo
@Issue(id="156", uri="https://github.com/microbean/microbean-helm/issues/156") public @Issue(id="156",uri="https://github.com/microbean/microbean-helm/issues/156") Path downloadIndexTo(Path path, CopyOption... copyOptions) throws IOExceptionDownloads a copy of the chart repository'sindex.yamlfile to thePathspecified and returns the canonical representation of thePathto which the file was actually downloaded.This method never returns
null.Overrides of this method must not return
null.The default implementation of this method actually downloads the
index.yamlfile to a temporary file first, and then renames it, replacing any existing file with that name.- 参数:
path- thePathto download theindex.yamlfile to; may benullin which case the return value of thegetCachedIndexPath()method will be used insteadcopyOptions- anyCopyOptioninstances that will be passed to anFiles.move(Path, Path, CopyOption...)invocation; may benull- 返回:
- the
Pathto the file; nevernull - 抛出:
IOException- if there was a problem downloading
-
loadIndex
public ChartRepository.Index loadIndex() throws IOException, URISyntaxException
Creates a newChartRepository.Indexfrom the contents of the cached copy of the chart repository'sindex.yamlfile and returns it.This method never returns
null.Overrides of this method must not return
null.- 返回:
- a new
ChartRepository.Index; nevernull - 抛出:
IOException- if there was a problem reading the fileURISyntaxException- if a URI in the file was invalid- 另请参阅:
ChartRepository.Index.loadFrom(Path)
-
getCachedChartPath
public final Path getCachedChartPath(String chartName, String chartVersion) throws IOException, URISyntaxException
Given a Helm chart name and its version, returns the localPath, representing a local copy of the Helm chart as downloaded from the chart repository represented by thisChartRepository, downloading the archive if necessary, and replacing any prior copy that may exist.This method may return
null.- 参数:
chartName- the name of the chart whose localPathshould be returned; must not benullchartVersion- the version of the chart to select; may benullin which case "latest" semantics are implied- 返回:
- the
Pathto the chart archive, ornull - 抛出:
IOException- if there was a problem downloadingURISyntaxException- if thisChartRepository's associatedIndexcould not be parsedNullPointerException- ifchartNameisnull- 另请参阅:
getCachedChartPath(String, String, CopyOption...)
-
getCachedChartPath
@Issue(id="156", uri="https://github.com/microbean/microbean-helm/issues/156") public final @Issue(id="156",uri="https://github.com/microbean/microbean-helm/issues/156") Path getCachedChartPath(String chartName, String chartVersion, CopyOption... copyOptions) throws IOException, URISyntaxExceptionGiven a Helm chart name and its version, returns the localPath, representing a local copy of the Helm chart as downloaded from the chart repository represented by thisChartRepository, downloading the archive if necessary.This method may return
null.- 参数:
chartName- the name of the chart whose localPathshould be returned; must not benullchartVersion- the version of the chart to select; may benullin which case "latest" semantics are impliedcopyOptions- anyCopyOptioninstances that will be passed to anyFiles.move(Path, Path, CopyOption...)invocations that may be necessary; may benull- 返回:
- the
Pathto the chart archive, ornull - 抛出:
IOException- if there was a problem downloadingURISyntaxException- if thisChartRepository's associatedIndexcould not be parsedNullPointerException- ifchartNameisnull
-
openStream
protected InputStream openStream(URL url) throws IOException
Returns anInputStreamcorresponding to the suppliedURL.This method may return
null.Overrides of this method are permitted to return
null.- 参数:
url- theURLwhose affiliatedInputStreamshould be returned; may benullin which casenullwill be returned- 返回:
- an
InputStreamappropriate for the suppliedURL, ornull - 抛出:
IOException- if an error occurs while connecting to the suppliedURL
-
resolve
public ChartOuterClass.Chart.Builder resolve(String chartName, String chartVersion) throws ChartResolverException
Uses the suppliedchartNameandchartVersionparameters to find an appropriate Helm chart and returns it in the form of aChartOuterClass.Chart.Builderobject.Implementations of this method may return
null.This implementation calls the
getCachedChartPath(String, String)method with the supplied arguments and uses aTapeArchiveChartLoaderto load the resulting archive into aChartOuterClass.Chart.Builderobject.- 指定者:
resolve在类中AbstractChartResolver- 参数:
chartName- the name of the chart to resolve; must not benullchartVersion- the version of the chart to resolve; may benullwhich normally implies "latest" semantics- 返回:
- the
ChartOuterClass.Chart.Builderrepresenting a suitable Helm chart, ornullif no such chart could be found - 抛出:
ChartResolverException- if there was a problem with resolution
-
-