-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6607 from vbhargav875/oci-node-ephemeral-storage
Support scale up of nodepool with zero nodes with ephemeral storage r…
- Loading branch information
Showing
5 changed files
with
88 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
Copyright 2021-2024 Oracle and/or its affiliates. | ||
*/ | ||
|
||
package common | ||
|
||
import ( | ||
oke "k8s.io/autoscaler/cluster-autoscaler/cloudprovider/oci/vendor-internal/github.com/oracle/oci-go-sdk/v65/containerengine" | ||
) | ||
|
||
// TagsGetter returns the oci tags for the pool. | ||
type TagsGetter interface { | ||
GetNodePoolFreeformTags(*oke.NodePool) (map[string]string, error) | ||
} | ||
|
||
// TagsGetterImpl is the implementation to fetch the oci tags for the pool. | ||
type TagsGetterImpl struct{} | ||
|
||
// CreateTagsGetter creates a new oci tags getter. | ||
func CreateTagsGetter() TagsGetter { | ||
return &TagsGetterImpl{} | ||
} | ||
|
||
// GetNodePoolFreeformTags returns the FreeformTags for the nodepool | ||
func (tgi *TagsGetterImpl) GetNodePoolFreeformTags(np *oke.NodePool) (map[string]string, error) { | ||
return np.FreeformTags, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters