okecapidriver

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OKEMetadataItem

type OKEMetadataItem struct {
	KubernetesVersion *semver.Version
}

type ProvisioningCluster

type ProvisioningCluster struct {
	APIVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
	Metadata   struct {
		Annotations struct {
			FieldCattleIoCreatorID             string `json:"field.cattle.io/creatorId"`
			ObjectsetRioCattleIoApplied        string `json:"objectset.rio.cattle.io/applied"`
			ObjectsetRioCattleIoID             string `json:"objectset.rio.cattle.io/id"`
			ObjectsetRioCattleIoOwnerGvk       string `json:"objectset.rio.cattle.io/owner-gvk"`
			ObjectsetRioCattleIoOwnerName      string `json:"objectset.rio.cattle.io/owner-name"`
			ObjectsetRioCattleIoOwnerNamespace string `json:"objectset.rio.cattle.io/owner-namespace"`
		} `json:"annotations"`
		CreationTimestamp time.Time `json:"creationTimestamp"`
		Finalizers        []string  `json:"finalizers"`
		Generation        int       `json:"generation"`
		Labels            struct {
			ObjectsetRioCattleIoHash string `json:"objectset.rio.cattle.io/hash"`
		} `json:"labels"`
		Name            string `json:"name"`
		Namespace       string `json:"namespace"`
		ResourceVersion string `json:"resourceVersion"`
		UID             string `json:"uid"`
	} `json:"metadata"`
	Spec struct {
		LocalClusterAuthEndpoint struct {
		} `json:"localClusterAuthEndpoint"`
	} `json:"spec"`
	Status struct {
		AgentDeployed    bool   `json:"agentDeployed"`
		ClientSecretName string `json:"clientSecretName"`
		ClusterName      string `json:"clusterName"`
		Conditions       []struct {
			Status         string    `json:"status"`
			Type           string    `json:"type"`
			LastUpdateTime time.Time `json:"lastUpdateTime,omitempty"`
		} `json:"conditions"`
		ObservedGeneration int  `json:"observedGeneration"`
		Ready              bool `json:"ready"`
	} `json:"status"`
}

Represents the clusters.provisioning.cattle.io object

type RancherCloudCred

type RancherCloudCred struct {
	Type     string `json:"type"`
	Metadata struct {
		GenerateName string `json:"generateName"`
		Namespace    string `json:"namespace"`
	} `json:"metadata"`
	InternalName string `json:"_name"`
	Annotations  struct {
		ProvisioningCattleIoDriver string `json:"provisioning.cattle.io/driver"`
	} `json:"annotations"`
	RancherOcicredentialConfig `json:"ocicredentialConfig"`
	InternalType               string `json:"_type"`
	Name                       string `json:"name"`
}

Used for filling the body of the API request to create the cloud credential

type RancherOKECAPIEngine

type RancherOKECAPIEngine struct {
	CloudCredentialID     string   `json:"cloudCredentialId"`
	ClusterCidr           string   `json:"clusterCidr"`
	CompartmentID         string   `json:"compartmentId"`
	ControlPlaneSubnet    string   `json:"controlPlaneSubnet"`
	DisplayName           string   `json:"displayName"`
	DriverName            string   `json:"driverName"`
	ImageDisplayName      string   `json:"imageDisplayName"`
	ImageID               string   `json:"imageId"`
	KubernetesVersion     string   `json:"kubernetesVersion"`
	LoadBalancerSubnet    string   `json:"loadBalancerSubnet"`
	Name                  string   `json:"name"`
	NodePublicKeyContents string   `json:"nodePublicKeyContents"`
	PodCidr               string   `json:"podCidr"`
	Region                string   `json:"region"`
	VcnID                 string   `json:"vcnId"`
	WorkerNodeSubnet      string   `json:"workerNodeSubnet"`
	Type                  string   `json:"type"`
	NodeShape             string   `json:"nodeShape"`
	NodePools             []string `json:"nodePools"`
	ApplyYamls            []string `json:"applyYamls"`
	InstallVerrazzano     bool     `json:"installVerrazzano"`
}

type RancherOKECluster

type RancherOKECluster struct {
	DockerRootDir           string               `json:"dockerRootDir"`
	EnableClusterAlerting   bool                 `json:"enableClusterAlerting"`
	EnableClusterMonitoring bool                 `json:"enableClusterMonitoring"`
	EnableNetworkPolicy     bool                 `json:"enableNetworkPolicy"`
	WindowsPreferedCluster  bool                 `json:"windowsPreferedCluster"`
	Type                    string               `json:"type"`
	Name                    string               `json:"name"`
	Description             string               `json:"description"`
	OKECAPIEngineConfig     RancherOKECAPIEngine `json:"okecapiEngineConfig"`
	CloudCredentialID       string               `json:"cloudCredentialId"`
	Labels                  struct {
	} `json:"labels"`
}

Used for filling the body of the API request to create/update the OKE cluster

type RancherOcicredentialConfig

type RancherOcicredentialConfig struct {
	Fingerprint        string `json:"fingerprint"`
	PrivateKeyContents string `json:"privateKeyContents"`
	Region             string `json:"region"`
	TenancyID          string `json:"tenancyId"`
	UserID             string `json:"userId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL