Skip to content

Commit

Permalink
CRO update + fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhprasad-sap committed Aug 20, 2024
1 parent ca3fae0 commit 0b16a5d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion files/chart/templates/cap-operator-cros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ metadata:
name: {{ include "capApplicationVersionName" $ }}
spec:
capApplicationInstance: "cap-{{ include "appName" $ }}"
version: "{{ .Values.app.version | default .Release.Revision }}"
version: "{{ .Release.Revision }}"
registrySecrets:
{{- range .Values.imagePullSecrets }}
- {{.}}
Expand Down
2 changes: 1 addition & 1 deletion lib/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const cds = require('@sap/cds-dk')
const { copy, rimraf, exists, path, read, write } = cds.utils
const { join } = path
const yaml = require('@sap/cds-foss').yaml
const md5 = data => require('crypto').createHash('md5').update(data).digest('hex');
const md5 = data => require('crypto').createHash('md5').update(data).digest('hex')

const MtaTransformer = require('./mta-transformer')
const { isCAPOperatorChart } = require('./util')
Expand Down
2 changes: 1 addition & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and cap-operator
SPDX-License-Identifier: Apache-2.0
*/

const cds = require('@sap/cds-dk');
const cds = require('@sap/cds-dk')
const { exists, path } = cds.utils

module.exports = class CapOperatorBuildPlugin extends cds.build.Plugin {
Expand Down
2 changes: 1 addition & 1 deletion lib/mta-transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SPDX-License-Identifier: Apache-2.0

const cds = require('@sap/cds-dk')
const { join } = cds.utils.path
const md5 = data => require('crypto').createHash('md5').update(data).digest('hex');
const md5 = data => require('crypto').createHash('md5').update(data).digest('hex')

const { replacePlaceholders, mergeObj } = require('./util')

Expand Down
2 changes: 1 addition & 1 deletion test/files/expectedChart/templates/cap-operator-cros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ metadata:
name: {{ include "capApplicationVersionName" $ }}
spec:
capApplicationInstance: "cap-{{ include "appName" $ }}"
version: "{{ .Values.app.version | default .Release.Revision }}"
version: "{{ .Release.Revision }}"
registrySecrets:
{{- range .Values.imagePullSecrets }}
- {{.}}
Expand Down

0 comments on commit 0b16a5d

Please sign in to comment.