Documentation ¶
Index ¶
- Variables
- type ControlPlane
- func (c *ControlPlane) GetAge() *time.Duration
- func (c *ControlPlane) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (c *ControlPlane) GetConnectionSecretToReference() *xpv1.SecretReference
- func (c *ControlPlane) GetControlPlaneID() string
- func (c *ControlPlane) GetCrossplaneVersion() string
- func (c *ControlPlane) GetMessage() string
- func (c *ControlPlane) GetUnstructured() *unstructured.Unstructured
- func (c *ControlPlane) SetConditions(conditions ...xpv1.Condition)
- func (c *ControlPlane) SetControlPlaneID(id string)
- func (c *ControlPlane) SetMessage(msg string)
- func (c *ControlPlane) SetWriteConnectionSecretToReference(ref *xpv1.SecretReference)
- type ControllerConfig
- type Deployment
- type HostCluster
- type Package
- type ProviderConfig
- type Upbound
Constants ¶
This section is empty.
Variables ¶
var ( // ProviderConfigHelmGVK is the GroupVersionKind used for // provider-helm ProviderConfig. ProviderConfigHelmGVK = schema.GroupVersionKind{ Group: "helm.crossplane.io", Version: "v1beta1", Kind: kind, } // ProviderConfigKubernetesGVK is the GroupVersionKind used for // provider-kubernetes ProviderConfig. ProviderConfigKubernetesGVK = schema.GroupVersionKind{ Group: "kubernetes.crossplane.io", Version: "v1alpha1", Kind: kind, } )
var ( // ControlPlaneGVK is the GroupVersionKind used for // provider-kubernetes ProviderConfig. ControlPlaneGVK = schema.GroupVersionKind{ Group: "spaces.upbound.io", Version: "v1beta1", Kind: "ControlPlane", } )
var ( // ControllerConfigGRV is the GroupVersionResource used for // the Crossplane ControllerConfig. ControllerConfigGRV = schema.GroupVersionResource{ Group: "pkg.crossplane.io", Version: "v1alpha1", Resource: "controllerconfigs", } )
var ( // Domain specifies the demo Upbound domain. // NOTE(tnthornton) this field is a temporary measure that will be removed // when the Custom Resource exposes the status.domain field. Domain = "local.upbound.io" )
Functions ¶
This section is empty.
Types ¶
type ControlPlane ¶
type ControlPlane struct {
unstructured.Unstructured
}
ControlPlane represents the ControlPlane CustomResource and extends an unstructured.Unstructured.
func (*ControlPlane) GetAge ¶
func (c *ControlPlane) GetAge() *time.Duration
func (*ControlPlane) GetCondition ¶
func (c *ControlPlane) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition returns the condition for the given xpv1.ConditionType if it exists, otherwise returns nil.
func (*ControlPlane) GetConnectionSecretToReference ¶
func (c *ControlPlane) GetConnectionSecretToReference() *xpv1.SecretReference
GetConnectionSecretToReference of this control plane.
func (*ControlPlane) GetControlPlaneID ¶
func (c *ControlPlane) GetControlPlaneID() string
GetControlPlaneID returns the MXP ID associated with the ControlPlane.
func (*ControlPlane) GetCrossplaneVersion ¶
func (c *ControlPlane) GetCrossplaneVersion() string
func (*ControlPlane) GetMessage ¶
func (c *ControlPlane) GetMessage() string
func (*ControlPlane) GetUnstructured ¶
func (c *ControlPlane) GetUnstructured() *unstructured.Unstructured
GetUnstructured returns the underlying *unstructured.Unstructured.
func (*ControlPlane) SetConditions ¶
func (c *ControlPlane) SetConditions(conditions ...xpv1.Condition)
SetConditions of this composite resource claim.
func (*ControlPlane) SetControlPlaneID ¶
func (c *ControlPlane) SetControlPlaneID(id string)
SetControlPlaneID for the MXP ID associated with the control plane.
func (*ControlPlane) SetMessage ¶ added in v0.32.1
func (c *ControlPlane) SetMessage(msg string)
func (*ControlPlane) SetWriteConnectionSecretToReference ¶
func (c *ControlPlane) SetWriteConnectionSecretToReference(ref *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this control plane.
type ControllerConfig ¶
type ControllerConfig struct {
unstructured.Unstructured
}
ControllerConfig represents a Crossplane ControllerConfig.
func (*ControllerConfig) GetUnstructured ¶
func (c *ControllerConfig) GetUnstructured() *unstructured.Unstructured
GetUnstructured returns the unstructured representation of the package.
func (*ControllerConfig) SetServiceAccountName ¶
func (c *ControllerConfig) SetServiceAccountName(name string)
SetServiceAccountName for the ControllerConfig.
type Deployment ¶
type Deployment struct {
appsv1.Deployment
}
Deployment extends an appsv1.Deployment.
func (*Deployment) GetCondition ¶
func (s *Deployment) GetCondition(ct appsv1.DeploymentConditionType) xpv1.Condition
GetCondition returns the condition for the given DeploymentConditionType if it exists, otherwise returns nil.
type HostCluster ¶
type HostCluster struct {
unstructured.Unstructured
}
HostCluster represents the HostCluster CustomResource and extends an unstructured.Unstructured.
func (*HostCluster) GetCondition ¶
func (h *HostCluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition returns the condition for the given xpv1.ConditionType if it exists, otherwise returns nil.
func (*HostCluster) GetUnstructured ¶
func (h *HostCluster) GetUnstructured() *unstructured.Unstructured
GetUnstructured returns the underlying *unstructured.Unstructured.
func (*HostCluster) SetCompositionSelector ¶
func (h *HostCluster) SetCompositionSelector(sel *metav1.LabelSelector)
SetCompositionSelector of this composite resource claim.
type Package ¶
type Package struct {
unstructured.Unstructured
}
Package represents a Crossplane Package.
func (*Package) GetHealthy ¶
GetHealthy checks whether a package is healhty. If health cannot be determined, false is always returned.
func (*Package) GetInstalled ¶
GetInstalled checks whether a package is installed. If installation status cannot be determined, false is always returned.
func (*Package) GetUnstructured ¶
func (p *Package) GetUnstructured() *unstructured.Unstructured
GetUnstructured returns the unstructured representation of the package.
func (*Package) SetControllerConfigRef ¶
func (p *Package) SetControllerConfigRef(ref xppkgv1.ControllerConfigReference)
SetControllerConfigRef sets the controllerConfigRef on the package.
func (*Package) SetPackage ¶
SetPackage sets the package reference.
type ProviderConfig ¶
type ProviderConfig struct {
unstructured.Unstructured
}
ProviderConfig represents a Crossplane ProviderConfig.
func (*ProviderConfig) GetUnstructured ¶
func (p *ProviderConfig) GetUnstructured() *unstructured.Unstructured
GetUnstructured returns the unstructured representation of the package.
func (*ProviderConfig) SetCredentialsSource ¶
func (p *ProviderConfig) SetCredentialsSource(src xpv1.CredentialsSource)
SetCredentialsSource for the Provider.
type Upbound ¶
type Upbound struct {
unstructured.Unstructured
}
Upbound represents the Upbound CustomResource and extends an unstructured.Unstructured.
func (*Upbound) GetCondition ¶
func (s *Upbound) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition returns the condition for the given xpv1.ConditionType if it exists, otherwise returns nil.
func (*Upbound) GetDomain ¶
GetDomain returns the domain field from the Upbound CustomResource. NOTE(tnthornton) this field does not yet exist on the CustomResource, but will in the near future.
func (*Upbound) GetExternalIP ¶
GetExternalIP returns the externalIP field from the Upbound CustomResource. NOTE(tnthornton) this field does not yet exist on the CustomResource, but will in the near future.