# Packages
No description provided by the author
Code generated by counterfeiter.
No description provided by the author
No description provided by the author
# Functions
AddSpinnakerAnnotations adds Spinnaker-defined annotations to a given unstructured resource.
AddSpinnakerLabels labels a given unstructured Kubernetes resource with Spinnaker defined labels.
AddSpinnakerVersionAnnotations adds the following annotations: `artifact.spinnaker.io/version` `moniker.spinnaker.io/sequence` to the manifest to identify the version number of that resource.
AddSpinnakerVersionLabels adds the `moniker.spinnaker.io/sequence` label to the manifest to identify the version number of that resource.
AnnotateTemplate annotates the nested string map located at .spec.template.metadata.annotations.
AnnotationMatches returns true if the value of annotation matches the given value.
BindArtifacts takes in an unstructured Kubernetes object and a slice of artifacts then binds these artifacts to any applicable JSON path for the given artifact.
Generate the cluster that a kind is a part of.
DefaultLabelSelector returns the label selector `app.kubernetes.io/managed-by in (spinnaker,spinnaker-operator)`, which allows us to list all resources with a label selector managed by Spinnaker or Spinnaker Operator.
FilterOnAnnotations takes a slice of unstructured and returns the filtered slice based on a given annotation key and value.
FilterOnLabelExists takes a slice of unstructured and returns a filtered slice where a given label exists in each of the unstructured objects.
FindArtifacts lists all artifacts found in a given manifest.
GetCurrentVersion returns the latest "Spinnaker version" from an unstructured list of Kubernetes resources.
Status definitions of kinds can be found at https://github.com/spinnaker/clouddriver/tree/master/clouddriver-kubernetes/src/main/java/com/netflix/spinnaker/clouddriver/kubernetes/op/handler.
No description provided by the author
IsVersioned returns true is a given Kubernetes unstructured resource is "versioned".
LoadBalancers returns a slice of load balancers from the annotation `traffic.spinnaker.io/load-balancers`.
MaxVersionHistory returns the value as an int of the annotation `strategy.spinnaker.io/max-version-history` of the given Kubernetes unstructured resource, or 0 if annotation is not present.
NameWithVersion removes the Spinnaker version (trailing '-v###) from the name.
NewController returns an instance of Controller.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Recreate returns true if the given Kubernetes unstructured resource has the annotation `strategy.spinnaker.io/recreate` set to "true".
Replace returns true if the given Kubernetes unstructured resource has the annotation `strategy.spinnaker.io/replace` set to "true".
No description provided by the author
No description provided by the author
SetNamespaceOnManifest updates the namespace on the given manifest.
SortManifests takes in a list of manifests and sorts them by the priority of their kind.
SpinnakerMonikerApplication returns the value the annotation `moniker.spinnaker.io/application` of the given Kubernetes unstructured resource, or an empty string if not present.
ToUnstructured converts a map[string]interface{} to a kubernetes unstructured.Unstructured object.
UseDiskCache sets the controller to generate clients that use disk cache instead of memory cache for discovery and HTTP responses.
UseSourceCapacity returns true is a given Kubernetes unstructured resource has the annotation `strategy.spinnaker.io/use-source-capacity` set to "true" and it is of kind Deployment, ReplicaSet, or StatefulSet.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
go:generate counterfeiter .
go:generate counterfeiter .
Controller holds the ability to generate a new dynamic kubernetes client.