config

package
v0.0.0-...-f3bcdec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright © 2023 The Helm Compose Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	V1_0 = semver.MustParse("1.0")
	V1_1 = semver.MustParse("1.1")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Version      string             `yaml:"apiVersion,omitempty"`
	Storage      Storage            `yaml:"storage,omitempty"`
	Releases     map[string]Release `yaml:"releases,omitempty"`
	Repositories map[string]string  `yaml:"repositories,omitempty"`
}

func ParseComposeFile

func ParseComposeFile(filename string) (*Config, error)

func (*Config) Equal

func (c *Config) Equal(o *Config) bool

type ProviderType

type ProviderType string
const (
	Local      ProviderType = "local"
	Kubernetes ProviderType = "kubernetes"
	S3         ProviderType = "s3"
)

type Release

type Release struct {
	Name             string                 `yaml:"name,omitempty"`
	Chart            string                 `yaml:"chart,omitempty"`
	ChartVersion     string                 `yaml:"chartVersion,omitempty"`
	Namespace        string                 `yaml:"namespace,omitempty"`
	ForceUpdate      bool                   `yaml:"forceUpdate,omitempty"`
	HistoryMax       int                    `yaml:"historyMax,omitempty"`
	CreateNamespace  bool                   `yaml:"createNamespace,omitempty"`
	CleanUpOnFail    bool                   `yaml:"cleanupOnFail,omitempty"`
	DependencyUpdate bool                   `yaml:"dependencyUpdate,omitempty"`
	SkipTLSVerify    bool                   `yaml:"skipTlsVerify,omitempty"`
	SkipCRDs         bool                   `yaml:"skipCrds,omitempty"`
	PostRenderer     string                 `yaml:"postRenderer,omitempty"`
	PostRendererArgs []string               `yaml:"postRendererArgs,omitempty"`
	KubeConfig       string                 `yaml:"kubeconfig,omitempty"`
	KubeContext      string                 `yaml:"kubecontext,omitempty"`
	CAFile           string                 `yaml:"caFile,omitempty"`
	CertFile         string                 `yaml:"certFile,omitempty"`
	KeyFile          string                 `yaml:"keyFile,omitempty"`
	Timeout          string                 `yaml:"timeout,omitempty"`
	Wait             bool                   `yaml:"wait,omitempty"`
	Values           map[string]interface{} `yaml:"values,omitempty"`
	ValueFiles       []string               `yaml:"valueFiles,omitempty"`

	// Uninstall flags
	DeletionStrategy string `yaml:"deletionStrategy,omitempty"`
	DeletionTimeout  string `yaml:"deletionTimeout,omitempty"`
	DeletionNoHooks  bool   `yaml:"deletionNoHooks,omitempty"`
	KeepHistory      bool   `yaml:"keepHistory,omitempty"`
}

type Storage

type Storage struct {
	Type              ProviderType `yaml:"type,omitempty"`
	Name              string       `yaml:"name,omitempty"`
	NumberOfRevisions int          `yaml:"numberOfRevisions,omitempty"`
	// Local storage fields
	Path string `yaml:"path,omitempty"`
	// K8s storage fields
	Namespace   string `yaml:"namespace,omitempty"`
	KubeConfig  string `yaml:"kubeconfig,omitempty"`
	KubeContext string `yaml:"kubecontext,omitempty"`
	// S3 storage fields
	S3Bucket         string `yaml:"s3bucket,omitempty"`
	S3Prefix         string `yaml:"s3prefix,omitempty"`
	S3Region         string `yaml:"s3region,omitempty"`
	S3Endpoint       string `yaml:"s3endpoint,omitempty"`
	S3Insecure       bool   `yaml:"s3insecure,omitempty"`
	S3DisableSSL     bool   `yaml:"s3disableSSL,omitempty"`
	S3ForcePathStyle bool   `yaml:"s3forcePathStyle,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳