1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-06 00:48:45 +01:00

50 Commits

Author SHA1 Message Date
Thuan Vo
552b61936e CORS-4058: Migrate AWS Destroy to SDK v2 (#9982)
* pkg/destroy/aws/ec2helpers.go

** the bulk of the changes are to the ec2helpers file. All of the sdk v1 imports
are removed except for session as this one is engrained too many files currently.

pkg/destroy/aws/aws.go

** Add a client for ELB ELBV2 and IAM to the Cluster Removal Struct. Even though
these changes are mainly to ec2helpers, the other clients were required in for
certain operations.

** The rest of the file updates are alter ARN import to come from aws sdk v2.

* pkg/destroy/aws/iamhelpers.go

** Remove/Change all imports from AWS sdk v1 to v2.

pkg/destroy/aws/errors.go
pkg/destroy/aws/ec2helpers.go

** Remove the Error checking/formatting function from ec2helpers and put the function
in the errors.go file.

* pkg/destroy/aws/elbhelpers.go

** Remove all SDK v1 imports from elb helpers.

* Add reference to correct HandleErrorCode function.

* pkg/destroy/aws/aws.go

** Update Route53, s3, and efs services to sdk v2. This is slowly removing the
requirement for aws session.

* ** Vendor updates for S3 and EFS services.
** This caused updates to other packages such as aws/config, credentials, stscreds, and
a list of aws internal packages.

* Clean up references and use the exported config creator to create new clients in destroyer.

* ** Migrate the use of resource tagging api to the sdk V2.

pkg/destroy/aws:

** Alter the function name from HandleErrorCode to handleErrorCode. The initial thought was that
this function could be used in other areas of the code, but it will remain in destroy for now.

pkg/destroy/aws/shared.go:

** Remove the session import and uses in the file.

* Fix references to HandleErrorCode.

* kg/destroy/aws/aws.go:

** Remove session from the imports. Added the agent handler to the configurations.

* Fix package updates for vendoring.

* Use the correct private and public zone clients.
Set a Destroy User Agent.
Cleanup pointer references to use the aws sdk.

* The ListUsers API call does not return tags for the IAM users in the
response. There is a separate call ListUserTags to fetch its tag for
checking in the installer code.

* rebase: fix other imports after rebase

* revert: use GetRole/GetUser to fetch tags

An older commit uses ListRoleTags/ListUserTags in order to save
bandwidth by fetching only tags. However, the minimal permission
required for the installer does not have permission iam:ListUserTags or
iam:ListRoleTags, thus causing the deprovisioning to skip users and
roles. This is part of the reasons for previous CI leaks.

This commit reverts the optimisation idea to just user GetRole/GetUser,
which should have sufficient minimal permission policy.

---------

Co-authored-by: barbacbd <barbacbd@gmail.com>
2026-01-27 11:55:23 +00:00
Patrick Dillon
89d9849658 vendor: capi v1.11 & openshift/api
go mod vendor
2025-11-11 16:19:45 -05:00
Patrick Dillon
418324abf8 Revert "Merge pull request #9939 from barbacbd/CORS-4058-release-4.21"
This reverts commit bad1b52003, reversing
changes made to beebc3923c.
2025-09-29 13:14:09 -04:00
barbacbd
4fcea32b3b Fix package updates for vendoring. 2025-09-16 13:27:28 -04:00
barbacbd
6e79cbaeef ** Vendor updates for S3 and EFS services.
** This caused updates to other packages such as aws/config, credentials, stscreds, and
a list of aws internal packages.
2025-09-11 12:47:29 -04:00
Thuan Vo
ab1ef324bf vendor: go mod vendor 2025-08-15 00:34:18 -07:00
Thuan Vo
9b89713e98 vendor: go mod vendor 2025-08-14 10:49:44 -07:00
Patrick Dillon
492e9accba Revert "Merge pull request #9736 from barbacbd/CORS-4058"
This reverts commit 4e8d67e7dd, reversing
changes made to d772abf000.
2025-07-13 11:30:07 -04:00
barbacbd
9ecf060bf0 Removing s3/s3manager to satisfy vendor issues. 2025-07-08 12:05:55 -04:00
barbacbd
50c6848201 ** verify vendor updates for dependent packages. 2025-07-08 12:05:55 -04:00
barbacbd
c3b190be1d ** Vendor updates for S3 and EFS services.
** This caused updates to other packages such as aws/config, credentials, stscreds, and
a list of aws internal packages.
2025-07-08 12:05:05 -04:00
barbacbd
a89342f5fc ** Vendor updates for IAM for AWS SDK V2 2025-07-08 07:36:36 -04:00
barbacbd
f4f2771277 CORS-4060: Migrate AWS sdk to v2 in infrastructure
** Vendor updates
2025-06-02 06:58:38 -04:00
barbacbd
d2f712659a OCPBUGS-47681: Support regions only available in v2 of the aws sdk
** update vendor
2025-02-24 08:08:51 -05:00
Mark Hamzy
455f1504aa PowerVS: Vendoring the rest changes 2024-10-29 07:00:47 -05:00
Mark Hamzy
cd1cf02fbd PowerVS: Vendoring the rest changes 2024-09-13 10:28:09 -05:00
Rafael Fonseca
9bb34f6a8a aws/sdk: update vendor 2024-05-15 14:30:17 -04:00
Marco Braga
6f39575f58 vendor: bump CAPA to get edge zones and TG fixes
Update to CAPA@4c5b811deab41a87a1871c4c9506504a55ab1c5d
with fixes for ELB health check and edge zones support.
2024-04-24 17:39:11 -03:00
Rafael Fonseca
819de7e1d4 Bump CCO: update vendor 2024-04-04 21:23:02 +02:00
Mark Hamzy
cfbd1157c3 PowerVS: Vendoring the rest changes 2024-03-06 10:03:29 -06:00
Patrick Dillon
cc439aa692 vendor: CAPA 2.4.0
go mod tidy && go mod vendor
2024-03-04 14:34:49 -05:00
Sandhya Dasu
af2f207917 Vendor updates corresponding to aws/aws-sdk-go version upgrade 2023-11-20 11:17:43 -05:00
Rafael Fonseca
cba8f1dcde aws: vendor changes 2023-11-16 15:21:11 +01:00
Vince Prignano
56175c97b1 go: update vendor dependencies
Signed-off-by: Vince Prignano <vincepri@redhat.com>
2023-11-01 11:43:46 -07:00
Rafael Fonseca
3af17fa589 aws: vendor changes 2023-03-07 13:19:10 +01:00
Zane Bitter
aed3ddb3bb Update assisted-service vendoring
Update to the assisted-service at commit
a40422bdea617f16cbdb724d53619ca74773be45.

This repo now contains multiple go modules, so we have to add overrides
for the internal references to the api and models modules.
2022-10-12 10:47:13 -04:00
staebler
079884c96e vendor: upgrade aws sdk to v1.43.19
Upgrade github.com/aws/aws-sdk-go to v1.43.19 in order to include the
default route53 endpoints for the isob partition.

```shell
$ git diff vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go | grep -C7 route53.sc2s
+		"route53": service{
+			PartitionEndpoint: "aws-iso-b-global",
+			IsRegionalized:    boxedFalse,
+			Endpoints: serviceEndpoints{
+				endpointKey{
+					Region: "aws-iso-b-global",
+				}: endpoint{
+					Hostname: "route53.sc2s.sgov.gov",
+					CredentialScope: credentialScope{
+						Region: "us-isob-east-1",
+					},
+				},
 			},
 		},
 		"s3": service{
```

https://issues.redhat.com/browse/CORS-1896
2022-03-15 22:05:21 -04:00
staebler
f79f00a14d vendor: update to remove terraform and providers
* Replace terraform modules with github.com/hashicorp/terraform-exec.
* Remove all terraform providers.
* Remove all unneeded replaces.
* Tidy up the replace stanzas so that it is more clear why each replace is needed.
* Remove and re-create all indirect requires to clean up ones that are
  no longer needed.
2022-02-21 10:50:19 -05:00
Marco Braga
a7742fe3e3 aws/ebs-gp3: update go.mod/aws-sdk-go to support gp3
Bump AWS SDK to v1.35.37 to support gp3 volume type.

Required to change the default volumes on control-plane, reference:
- https://github.com/openshift/installer/pull/5239
2021-12-09 10:59:49 -03:00
John Hixson
f826aece02 vendor: bump terraform-provider-aws to to version v2.67.0 2020-07-06 10:38:18 -07:00
John Hixson
4cd576b464 vendor: use openshift fork of terraform-provider-aws and bump to v2.60.0
This is to address the "NoSuchBucket: The specified bucket does not exist"
error as explained in https://bugzilla.redhat.com/show_bug.cgi?id=1759617 and
many other similar bugs. This bug has been "fixed" several times over the
years, yet it continues to rear its ugly self. The ultimate problem is a race
condition with S3 eventual consistency. As described in the bug above, the
bucket does not yet exist when trying to reference tags. The openshift fork
that this commit references, contains an upstream patch as described in
https://github.com/terraform-providers/terraform-provider-aws/pull/13009 that
should address this issue.
2020-05-28 13:25:43 -07:00
Abhinav Dahiya
ff47859e8a vendor: bump tf provider aws to v2.54.0 2020-03-19 10:55:48 -07:00
Abhinav Dahiya
51784a3d2a vendor: bump 2020-02-19 10:56:52 -08:00
Christian Glombek
d02d3f048a Update vendor 2020-02-14 00:08:54 +01:00
patrickdillon
e01424ee15 Vendor: bump AWS SDK to allow cluster destroy in me-south-1 (Bahrain) region.
This vendoring was a result of updating Gopkg.toml and running dep ensure.
2020-01-04 20:18:35 -05:00
Eric Paris
354554d591 dep ensure: we need to add the aws pricing dependancy 2019-02-18 22:56:10 -08:00
Joel Diaz
c108005f61 vendor openshift/cloud-credential-operator
will use pieces from the repo for credential validation

put some dummy imports in pkg/asset/installconfig/aws/permissions.go

then run: dep ensure (version 0.5.0)
2019-02-14 14:51:13 -05:00
W. Trevor King
da9b6c9e62 vendor: Add resourcegroupstaggingapi
And similar, to catch up with the previous commit.  Generated with:

  $ dep ensure

using:

  $ dep version
	dep:
	 version     : v0.5.0
	 build date  :
	 git hash    : 22125cf
	 go version  : go1.10.3
	 go compiler : gc
	 platform    : linux/amd64
	 features    : ImportDuringSolve=false
2019-01-21 15:32:18 -08:00
Devan Goodwin
6a1bbd32b9 Update AWS SDK for user tagging APIs. 2019-01-11 08:23:37 -04:00
Abhinav Dahiya
d92442d096 vendor: add cluster-api, aws, libvirt provider packages and k8s.io/utils
k8s.io/utils/pointer provider various type to *type converts which are helpful
2018-11-02 09:54:58 -07:00
Alex Crawford
8823176aeb vendor: bump github.com/openshift/hive
This gives the installer the ability to tear down NLBs.
2018-11-01 16:50:10 -07:00
W. Trevor King
cd1fe26811 vendor: Update all the unpinned things
Generated with:

  $ rm -rf "$(go env GOPATH)/pkg/dep/sources"
  # to avoid errors like "Unable to update checked out version: fatal: reference is not a tree"
  # possibly [1]
  $ dep ensure -update

using:

  $ dep version
  dep:
   version     : v0.5.0
   build date  :
   git hash    : 22125cf
   go version  : go1.10.3
   go compiler : gc
   platform    : linux/amd64
   features    : ImportDuringSolve=false

I haven't reviewed all of these changes, but I want this to pull in
openshift/hive@b1cad987 (contrib/pkg/awstagdeprovision: Allow for OR
filters, 2018-10-18, openshift/hive#47).

[1]: https://github.com/golang/dep/issues/928#issuecomment-358349626
2018-10-24 20:52:04 -07:00
Abhinav Dahiya
1f45543179 vendor: switch from glide to dep
$ rm -rf tests
$ dep init
// edit Gopkg.toml
```toml
[prune]
  non-go = true
  go-tests = true
  unused-packages = true
```
$ dep ensure
2018-10-02 16:20:31 -07:00
Alex Crawford
1696adc2d8 vendor: update dependencies
No changes to `glide.yaml`; just running an update.
2018-10-02 11:48:37 -07:00
W. Trevor King
1010077129 vendor: Drop github.com/AlecAivazis/survey
Generated with:

  $ glide remove github.com/AlecAivazis/survey
  $ glide get --strip-vendor gopkg.in/AlecAivazis/survey
  [INFO]Preparing to install 1 package.
  [INFO]Attempting to get package gopkg.in/AlecAivazis/survey.v1
  [INFO]--> Gathering release information for gopkg.in/AlecAivazis/survey.v1
  [INFO]The package gopkg.in/AlecAivazis/survey.v1 appears to have Semantic Version releases (http://semver.org).
  [INFO]The latest release is v1.6.2. You are currently not using a release. Would you like
  [INFO]to use this release? Yes (Y) or No (N)
  y
  [INFO]The package gopkg.in/AlecAivazis/survey.v1 appears to use semantic versions (http://semver.org).
  [INFO]Would you like to track the latest minor or patch releases (major.minor.patch)?
  [INFO]The choices are:
  [INFO] - Tracking minor version releases would use '>= 1.6.2, < 2.0.0' ('^1.6.2')
  [INFO] - Tracking patch version releases would use '>= 1.6.2, < 1.7.0' ('~1.6.2')
  [INFO] - Skip using ranges
  [INFO]For more information on Glide versions and ranges see https://glide.sh/docs/versions
  [INFO]Minor (M), Patch (P), or Skip Ranges (S)?
  m
  [INFO]--> Adding gopkg.in/AlecAivazis/survey.v1 to your configuration with the version ^1.6.2
  ...
  $ glide-vc --use-lock-file --no-tests --only-code
  $ git checkout HEAD -- vendor/github.com/shurcooL/httpfs

using:

  $ glide --version
  glide version 0.13.2-dev
  $ (cd $GOPATH/src/github.com/Masterminds/glide && git describe)
  v0.13.1-7-g3e13fd1
  $ (cd $GOPATH/src/github.com/sgotti/glide-vc && git describe)
  v0.1.0-2-g6ddf6ee

The httpfs works around our busted vfsutil vendor, see
a8cce08b (vendor: Add shurcooL/httpfs/vfsutil, 2018-09-26, #340).

The formatting change unwinds ff9e5479 (*: format all yaml files,
2018-09-27, #342), but it doesn't seem to be worth fighting Glide on
this front.
2018-09-28 13:06:27 -07:00
Alex Crawford
de8e527126 vendor: remove unused dependencies
After removing the installer code, these dependencies were removed by
glide.
2018-09-27 22:57:28 -07:00
Alex Crawford
0c6d53b7d6 *: remove bazel
This removes all of the files which are directly required by bazel.
2018-09-27 22:13:02 -07:00
W. Trevor King
4ca049dda0 vendor: Add shurcooL/vfsgen for packaging Terraform modules
When we build releases.  Generated with:

  $ glide get --strip-vendor github.com/shurcooL/vfsgen
  $ glide-vc --use-lock-file --no-tests --only-code
  $ bazel run //:gazelle
  ...
  gazelle: /home/trking/.local/lib/go/src/github.com/openshift/installer/vendor/github.com/libvirt/libvirt-go/callbacks_wrapper.go: error reading go file: /home/trking/.local/lib/go/src/github.com/openshift/installer/vendor/github.com/libvirt/libvirt-go/callbacks_wrapper.go: pkg-config not supported: #cgo pkg-config: libvirt
  ...

using:

  $ glide --version
  glide version 0.13.2-dev
  $ (cd $GOPATH/src/github.com/Masterminds/glide && git describe)
  v0.13.1-7-g3e13fd1
  $ (cd $GOPATH/src/github.com/sgotti/glide-vc && git describe)
  v0.1.0-2-g6ddf6ee
  $ bazel version
  Build label: 0.17.2- (@non-git)
  Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
  Build time: Fri Sep 21 15:04:25 2018 (1537542265)
  Build timestamp: 1537542265
  Build timestamp as int: 1537542265

I'm ignoring the pkg-config issues for now, because we're about to
drop Bazel.
2018-09-26 02:21:43 -07:00
Abhinav Dahiya
a8fc89bec1 vendor: add aws deprovision 2018-09-25 14:46:36 -07:00
W. Trevor King
1e37909931 vendor: Vendor github.com/aws/aws-sdk-go
Generated with:

  $ glide get --strip-vendor github.com/aws/aws-sdk-go
  $ glide-vc --use-lock-file --no-tests --only-code
  $ bazel run //:gazelle

using:

  $ glide --version
  (cd $GOPATH/src/github.com/Masterminds/glide && git describe)
  v0.13.1-7-g3e13fd1
  $ (cd $GOPATH/src/github.com/sgotti/glide-vc && git describe)
  v0.1.0-2-g6ddf6ee
  $ bazel version
  Build label: 0.16.1- (@non-git)
  Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
  Build time: Mon Aug 13 16:42:29 2018 (1534178549)
  Build timestamp: 1534178549
  Build timestamp as int: 1534178549

The pkg/asset/manifests/BUILD.bazel bump catches us up with 161fac43
(asset/manifests: remove custom password generation, 2018-09-20,
2018-09-21 09:40:39 -07:00