Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement helpers from pkg/runtime #347

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions api/v1beta1/kustomization_types.go
Expand Up @@ -307,7 +307,19 @@ func (in Kustomization) GetDependsOn() (types.NamespacedName, []dependency.Cross
}, in.Spec.DependsOn
}

// GetConditions returns a slice of the conditions in the
// status of a kustomization
func (in *Kustomization) GetConditions() []metav1.Condition {
return in.Status.Conditions
}

// SetConditions sets the conditions of a kustomization
func (in *Kustomization) SetConditions(conditions []metav1.Condition) {
in.Status.Conditions = conditions
}

// GetStatusConditions returns a pointer to the Status.Conditions slice
// Deprecated.
func (in *Kustomization) GetStatusConditions() *[]metav1.Condition {
return &in.Status.Conditions
}
Expand Down