Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the v1 API group +kubebuilder:object:generate=true +groupName=porter.sh
Index ¶
- Variables
- type AgentConfig
- type AgentConfigList
- type AgentConfigSpec
- func (in *AgentConfigSpec) DeepCopy() *AgentConfigSpec
- func (in *AgentConfigSpec) DeepCopyInto(out *AgentConfigSpec)
- func (c AgentConfigSpec) GetPorterImage() string
- func (c AgentConfigSpec) GetPullPolicy() v1.PullPolicy
- func (c AgentConfigSpec) GetVolumeSize() resource.Quantity
- func (c AgentConfigSpec) MergeConfig(override AgentConfigSpec) AgentConfigSpec
- type Installation
- type InstallationList
- type InstallationSpec
- type InstallationStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "porter.sh", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type AgentConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AgentConfigSpec `json:"spec,omitempty"` }
AgentConfig is the Schema for the agentconfigs API
func (*AgentConfig) DeepCopy ¶
func (in *AgentConfig) DeepCopy() *AgentConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentConfig.
func (*AgentConfig) DeepCopyInto ¶
func (in *AgentConfig) DeepCopyInto(out *AgentConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AgentConfig) DeepCopyObject ¶
func (in *AgentConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AgentConfigList ¶
type AgentConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AgentConfig `json:"items"` }
AgentConfigList contains a list of AgentConfig values.
func (*AgentConfigList) DeepCopy ¶
func (in *AgentConfigList) DeepCopy() *AgentConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentConfigList.
func (*AgentConfigList) DeepCopyInto ¶
func (in *AgentConfigList) DeepCopyInto(out *AgentConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AgentConfigList) DeepCopyObject ¶
func (in *AgentConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AgentConfigSpec ¶
type AgentConfigSpec struct { // PorterRepository is the repository for the Porter Agent image. // Defaults to ghcr.io/getporter/porter PorterRepository string `json:"porterRepository,omitempty"` // PorterVersion is the tag for the Porter Agent image. // Defaults to latest. PorterVersion string `json:"porterVersion,omitempty"` // ServiceAccount is the service account to run the Porter Agent under. ServiceAccount string `json:"serviceAccount,omitempty"` // VolumeSize is the size of the persistent volume that Porter will // request when running the Porter Agent. It is used to share data // between the Porter Agent and the bundle invocation image. It must // be large enough to store any files used by the bundle including credentials, // parameters and outputs. VolumeSize resource.Quantity `json:"volumeSize,omitempty"` // PullPolicy specifies when to pull the Porter Agent image. The default // is to use PullAlways when the tag is canary or latest, and PullIfNotPresent // otherwise. PullPolicy v1.PullPolicy `json:"pullPolicy,omitempty"` }
AgentConfigSpec defines the configuration for the Porter agent.
func (*AgentConfigSpec) DeepCopy ¶
func (in *AgentConfigSpec) DeepCopy() *AgentConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AgentConfigSpec.
func (*AgentConfigSpec) DeepCopyInto ¶
func (in *AgentConfigSpec) DeepCopyInto(out *AgentConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (AgentConfigSpec) GetPorterImage ¶
func (c AgentConfigSpec) GetPorterImage() string
GetPorterImage returns the fully qualified image name of the Porter Agent image. Defaults the repository and tag when not set.
func (AgentConfigSpec) GetPullPolicy ¶
func (c AgentConfigSpec) GetPullPolicy() v1.PullPolicy
GetPullPolicy returns the PullPolicy that should be used for the Porter Agent (not the bundle). Defaults to PullAlways for latest and canary, PullIfNotPresent otherwise.
func (AgentConfigSpec) GetVolumeSize ¶
func (c AgentConfigSpec) GetVolumeSize() resource.Quantity
GetVolumeSize returns the size of the shared volume to mount between the Porter Agent and the bundle's invocation image. Defaults to 64Mi.
func (AgentConfigSpec) MergeConfig ¶
func (c AgentConfigSpec) MergeConfig(override AgentConfigSpec) AgentConfigSpec
MergeConfig from another AgentConfigSpec. The values from the override are applied only when they are not empty.
type Installation ¶
type Installation struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec InstallationSpec `json:"spec,omitempty"` Status InstallationStatus `json:"status,omitempty"` }
Installation is the Schema for the installations API
func (*Installation) DeepCopy ¶
func (in *Installation) DeepCopy() *Installation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Installation.
func (*Installation) DeepCopyInto ¶
func (in *Installation) DeepCopyInto(out *Installation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Installation) DeepCopyObject ¶
func (in *Installation) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstallationList ¶
type InstallationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Installation `json:"items"` }
InstallationList contains a list of Installation
func (*InstallationList) DeepCopy ¶
func (in *InstallationList) DeepCopy() *InstallationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstallationList.
func (*InstallationList) DeepCopyInto ¶
func (in *InstallationList) DeepCopyInto(out *InstallationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstallationList) DeepCopyObject ¶
func (in *InstallationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstallationSpec ¶
type InstallationSpec struct { // Reference to the bundle in an OCI Registry, e.g. getporter/porter-hello:v0.1.1. Reference string `json:"reference"` // Action defined in the bundle to execute. If unspecified, Porter will run an // install if the installation does not exist, or an upgrade otherwise. Action string `json:"action"` // AgentConfig overrides the Porter Agent configuration defined at the namespace or system level. // +optional AgentConfig AgentConfigSpec `json:"agentConfig,omitEmpty"` // TODO: Make this a reference // CredentialSets is a list of credential set names. CredentialSets []string `json:"credentialSets,omitempty"` // ParameterSets is a list of parameter set names. ParameterSets []string `json:"parameterSets,omitempty"` // Parameters is a list of parameter set names. Parameters map[string]string `json:"parameters,omitempty"` }
InstallationSpec defines the desired state of Installation
func (*InstallationSpec) DeepCopy ¶
func (in *InstallationSpec) DeepCopy() *InstallationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstallationSpec.
func (*InstallationSpec) DeepCopyInto ¶
func (in *InstallationSpec) DeepCopyInto(out *InstallationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstallationStatus ¶
type InstallationStatus struct { ActiveJob v1.LocalObjectReference `json:"activeJob,omitempty"` LastJob v1.LocalObjectReference `json:"lastJob,omitempty"` }
InstallationStatus defines the observed state of Installation
func (*InstallationStatus) DeepCopy ¶
func (in *InstallationStatus) DeepCopy() *InstallationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstallationStatus.
func (*InstallationStatus) DeepCopyInto ¶
func (in *InstallationStatus) DeepCopyInto(out *InstallationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.