Skip to content

Commit

Permalink
update naming to match functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrozean committed Sep 15, 2023
1 parent 8b424f2 commit 86342f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var (
}

for _, r := range eksGoReleases {
err := r.BackportPatchVersion(cmd.Context(), viper.GetBool(dryrunFlag), "CVE", "HASH", viper.GetString(emailFlag), viper.GetString(userFlag))
err := r.BackportToRelease(cmd.Context(), viper.GetBool(dryrunFlag), "CVE", "HASH", viper.GetString(emailFlag), viper.GetString(userFlag))
if err != nil {
return fmt.Errorf("You have failed this automation: %w", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (
}

for _, r := range eksGoReleases {
err := r.UpdatePatchVersion(cmd.Context(), viper.GetBool(dryrunFlag), viper.GetString(emailFlag), viper.GetString(userFlag))
err := r.UpdateVersion(cmd.Context(), viper.GetBool(dryrunFlag), viper.GetString(emailFlag), viper.GetString(userFlag))
if err != nil {
return fmt.Errorf("You have failed this automation: %w", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
)

// BackportPatchVersion is for updating the files in https://github.com/aws/eks-distro-build-tooling/golang/go for golang versions no longer maintained by upstream.
func (r Release) BackportPatchVersion(ctx context.Context, dryrun bool, cve, commit, email, user string) error {
func (r Release) BackportToRelease(ctx context.Context, dryrun bool, cve, commit, email, user string) error {
// Setup Github Client
retrier := retrier.New(time.Second*380, retrier.WithBackoffFactor(1.5), retrier.WithMaxRetries(15, time.Second*30))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (

// UpdatePatchVersion is for updating the files in https://github.com/aws/eks-distro-build-tooling/golang/go for golang versions still maintained by upstream.
// For EKS Go versions that aren't maintained by upstream, the function is
func (r Release) UpdatePatchVersion(ctx context.Context, dryrun bool, email, user string) error {
func (r Release) UpdateVersion(ctx context.Context, dryrun bool, email, user string) error {
// Setup Github Client
retrier := retrier.New(time.Second*380, retrier.WithBackoffFactor(1.5), retrier.WithMaxRetries(15, time.Second*30))

Expand Down

0 comments on commit 86342f2

Please sign in to comment.