# Functions
ApplyUnstructuredObjectsWithNewLabels applies the given Unstructured objects on the cluster.
CanIssueGitHubRequest checks if we already called the GitHub API and if call it again since the preconfigured threshold delay expired.
CreateTokenRequest creates a TokenRequest for a service account using given expiration in seconds.
ForceUpdate forces the update of the resource (default: `false`).
No description provided by the author
MergeAnnotations gets current exiting annotations and merges them with the new ones provided.
MergeLabels gets current exiting labels and merges them with the new ones provided.
NewApplyClient returns a new ApplyClient.
NewGitHubClient return a client that interacts with GitHub and has rate limiter configured.
RetainClusterIP sets the `spec.clusterIP` value from the given 'existing' object into the 'newResource' object.
SameGVKandName returns `true` if both objects have the same GroupVersionKind and Name, `false` otherwise.
SaveConfiguration saves the applied configuration in the resource annotations (default: `true`).
SetOwner sets the owner of the resource (default: `nil`).
SortObjectsByName takes the given list of Objects and sorts them by their namespaced name (it joins the object's namespace and name by a coma and compares them) The resulting sorted array is then returned.
# Constants
GitHubAPICallDelay it's used to "slow" down the number of requests we perform to GitHub API , in order to avoid rate limit issues.
LastAppliedConfigurationAnnotationKey the key to save the last applied configuration in the resource annotations.
# Structs
ApplyClient the client to use when creating or updating objects.
No description provided by the author
# Type aliases
ApplyObjectOption an option when creating or updating a resource.
GetGitHubClientFunc a func that returns a GitHub client instance.