Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverCapabilities ¶
func DiscoverCapabilities(disc discovery.DiscoveryInterface) (*chartutil.Capabilities, error)
DiscoverCapabilities discovers the capabilities required for chart renderers using the given DiscoveryInterface.
Types ¶
type Factory ¶ added in v1.8.0
Factory is a factory that is able to produce Interface.
func DefaultFactory ¶ added in v1.8.0
func DefaultFactory() Factory
DefaultFactory returns the default Factory.
type FactoryFunc ¶ added in v1.8.0
FactoryFunc implements the Factory interface.
func (FactoryFunc) NewForConfig ¶ added in v1.8.0
func (f FactoryFunc) NewForConfig(config *rest.Config) (Interface, error)
NewForConfig implements Factory.
type Interface ¶
type Interface interface { // Deprecated: Use RenderEmbeddedFS for new code! Render(chartPath, releaseName, namespace string, values interface{}) (*RenderedChart, error) RenderEmbeddedFS(embeddedFS embed.FS, chartPath, releaseName, namespace string, values interface{}) (*RenderedChart, error) RenderArchive(archive []byte, releaseName, namespace string, values interface{}) (*RenderedChart, error) }
Interface is an interface for rendering Helm Charts from path, name, namespace and values. TODO(rfranzke): Drop the deprecated method after Gardener v1.80 has been released.
func NewForConfig ¶
NewForConfig creates a new ChartRenderer object. It requires a Kubernetes client as input which will be injected in the Tiller environment.
func NewWithServerVersion ¶ added in v1.6.0
NewWithServerVersion creates a new chart renderer with the given server version.
type RenderedChart ¶
RenderedChart holds a map of rendered templates file with template file name as key and rendered template as value.
func (*RenderedChart) AsSecretData ¶ added in v1.4.0
func (c *RenderedChart) AsSecretData() map[string][]byte
AsSecretData returns all rendered manifests that is capable for used as data of a secret
func (*RenderedChart) FileContent ¶
func (c *RenderedChart) FileContent(filename string) string
FileContent returns explicitly the content of the provided <filename>.
func (*RenderedChart) Files ¶
func (c *RenderedChart) Files() map[string]string
Files returns all rendered manifests mapping their names to their content.
func (*RenderedChart) Manifest ¶
func (c *RenderedChart) Manifest() []byte
Manifest returns the manifest of the rendered chart as byte array.
type SortOrder ¶
type SortOrder []string
SortOrder is an ordering of Kinds.
var InstallOrder SortOrder = []string{
"Namespace",
"ResourceQuota",
"LimitRange",
"PodSecurityPolicy",
"PodDisruptionBudget",
"NetworkPolicy",
"Secret",
"ConfigMap",
"StorageClass",
"PersistentVolume",
"PersistentVolumeClaim",
"ServiceAccount",
"CustomResourceDefinition",
"ClusterRole",
"ClusterRoleBinding",
"Role",
"RoleBinding",
"Service",
"DaemonSet",
"Pod",
"ReplicationController",
"ReplicaSet",
"Deployment",
"StatefulSet",
"Job",
"CronJob",
"Ingress",
"APIService",
}
InstallOrder is the order in which manifests should be installed (by Kind).
Those occurring earlier in the list get installed before those occurring later in the list.