Skip to content

Commit

Permalink
fix: permission denied when checking cluster recon status (#281)
Browse files Browse the repository at this point in the history
Fixes #275
  • Loading branch information
hanxiaop authored Dec 19, 2024
1 parent e5fd5f1 commit e7b7619
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
with:
go-version-file: 'go.mod'
cache: true
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: make generate
- name: git diff
run: |
Expand Down
2 changes: 1 addition & 1 deletion akp/resource_akp_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func getManifests(ctx context.Context, client argocdv1.ArgoCDServiceGatewayClien
if err != nil {
return "", errors.Wrap(err, "Unable to read instance cluster")
}
c, err := waitClusterReconStatus(ctx, client, clusterResp.GetCluster(), orgId, cluster.ID.ValueString())
c, err := waitClusterReconStatus(ctx, client, clusterResp.GetCluster(), orgId, cluster.InstanceID.ValueString())
if err != nil {
return "", errors.Wrap(err, "Unable to check cluster reconciliation status")
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ require (
k8s.io/cli-runtime v0.32.0
k8s.io/client-go v0.32.0
k8s.io/kubectl v0.31.4
sigs.k8s.io/kustomize/api v0.18.0
sigs.k8s.io/yaml v1.4.0
)

Expand Down Expand Up @@ -110,7 +111,6 @@ require (
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
sigs.k8s.io/kustomize/api v0.18.0 // indirect
sigs.k8s.io/kustomize/kyaml v0.18.1 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect
)
Expand Down

0 comments on commit e7b7619

Please sign in to comment.