Skip to content

Commit

Permalink
Add params to machinepool and support instance configuration upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamradhakrishnan committed Nov 30, 2022
1 parent cd3d7f8 commit 6428e3f
Show file tree
Hide file tree
Showing 32 changed files with 2,554 additions and 592 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ envsubst: $(ENVSUBST) ## Build a local copy of envsubst.
kubectl: $(KUBECTL) ## Build a local copy of kubectl.

$(CONTROLLER_GEN): ## Download controller-gen locally if necessary.
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) sigs.k8s.io/controller-tools/cmd/controller-gen $(CONTROLLER_GEN_BIN) v0.7.0
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) sigs.k8s.io/controller-tools/cmd/controller-gen $(CONTROLLER_GEN_BIN) v0.10.0

$(KUSTOMIZE): ## Download kustomize locally if necessary.
GOBIN=$(BIN_DIR)/ $(GO_INSTALL) sigs.k8s.io/kustomize/kustomize/v4 $(KUSTOMIZE_BIN) v4.5.2
Expand Down
4 changes: 2 additions & 2 deletions api/v1beta1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ limitations under the License.
*/

// Package v1beta1 contains API Schema definitions for the infrastructure v1beta1 API group
//+kubebuilder:object:generate=true
//+groupName=infrastructure.cluster.x-k8s.io
// +kubebuilder:object:generate=true
// +groupName=infrastructure.cluster.x-k8s.io
package v1beta1

import (
Expand Down
4 changes: 2 additions & 2 deletions api/v1beta1/ocimachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ type OCIMachineSpec struct {
// PreemptibleInstanceConfig Configuration options for preemptible instances.
PreemptibleInstanceConfig *PreemptibleInstanceConfig `json:"preemptibleInstanceConfig,omitempty"`

// LaunchInstanceAgentConfig defines the options for the Oracle Cloud Agent software running on the instance.
// AgentConfig defines the options for the Oracle Cloud Agent software running on the instance.
AgentConfig *LaunchInstanceAgentConfig `json:"agentConfig,omitempty"`

// InstanceSourceViaImageConfig defines the options for booting up instances via images
InstanceSourceViaImageDetails *InstanceSourceViaImageConfig `json:"instanceSourceViaImageConfig,omitempty"`

// InstanceSourceViaImageConfig defines the platform config parameters
// PlatformConfig defines the platform config parameters
PlatformConfig *PlatformConfig `json:"platformConfig,omitempty"`

// DedicatedVmHostId defines the OCID of the dedicated VM host.
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ type VCN struct {
NetworkSecurityGroups []*NSG `json:"networkSecurityGroups,omitempty"`
}

//LoadBalancer Configuration
// LoadBalancer Configuration
type LoadBalancer struct {
//LoadBalancer Name.
// +optional
Expand Down
2 changes: 1 addition & 1 deletion cloud/scope/clients_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func MockAuthConfig() (config.AuthConfig, error) {
authConfig := config.AuthConfig{
UseInstancePrincipals: false,
Region: MockTestRegion,
Fingerprint: "mock-finger-print",
Fingerprint: "mock_computemanagement-finger-print",
PrivateKey: privateKey,
UserID: "ocid1.tenancy.oc1..<unique_ID>",
TenancyID: "ocid1.tenancy.oc1..<unique_ID>",
Expand Down
2 changes: 1 addition & 1 deletion cloud/scope/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ func (m *MachineScope) ReconcileCreateInstanceOnLB(ctx context.Context) error {
// ReconcileDeleteInstanceOnLB checks to make sure the instance is part of a backend set then deletes the backend
// on the NetworkLoadBalancer
//
// It will await the Work Request completion before returning
// # It will await the Work Request completion before returning
//
// See https://docs.oracle.com/en-us/iaas/Content/NetworkLoadBalancer/BackendServers/backend_server_management.htm#BackendServerManagement
// for more info on Backend Server Management
Expand Down
Loading

0 comments on commit 6428e3f

Please sign in to comment.