public final class Requirements extends Object
Helm charts support a requirements.yaml
resource, in
YAML format, whose sole member is a dependencies
list.
This class represents that resource.
Instances of this class are not suitable for concurrent access by multiple threads.
Modifier and Type | Class and Description |
---|---|
static class |
Requirements.Dependency
A description of a subchart that should be present in a parent
Helm chart; not normally used directly by end users.
|
static class |
Requirements.DependencyBeanInfo
A
SimpleBeanInfo describing the Java Bean properties for
the Requirements.Dependency class; not normally used directly by end
users. |
Constructor and Description |
---|
Requirements()
Creates a new
Requirements . |
Modifier and Type | Method and Description |
---|---|
static ChartOuterClass.Chart.Builder |
apply(ChartOuterClass.Chart.Builder chartBuilder,
ConfigOuterClass.ConfigOrBuilder userSuppliedValues)
Applies a variety
of rules concerning subchart aliasing and enablement to the
contents of the supplied
Chart.Builder . |
static Requirements |
fromChartOrBuilder(ChartOuterClass.ChartOrBuilder chart)
Creates a new
Requirements from a top-level requirements.yaml resource present in the
supplied ChartOuterClass.ChartOrBuilder and returns it. |
Collection<Requirements.Dependency> |
getDependencies()
|
boolean |
isEmpty()
|
void |
setDependencies(Collection<Requirements.Dependency> dependencies)
|
public Requirements()
Requirements
.public final boolean isEmpty()
true
if this Requirements
is empty;
false
otherwisepublic final Collection<Requirements.Dependency> getDependencies()
Collection
of Requirements.Dependency
instances
comprising this Requirements
.
This method may return null
.
setDependencies(Collection)
public final void setDependencies(Collection<Requirements.Dependency> dependencies)
dependencies
- the Collection
of Requirements.Dependency
instances that will comprise this Requirements
; may be
null
; not copied or clonedgetDependencies()
public static final Requirements fromChartOrBuilder(ChartOuterClass.ChartOrBuilder chart)
Requirements
from a top-level requirements.yaml
resource present in the
supplied ChartOuterClass.ChartOrBuilder
and returns it.
This method may return null
if the supplied ChartOuterClass.ChartOrBuilder
is itself null
or doesn't have a requirements.yaml
resource.
chart
- the ChartOuterClass.ChartOrBuilder
housing a requirement.yaml
resource; may be null
in which case null
will be returnedRequirements
or null
public static final ChartOuterClass.Chart.Builder apply(ChartOuterClass.Chart.Builder chartBuilder, ConfigOuterClass.ConfigOrBuilder userSuppliedValues)
Chart.Builder
.
This method never returns null
chartBuilder
- the Chart.Builder
whose subcharts may
be affected; must not be null
userSuppliedValues
- a ConfigOuterClass.ConfigOrBuilder
representing
overriding values; may be null
chartBuilder
for convenience; never
null
NullPointerException
- if chartBuilder
is null
Copyright © 2017–2018, microBean. All rights reserved.