Skip to content

Commit

Permalink
removed cap & cav prefix on cap-operator resources
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhprasad-sap committed Sep 10, 2024
1 parent 0d4872e commit 34feaab
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion files/chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- define "capApplicationVersionName" -}}
{{ printf "cav-%s-%d" (include "appName" $) (.Release.Revision) }}
{{ printf "%s-%d" (include "appName" $) (.Release.Revision) }}
{{- end -}}

{{- define "appName" -}}
Expand Down
12 changes: 6 additions & 6 deletions files/chart/templates/cap-operator-cros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: sme.sap.com/v1alpha1
kind: CAPApplication
metadata:
name: cap-{{ include "appName" $ }}
name: {{ include "appName" $ }}
spec:
domains:
primary: {{.Values.app.domains.primary}}
Expand All @@ -18,10 +18,10 @@ spec:
value: {{ $v | default "invalidValue"}}
{{- end }}
btpAppName: {{ include "appName" $ }}
globalAccountId: "{{.Values.btp.globalAccountId}}"
globalAccountId: {{.Values.btp.globalAccountId}}
provider:
subDomain: "{{.Values.btp.provider.subdomain}}"
tenantId: "{{.Values.btp.provider.tenantId}}"
subDomain: {{.Values.btp.provider.subdomain}}
tenantId: {{.Values.btp.provider.tenantId}}
btp:
services:
{{- $serviceInstances := .Values.serviceInstances }}
Expand Down Expand Up @@ -51,8 +51,8 @@ metadata:
helm.sh/resource-policy: keep
name: {{ include "capApplicationVersionName" $ }}
spec:
capApplicationInstance: "cap-{{ include "appName" $ }}"
version: "{{ .Release.Revision }}"
capApplicationInstance: {{ include "appName" $ }}
version: {{ .Release.Revision }}
registrySecrets:
{{- range .Values.imagePullSecrets }}
- {{.}}
Expand Down
2 changes: 1 addition & 1 deletion files/configurableTemplatesChart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- define "capApplicationVersionName" -}}
{{ printf "cav-%s-%d" (include "appName" $) (.Release.Revision) }}
{{ printf "%s-%d" (include "appName" $) (.Release.Revision) }}
{{- end -}}

{{- define "appName" -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: sme.sap.com/v1alpha1
kind: CAPApplication
metadata:
name: cap-{{ include "appName" $ }}
name: {{ include "appName" $ }}
spec:
domains:
primary: {{.Values.app.domains.primary}}
Expand Down Expand Up @@ -51,8 +51,8 @@ metadata:
helm.sh/resource-policy: keep
name: {{ include "capApplicationVersionName" $ }}
spec:
capApplicationInstance: cap-{{ include "appName" $ }}
version: "{{ .Release.Revision }}"
capApplicationInstance: {{ include "appName" $ }}
version: {{ .Release.Revision }}
registrySecrets:
{{- range .Values.imagePullSecrets }}
- {{.}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- define "capApplicationVersionName" -}}
{{ printf "cav-%s-%d" (include "appName" $) (.Release.Revision) }}
{{ printf "%s-%d" (include "appName" $) (.Release.Revision) }}
{{- end -}}

{{- define "appName" -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: sme.sap.com/v1alpha1
kind: CAPApplication
metadata:
name: cap-{{ include "appName" $ }}
name: {{ include "appName" $ }}
spec:
domains:
primary: {{.Values.app.domains.primary}}
Expand Down Expand Up @@ -51,8 +51,8 @@ metadata:
helm.sh/resource-policy: keep
name: {{ include "capApplicationVersionName" $ }}
spec:
capApplicationInstance: cap-{{ include "appName" $ }}
version: "{{ .Release.Revision }}"
capApplicationInstance: {{ include "appName" $ }}
version: {{ .Release.Revision }}
registrySecrets:
{{- range .Values.imagePullSecrets }}
- {{.}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: sme.sap.com/v1alpha1
kind: CAPApplication
metadata:
name: cap-{{ include "appName" $ }}
name: {{ include "appName" $ }}
spec:
domains:
primary: {{.Values.app.domains.primary}}
Expand Down Expand Up @@ -51,8 +51,8 @@ metadata:
helm.sh/resource-policy: keep
name: {{ include "capApplicationVersionName" $ }}
spec:
capApplicationInstance: cap-{{ include "appName" $ }}
version: "{{ .Release.Revision }}"
capApplicationInstance: {{ include "appName" $ }}
version: {{ .Release.Revision }}
registrySecrets:
{{- range .Values.imagePullSecrets }}
- {{.}}
Expand Down

0 comments on commit 34feaab

Please sign in to comment.