package
0.0.0-20241226233044-afd6eff60b33
Repository: https://github.com/wille/review-app-operator.git
Documentation: pkg.go.dev
# Functions
GetChildResourceName returns a child resource name for a reviewapp and pull request.
No description provided by the author
GetDeploymentStatus returns the status of a deployment like `kubectl rollout status`.
GetHostnameFromTemplate generates a hostname from a template string.
GetHostnamesFromTemplate returns a list of interpolated hostname templates for a a given deployment, pr and review app.
GetResourceLabels returns the labels for all ReviewAppConfig child resources with all user supplied labels included.
GetResourceName returns a normalized resource name.
GetSelectorLabels returns selector labels to be used with pod selectors in Services and Deployments.
ImageHasDigest checks if the image has a digest.
IsImageAllowed checks if the image matches the base image set on the deployments in a ReviewAppConfig.
IsSameImageRepo checks if two image names and tags are from the same repository gchr.io/test/repo:v1 and gchr.io/test/repo:v2 is the same repository gchr.io/test/repo:v1 and gchr.io/test/example:v1 is not.
No description provided by the author
# Constants
HostIndexFieldName is the field indexes on Services to store the hostnames they are active for.
# Variables
MatchingLabels selector to select resources managed by the review-app-controller.
# Structs
No description provided by the author