Documentation
¶
Index ¶
- Constants
- type BucketRevisionChangePredicate
- type BucketWatcher
- type GitRepositoryRevisionChangePredicate
- type GitRepositoryWatcher
- type KustomizationReconciler
- type KustomizationReconcilerOptions
- type KustomizeDecryptor
- type KustomizeGarbageCollector
- type KustomizeGenerator
- type KustomizeHealthCheck
Constants ¶
const DecryptionProviderSOPS = "sops"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketRevisionChangePredicate ¶ added in v0.0.13
func (BucketRevisionChangePredicate) Create ¶ added in v0.0.13
func (BucketRevisionChangePredicate) Create(e event.CreateEvent) bool
func (BucketRevisionChangePredicate) Delete ¶ added in v0.0.13
func (BucketRevisionChangePredicate) Delete(e event.DeleteEvent) bool
func (BucketRevisionChangePredicate) Update ¶ added in v0.0.13
func (BucketRevisionChangePredicate) Update(e event.UpdateEvent) bool
type BucketWatcher ¶ added in v0.0.13
BucketWatcher watches Bucket objects for revision changes and triggers a reconcile for all the Kustomizations that reference a changed source
func (*BucketWatcher) SetupWithManager ¶ added in v0.0.13
func (r *BucketWatcher) SetupWithManager(mgr ctrl.Manager) error
type GitRepositoryRevisionChangePredicate ¶
func (GitRepositoryRevisionChangePredicate) Create ¶
func (GitRepositoryRevisionChangePredicate) Create(e event.CreateEvent) bool
func (GitRepositoryRevisionChangePredicate) Delete ¶
func (GitRepositoryRevisionChangePredicate) Delete(e event.DeleteEvent) bool
func (GitRepositoryRevisionChangePredicate) Update ¶
func (GitRepositoryRevisionChangePredicate) Update(e event.UpdateEvent) bool
type GitRepositoryWatcher ¶
GitRepositoryWatcher watches GitRepository objects for revision changes and triggers a reconcile for all the Kustomizations that reference a changed source
func (*GitRepositoryWatcher) SetupWithManager ¶
func (r *GitRepositoryWatcher) SetupWithManager(mgr ctrl.Manager) error
type KustomizationReconciler ¶
type KustomizationReconciler struct {
client.Client
Log logr.Logger
Scheme *runtime.Scheme
EventRecorder kuberecorder.EventRecorder
ExternalEventRecorder *events.Recorder
MetricsRecorder *metrics.Recorder
StatusPoller *polling.StatusPoller
// 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 KustomizeGarbageCollector ¶ added in v0.0.9
func NewGarbageCollector ¶ added in v0.0.9
func NewGarbageCollector(kubeClient client.Client, snapshot kustomizev1.Snapshot, log logr.Logger) *KustomizeGarbageCollector
func (*KustomizeGarbageCollector) Prune ¶ added in v0.0.9
func (kgc *KustomizeGarbageCollector) Prune(timeout time.Duration, name string, namespace string) (string, bool)
Prune deletes Kubernetes objects removed from source. Namespaced objects are removed before global ones, as in CRs before CRDs. The garbage collector determines what objects to prune based on a label selector that contains the previously applied revision. The garbage collector ignores objects that are no longer present on the cluster or if they are marked for deleting using Kubernetes finalizers.
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
type KustomizeHealthCheck ¶ added in v0.0.12
type KustomizeHealthCheck struct {
// contains filtered or unexported fields
}
func NewHealthCheck ¶ added in v0.0.12
func NewHealthCheck(kustomization kustomizev1.Kustomization, statusPoller *polling.StatusPoller) *KustomizeHealthCheck