Documentation
¶
Index ¶
- Constants
- func IsCredentialsNotFoundError(err error) bool
- func IsInvalidConfig(err error) bool
- func IsMissingOrganizationLabel(err error) bool
- func IsRequirementsNotMet(err error) bool
- func IsTimeout(err error) bool
- func IsTooManyCredentialsError(err error) bool
- func IsUnknownKindError(err error) bool
- func IsVnetCidrNotSetError(err error) bool
- type Config
- type Resource
Constants ¶
const (
Name = "spark"
)
const (
ProviderAzure = "azure"
)
Variables ¶
This section is empty.
Functions ¶
func IsCredentialsNotFoundError ¶
IsCredentialsNotFoundError asserts credentialsNotFoundError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsMissingOrganizationLabel ¶
IsMissingOrganizationLabel asserts missingOrganizationLabel.
func IsRequirementsNotMet ¶
IsRequirementsNotMet asserts requirementsNotMetError.
func IsTooManyCredentialsError ¶
IsTooManyCredentialsError asserts tooManyCredentialsError.
func IsUnknownKindError ¶
IsUnknownKindError asserts unknownKindError.
func IsVnetCidrNotSetError ¶
IsCredentialsNotFoundError asserts credentialsNotFoundError.
Types ¶
type Config ¶
type Config struct {
APIServerSecurePort int
Azure setting.Azure
CalicoCIDRSize int
CalicoMTU int
CalicoSubnet string
CertsSearcher certs.Interface
ClientFactory v5client.OrganizationFactory
ClusterIPRange string
CredentialProvider credential.Provider
CtrlClient client.Client
DockerhubToken string
EtcdPrefix string
Ignition setting.Ignition
Logger micrologger.Logger
OIDC setting.OIDC
RegistryDomain string
RegistryMirrors []string
SSHUserList employees.SSHUserList
SSOPublicKey string
}
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource simulates a CAPI Bootstrap provider by rendering cloudconfig files while watching Spark CRs.
func (*Resource) EnsureCreated ¶
EnsureCreated is checking if corresponding Spark CRD exists. In that case it renders k8scloudconfig for a node pool based on existing CAPI & CAPZ CRs. The rendered config is saved in a Secret, referenced by the Spark CRD.
func (*Resource) EnsureDeleted ¶
EnsureDeleted will delete the `Spark` CR that was created for this specific node pool, and the `Secret` referenced by it.