Documentation ¶
Index ¶
- Constants
- func EnsureAppReleaseCRD(restcfg *rest.Config, mapper meta.RESTMapper) error
- func GenerateAppReleaseObject(chrt *chart.Chart, model releasesapi.Metadata) (*driversapi.AppRelease, error)
- func ParseKey(key string) (string, int, error)
- func ResourceFilename(apiVersion, kind, chartName, name string) (string, string, string)
- func ResourceKey(apiVersion, kind, chartName, name string) (string, error)
- type AppReleases
- func (d *AppReleases) Create(_ string, rls *rspb.Release) error
- func (d *AppReleases) Delete(key string) (rls *rspb.Release, err error)
- func (d *AppReleases) Get(key string) (*rspb.Release, error)
- func (d *AppReleases) List(filter func(*rspb.Release) bool) ([]*rspb.Release, error)
- func (d *AppReleases) Name() string
- func (d *AppReleases) Query(labels map[string]string) ([]*rspb.Release, error)
- func (d *AppReleases) Update(_ string, rls *rspb.Release) error
- type EditorTemplate
Constants ¶
const AppReleasesDriverName = "drivers.x-helm.dev/appreleases"
AppReleasesDriverName is the string name of the driver.
Variables ¶
This section is empty.
Functions ¶
func EnsureAppReleaseCRD ¶ added in v0.7.0
func EnsureAppReleaseCRD(restcfg *rest.Config, mapper meta.RESTMapper) error
func GenerateAppReleaseObject ¶ added in v0.7.0
func GenerateAppReleaseObject(chrt *chart.Chart, model releasesapi.Metadata) (*driversapi.AppRelease, error)
func ParseKey ¶
ParseKey returns release name and version from a key generated by makeKey. ref: https://github.com/helm/helm/blob/241785c70fb38b2c074d7b3ddf0925812fb3fc69/pkg/storage/storage.go#L242-L250
func ResourceFilename ¶
func ResourceKey ¶
Types ¶
type AppReleases ¶ added in v0.6.0
type AppReleases struct { Log func(string, ...interface{}) // contains filtered or unexported fields }
AppReleases is a wrapper around an implementation of a kubernetes AppReleasesInterface.
func NewAppReleases ¶ added in v0.6.0
func NewAppReleases(ai client.Client) *AppReleases
NewAppReleases initializes a new AppReleases wrapping an implementation of the kubernetes AppReleasesInterface.
func (*AppReleases) Create ¶ added in v0.6.0
func (d *AppReleases) Create(_ string, rls *rspb.Release) error
Create creates a new AppRelease holding the release. If the AppRelease already exists, ErrReleaseExists is returned.
func (*AppReleases) Delete ¶ added in v0.6.0
func (d *AppReleases) Delete(key string) (rls *rspb.Release, err error)
Delete deletes the AppRelease holding the release named by key.
func (*AppReleases) Get ¶ added in v0.6.0
func (d *AppReleases) Get(key string) (*rspb.Release, error)
Get fetches the release named by key. The corresponding release is returned or error if not found.
func (*AppReleases) List ¶ added in v0.6.0
List fetches all releases and returns the list releases such that filter(release) == true. An error is returned if the configmap fails to retrieve the releases.
func (*AppReleases) Name ¶ added in v0.6.0
func (d *AppReleases) Name() string
Name returns the name of the driver.
type EditorTemplate ¶
type EditorTemplate struct { Manifest []byte `json:"manifest,omitempty"` Values *unstructured.Unstructured `json:"values,omitempty"` }
func EditorChartValueManifest ¶
func EditorChartValueManifest(kc client.Client, app *driversapi.AppRelease, rls types.NamespacedName, editorGVR *metav1.GroupVersionResource) (*EditorTemplate, error)