package scaffold
import "github.com/oslokommune/okctl/pkg/scaffold"
Package scaffold knows how to generate necessary resources for deploying an okctl application
Package scaffold knows how to turn an okctl application into Kubernetes and ArgoCD resources
Index ¶
- func GenerateApplicationBase(opts GenerateApplicationBaseOpts) error
- func GenerateApplicationOverlay(opts GenerateApplicationOverlayOpts) error
- func GenerateArgoCDApplicationManifest(opts GenerateArgoCDApplicationManifestOpts) (io.Reader, error)
- func ResourceAsBytes(data interface{}) ([]byte, error)
- type GenerateApplicationBaseOpts
- type GenerateApplicationOverlayOpts
- type GenerateArgoCDApplicationManifestOpts
- type ManifestSaver
- type PatchSaver
Functions ¶
func GenerateApplicationBase ¶
func GenerateApplicationBase(opts GenerateApplicationBaseOpts) error
GenerateApplicationBase converts an Application to Kustomize base files
func GenerateApplicationOverlay ¶
func GenerateApplicationOverlay(opts GenerateApplicationOverlayOpts) error
GenerateApplicationOverlay generates patches for environment specific parts of the kubernetes resources
func GenerateArgoCDApplicationManifest ¶
func GenerateArgoCDApplicationManifest(opts GenerateArgoCDApplicationManifestOpts) (io.Reader, error)
GenerateArgoCDApplicationManifest generates an ArgoCD Application manifest
func ResourceAsBytes ¶
ResourceAsBytes knows how to convert a Kubernetes resource to a byte array
Types ¶
type GenerateApplicationBaseOpts ¶
type GenerateApplicationBaseOpts struct { SaveManifest ManifestSaver Application v1alpha1.Application }
GenerateApplicationBaseOpts contains required data to generate application base manifests
type GenerateApplicationOverlayOpts ¶
type GenerateApplicationOverlayOpts struct { SavePatch PatchSaver Application v1alpha1.Application Domain string CertificateARN string }
GenerateApplicationOverlayOpts contains required data to generate application patches
type GenerateArgoCDApplicationManifestOpts ¶
type GenerateArgoCDApplicationManifestOpts struct { Name string Namespace string IACRepoURL string SourceSyncDir string Prune bool }
GenerateArgoCDApplicationManifestOpts contains required information to generate an ArgoCD Application Manifest
type ManifestSaver ¶
ManifestSaver defines a function which store manifests
type PatchSaver ¶
PatchSaver defines a function which store patches
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
pkg/scaffold/resources | Package resources knows how to generate Kubernetes, Kustomize and ArgoCD resources |
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 18 hours ago –
Tools for package owners.