Documentation ¶
Index ¶
- Constants
- func BoolEnv(name string) bool
- func ClearObjectHash(obj runtime.Object)
- func FluxLabels(cr *v1alpha1.Flux) map[string]string
- func FluxNamespace(cr *v1alpha1.Flux) string
- func GetObject(object runtime.Object, existing []runtime.Object) runtime.Object
- func GetObjectHash(obj runtime.Object) string
- func Getenv(name, value string) string
- func HashObject(obj runtime.Object) string
- func LatestRelease(repo string) (string, error)
- func ListOptionsForFlux(cr *v1alpha1.Flux) *metav1.ListOptions
- func NewObjectMeta(cr *v1alpha1.Flux, name string) metav1.ObjectMeta
- func ObjectName(object runtime.Object) string
- func ObjectNameMatches(first runtime.Object, second runtime.Object) bool
- func OwnedByFlux(cr *v1alpha1.Flux, obj runtime.Object) bool
- func ReadableObjectName(cr *v1alpha1.Flux, object runtime.Object) string
- func SetObjectHash(obj runtime.Object)
- func SetObjectOwner(cr *v1alpha1.Flux, obj runtime.Object)
Constants ¶
const ( FLUX_LABEL = "flux.codesink.net.flux" FluxcloudImage = "justinbarrick/fluxcloud" FluxcloudVersion = "v0.3.4" FluxOperatorImage = "justinbarrick/flux-operator" FluxImage = "quay.io/weaveworks/flux" FluxVersion = "1.8.1" HelmOperatorImage = "quay.io/weaveworks/helm-operator" HelmOperatorVersion = "0.4.0" MemcachedImage = "memcached" MemcachedVersion = "1.4.36-alpine" TillerImage = "gcr.io/kubernetes-helm/tiller" TillerVersion = "v2.9.1" )
Variables ¶
This section is empty.
Functions ¶
func BoolEnv ¶
Get an environment variable, pass through strconv.ParseBool, return false if there is an error.
func ClearObjectHash ¶
Takes a Kubernetes object and removes the annotation with its hash.
func FluxLabels ¶
Return the labels that should be set on any object owned by a Flux.
func FluxNamespace ¶
Return the namespace the CR's resources should be created in.
func GetObject ¶
Return the object from existing that matches Name, Namespace, and Kind with object.
func GetObjectHash ¶
Takes a Kubernetes object and returns the hash in its annotations as a string.
func HashObject ¶
Return a SHA1 hash of a Kubernetes object
func LatestRelease ¶ added in v0.0.2
func ListOptionsForFlux ¶
func ListOptionsForFlux(cr *v1alpha1.Flux) *metav1.ListOptions
Return the list options that can be used to find an object owned by a Flux.
func NewObjectMeta ¶
func NewObjectMeta(cr *v1alpha1.Flux, name string) metav1.ObjectMeta
Returns an ObjectMeta for a CR, if name is an empty string it defaults to `"flux-"` + `cr.Name`
func ObjectName ¶
Return a human readable name for an object.
func ObjectNameMatches ¶
Return true if first and second have the same Name, Namespace, and Kind.
func OwnedByFlux ¶
Return true if the object is owned by the Flux.
func ReadableObjectName ¶
Return a human readable string representing the object.
func SetObjectHash ¶
Takes a Kubernetes object and adds an annotation with its hash.
Types ¶
This section is empty.