Documentation
¶
Index ¶
- Constants
- func AddObjectsToInventory(inv *kustomizev1.ResourceInventory, objects []*unstructured.Unstructured) error
- func DiffInventory(inv *kustomizev1.ResourceInventory, target *kustomizev1.ResourceInventory) ([]*unstructured.Unstructured, error)
- func ListMetaInInventory(inv *kustomizev1.ResourceInventory) ([]object.ObjMetadata, error)
- func ListObjectsInInventory(inv *kustomizev1.ResourceInventory) ([]*unstructured.Unstructured, error)
- func NewInventory() *kustomizev1.ResourceInventory
- type KustomizationReconciler
- type KustomizationReconcilerOptions
- type KustomizeDecryptor
- type KustomizeGenerator
- type KustomizeImpersonation
- type SourceRevisionChangePredicate
Constants ¶
const DecryptionProviderSOPS = "sops"
Variables ¶
This section is empty.
Functions ¶
func AddObjectsToInventory ¶ added in v0.15.0
func AddObjectsToInventory(inv *kustomizev1.ResourceInventory, objects []*unstructured.Unstructured) error
AddObjectsToInventory extracts the metadata from the given objects and adds it to the inventory.
func DiffInventory ¶ added in v0.15.0
func DiffInventory(inv *kustomizev1.ResourceInventory, target *kustomizev1.ResourceInventory) ([]*unstructured.Unstructured, error)
DiffInventory returns the slice of objects that do not exist in the target inventory.
func ListMetaInInventory ¶ added in v0.15.0
func ListMetaInInventory(inv *kustomizev1.ResourceInventory) ([]object.ObjMetadata, error)
ListMetaInInventory returns the inventory entries as object.ObjMetadata objects.
func ListObjectsInInventory ¶ added in v0.15.0
func ListObjectsInInventory(inv *kustomizev1.ResourceInventory) ([]*unstructured.Unstructured, error)
ListObjectsInInventory returns the inventory entries as unstructured.Unstructured objects.
func NewInventory ¶ added in v0.15.0
func NewInventory() *kustomizev1.ResourceInventory
Types ¶
type KustomizationReconciler ¶
type KustomizationReconciler struct {
client.Client
Scheme *runtime.Scheme
EventRecorder kuberecorder.EventRecorder
ExternalEventRecorder *events.Recorder
MetricsRecorder *metrics.Recorder
StatusPoller *polling.StatusPoller
ControllerName string
// contains filtered or unexported fields
}
KustomizationReconciler reconciles a Kustomization object
func (*KustomizationReconciler) SetupWithManager ¶
func (r *KustomizationReconciler) SetupWithManager(mgr ctrl.Manager, opts KustomizationReconcilerOptions) error
type KustomizeDecryptor ¶ added in v0.0.9
func NewDecryptor ¶ added in v0.0.9
func NewDecryptor(kubeClient client.Client, kustomization kustomizev1.Kustomization, homeDir string) *KustomizeDecryptor
func NewTempDecryptor ¶ added in v0.0.9
func NewTempDecryptor(kubeClient client.Client, kustomization kustomizev1.Kustomization) (*KustomizeDecryptor, func(), error)
func (*KustomizeDecryptor) ImportKeys ¶ added in v0.0.9
func (kd *KustomizeDecryptor) ImportKeys(ctx context.Context) error
type KustomizeGenerator ¶ added in v0.0.9
type KustomizeGenerator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶ added in v0.0.9
func NewGenerator(kustomization kustomizev1.Kustomization) *KustomizeGenerator
func (*KustomizeGenerator) WriteFile ¶ added in v0.0.9
func (kg *KustomizeGenerator) WriteFile(dirPath string) error
type KustomizeImpersonation ¶ added in v0.6.0
func NewKustomizeImpersonation ¶ added in v0.6.0
func NewKustomizeImpersonation( kustomization kustomizev1.Kustomization, kubeClient client.Client, statusPoller *polling.StatusPoller, workdir string) *KustomizeImpersonation
func (*KustomizeImpersonation) GetClient ¶ added in v0.6.0
func (ki *KustomizeImpersonation) GetClient(ctx context.Context) (client.Client, *polling.StatusPoller, error)
GetClient creates a controller-runtime client for talking to a Kubernetes API server. If KubeConfig is set, will use the kubeconfig bytes from the Kubernetes secret. If ServiceAccountName is set, will use the cluster provided kubeconfig impersonating the SA. If --kubeconfig is set, will use the kubeconfig file at that location. Otherwise will assume running in cluster and use the cluster provided kubeconfig.
func (*KustomizeImpersonation) GetServiceAccountToken ¶ added in v0.6.0
func (ki *KustomizeImpersonation) GetServiceAccountToken(ctx context.Context) (string, error)
type SourceRevisionChangePredicate ¶ added in v0.2.0
func (SourceRevisionChangePredicate) Update ¶ added in v0.2.0
func (SourceRevisionChangePredicate) Update(e event.UpdateEvent) bool