Skip to content

Commit

Permalink
Merge pull request #3975 from stevekuznetsov/skuznets/cleanup-job
Browse files Browse the repository at this point in the history
HOSTEDCP-1402: cmd/infra/aws/destroy: allow using component credentials
  • Loading branch information
openshift-merge-bot[bot] authored Jun 12, 2024
2 parents eea912a + 2ef1ac1 commit 1f16f14
Show file tree
Hide file tree
Showing 7 changed files with 1,234 additions and 89 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,18 @@ api-docs: $(GENAPIDOCS)
hack/gen-api-docs.sh $(GENAPIDOCS) $(DIR)

.PHONY: clients
clients:
clients: delegating_client
GO=GO111MODULE=on GOFLAGS=-mod=readonly hack/update-codegen.sh


.PHONY: release
release:
go run ./hack/tools/release/notes.go --from=${FROM} --to=${TO} --token=${TOKEN}

.PHONY: delegating_client
delegating_client:
go run ./cmd/infra/aws/delegatingclientgenerator/main.go > ./cmd/infra/aws/delegating_client.txt
mv ./cmd/infra/aws/delegating_client.{txt,go}

.PHONY: app-sre-saas-template
app-sre-saas-template: hypershift
bin/hypershift install \
Expand Down
2 changes: 1 addition & 1 deletion cmd/cluster/aws/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func destroyPlatformSpecifics(ctx context.Context, o *core.DestroyOptions) error
destroyInfraOpts := awsinfra.DestroyInfraOptions{
Region: region,
InfraID: infraID,
AWSCredentialsOpts: o.AWSPlatform.AWSCredentialsOpts,
AWSCredentialsOpts: &awsinfra.DelegatedAWSCredentialOptions{AWSCredentialsOpts: &o.AWSPlatform.AWSCredentialsOpts},
Name: o.Name,
BaseDomain: baseDomain,
BaseDomainPrefix: baseDomainPrefix,
Expand Down
595 changes: 595 additions & 0 deletions cmd/infra/aws/delegating_client.go

Large diffs are not rendered by default.

Loading

0 comments on commit 1f16f14

Please sign in to comment.