Skip to content

Commit 05aacdd

Browse files
committed
feat: use pointer ref
On-behalf-of: Radek Schekalla (SAP) <[email protected]> Signed-off-by: Radek Schekalla (SAP) <[email protected]>
1 parent 6f82a07 commit 05aacdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type Manifest struct {
5959
}
6060

6161
type ExternalSecrets struct {
62-
RepositorySecretRef meta.LocalObjectReference `json:"repositorySecretRef"`
62+
RepositorySecretRef *meta.LocalObjectReference `json:"repositorySecretRef"`
6363
ImagePullSecrets []meta.LocalObjectReference `json:"imagePullSecrets"`
6464
}
6565

internal/eso-deployer/deployer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (d *EsoDeployer) deployRepo(ctx context.Context, res *ocmcli.Resource, repo
142142
Digest: digest,
143143
},
144144
Timeout: &metav1.Duration{Duration: 1 * time.Minute},
145-
SecretRef: &d.Config.ExternalSecrets.RepositorySecretRef,
145+
SecretRef: d.Config.ExternalSecrets.RepositorySecretRef,
146146
},
147147
}
148148
return util.CreateOrUpdate(ctx, d.platformCluster, ociRepo)

0 commit comments

Comments
 (0)