Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=flux.codesink.net
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme // SchemeGroupVersion is the group version used to register these objects. SchemeGroupVersion = schema.GroupVersion{Group: groupName, Version: version} )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type Flux ¶
type Flux struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec FluxSpec `json:"spec"` Status FluxStatus `json:"status,omitempty"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func (*Flux) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Flux.
func (*Flux) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Flux) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FluxCloud ¶
type FluxCloud struct { // If enabled, a fluxcloud instance will be deployed to deliver slack notifications // to a slack channel. Enabled bool `json:"enabled,omitempty"` // Fluxcloud image to use. FluxCloudImage string `json:"fluxCloudImage,omitempty"` // Fluxcloud image version to use. FluxCloudVersion string `json:"fluxCloudVersion,omitempty"` // Github URL to use in Slack notifications (required). GithubURL string `json:"githubUrl"` // Slack webhook URL to use (required). SlackURL string `json:"slackUrl,omitempty"` // Channel to send slack notifications to (required). SlackChannel string `json:"slackChannel,omitempty"` // Slack username to use when sending slack messages (default: `Flux Deployer`) SlackUsername string `json:"slackUser,omitempty"` // Icon emoji to use when sending slack messages (default: `:star-struck:`) SlackIconEmoji string `json:"slackIconEmoji,omitempty"` // Slack webhook URL to use (required). MatrixURL string `json:"matrixUrl,omitempty"` // Channel to send slack notifications to (required). MatrixRoomId string `json:"matrixRoomId,omitempty"` // Slack username to use when sending slack messages (default: `Flux Deployer`) MatrixToken string `json:"matrixToken,omitempty"` BodyTemplate string `json:"bodyTemplate,omitempty"` TitleTemplate string `json:"titleTemplate,omitempty"` }
type FluxList ¶
type FluxList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Flux `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func (*FluxList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxList.
func (*FluxList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FluxList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FluxRole ¶
type FluxRole struct { // If enabled, a role will be assigned to the service account (default: false) Enabled bool `json:"enabled,omitempty"` // the list of rbac rules to use (default: full access). Rules []rbacv1.PolicyRule `json:"rules,omitempty"` }
Represents a Role or ClusterRole for the Flux service account user. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func (*FluxRole) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxRole.
func (*FluxRole) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluxSpec ¶
type FluxSpec struct { // Namespace to deploy Flux and Tiller into. Namespace string `json:"namespace,omitempty"` // The URL to the Git repository (required). GitUrl string `json:"gitUrl"` // The git branch to use (default: `master`). GitBranch string `json:"gitBranch,omitempty"` // The path with in the git repository to look for YAML in (default: `.`) GitPath string `json:"gitPath,omitempty"` // The frequency with which to fetch the git repository (default: `5m0s`). GitPollInterval string `json:"gitPollInterval,omitempty"` // The frequency with which to sync the charts (default: '5m0s`). SyncInterval string `json:"syncInterval,omitempty"` // The Kubernetes secret to use for cloning, if it does not exist it will // be generated (default: `flux-$name-git-deploy` or `$GIT_SECRET_NAME`). GitSecret string `json:"gitSecret,omitempty"` // The contents of the known_hosts file to mount into Flux and helm-operator. KnownHosts string `json:"knownHosts,omitempty"` // The image to use for flux (default: `quay.io/weaveworks/flux` or `$FLUX_IMAGE`). FluxImage string `json:"fluxImage,omitempty"` // The version to use for flux (default: `1.4.0` or `$FLUX_VERSION`). FluxVersion string `json:"fluxVersion,omitempty"` // Resource limits to apply to Flux. Resources *corev1.ResourceRequirements `json:"resources,omitempty"` // A map of args to pass to flux without `--` prepended. Args map[string]string `json:"args,omitempty"` // A role to add to the service account (default: none) Role FluxRole `json:"role,omitempty"` // A cluster role to add to the service account (default: none) ClusterRole FluxRole `json:"clusterRole,omitempty"` // The tiller settings. Tiller Tiller `json:"tiller,omitempty"` // The Helm Operator settings. HelmOperator HelmOperator `json:"helmOperator,omitempty"` // The Fluxcloud settings FluxCloud FluxCloud `json:"fluxCloud,omitempty"` // Endpoint that the flux/fluxcloud instance should be configured to send traces to. JaegerEndpoint string `json:"jaegerEndpoint,omitempty"` }
Settings for operating Flux +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func (*FluxSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxSpec.
func (*FluxSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluxStatus ¶
type FluxStatus struct { }
func (*FluxStatus) DeepCopy ¶
func (in *FluxStatus) DeepCopy() *FluxStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluxStatus.
func (*FluxStatus) DeepCopyInto ¶
func (in *FluxStatus) DeepCopyInto(out *FluxStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmOperator ¶
type HelmOperator struct { // Whether or not to deploy a helm-operator instance in the same namespace (default: false). Enabled bool `json:"enabled,omitempty"` // The image to use with helm-operator (default: `quay.io/weaveworks/helm-operator` or `$HELM_OPERATOR_IMAGE`). HelmOperatorImage string `json:"helmOperatorImage,omitempty"` // The image version to use with helm-operator (default: `master-a61c1d5` or `$HELM_OPERATOR_VERSION`). HelmOperatorVersion string `json:"helmOperatorVersion,omitempty"` // Resource limits to apply to helm-operator. Resources *corev1.ResourceRequirements `json:"resources,omitempty"` // The chart path to use with Helm Operator (default: `.`). ChartPath string `json:"chartPath,omitempty"` // The frequency with which to sync Git (default: the flux `GitPollInterval` or, if not set, `5m0s`). GitPollInterval string `json:"gitPollInterval,omitempty"` // The frequency with which to sync the charts (default: the flux `syncInterval`, or, if not set, `3m0s`). ChartsSyncInterval string `json:"chartsSyncInterval,omitempty"` // The URL of the git repository to use if it is different than the primary flux `GitUrl`. GitUrl string `json:"gitUrl,omitempty"` }
Settings for operating Helm Operator alongside Flux. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
type Tiller ¶
type Tiller struct { // Whether or not to deploy a tiller instance in the same namespace (default: false). Enabled bool `json:"enabled,omitempty"` // The image to use with tiller (default: `gcr.io/kubernetes-helm/tiller` or `$TILLER_IMAGE`). TillerImage string `json:"tillerImage,omitempty"` // The image version to use with tiller (default: `v2.9.1` or `$TILLER_VERSION`). TillerVersion string `json:"tillerVersion,omitempty"` }
Settings for operating Tiller alongside Flux. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true