Skip to content

Commit ffb143d

Browse files
authored
avoid storing encryptionroleid if TDE is disabled. (#328)
1 parent 8dc2251 commit ffb143d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/e2e.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ jobs:
242242
report:
243243
runs-on: ubuntu-latest
244244
needs: [ "e2e", "upgrade" ]
245-
if: ${{ needs.e2e.outputs.status == 'failure' }}
245+
if: ${{ needs.e2e.outputs.status == 'failure' || needs.upgrade.outputs.status == 'failure' }}
246246
steps:
247247
- name: Report Failure on slack
248-
if: ${{ github.ref_name == 'main' && needs.e2e.outputs.status == 'failure' }}
248+
if: ${{ github.ref_name == 'main' && (needs.e2e.outputs.status == 'failure' || needs.upgrade.outputs.status == 'failure') }}
249249
uses: ravsamhq/notify-slack-action@v2
250250
with:
251251
token: ${{ secrets.GITHUB_TOKEN }}

pkg/resource/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ func (r *ServiceResource) syncServiceState(ctx context.Context, state *models.Se
20092009
Enabled: types.BoolValue(service.HasTransparentDataEncryption),
20102010
}
20112011

2012-
if service.EncryptionRoleID != "" {
2012+
if service.HasTransparentDataEncryption && service.EncryptionRoleID != "" {
20132013
tde.RoleID = types.StringValue(service.EncryptionRoleID)
20142014
} else {
20152015
tde.RoleID = types.StringNull()

0 commit comments

Comments
 (0)