Skip to content

Commit c571fa3

Browse files
BorisShekJ12934
authored andcommitted
#2724 Add copyright and licensing information for config_loader.go in auto-discovery
Update auto-discovery unit test snapshot. Signed-off-by: Boris Shek <boris.shek@iteratec.com>
1 parent 0c83a71 commit c571fa3

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎auto-discovery/kubernetes/pkg/util/config_loader.go‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: the secureCodeBox authors
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
15
package util
26

37
import (

‎auto-discovery/kubernetes/tests/__snapshot__/auto-discovery_test.yaml.snap‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ matches the snapshot:
1010
},
1111
"containerAutoDiscovery": {
1212
"enabled": false,
13+
"imagePullSecretConfig": {
14+
"mapImagePullSecretsToEnvironmentVariables": true,
15+
"passwordEnvironmentVariableName": "TRIVY_PASSWORD",
16+
"usernameEnvironmentVariableName": "TRIVY_USERNAME"
17+
},
1318
"passiveReconcileInterval": "1m",
1419
"scanConfigs": [
1520
{
@@ -36,11 +41,6 @@ matches the snapshot:
3641
"health": {
3742
"healthProbeBindAddress": ":8081"
3843
},
39-
"imagePullSecretConfig": {
40-
"mapImagePullSecretsToEnvironmentVariables": true,
41-
"passwordEnvironmentVariableName": "TRIVY_PASSWORD",
42-
"usernameEnvironmentVariableName": "TRIVY_USERNAME"
43-
},
4444
"kind": "AutoDiscoveryConfig",
4545
"leaderElection": {
4646
"leaderElect": true,

0 commit comments

Comments
 (0)