Skip to content

Commit f1eb733

Browse files
committed
removed extra comment
Signed-off-by: YuChen <[email protected]>
1 parent c58d0d3 commit f1eb733

File tree

7 files changed

+10
-34
lines changed

7 files changed

+10
-34
lines changed

generate-helm/ibm-common-service-operator.config

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,11 @@ chartname: ibm-common-service-operator
33
sharedValues:
44
imagePullPrefix: icr.io
55
imagePullSecret: ibm-entitlement-key
6-
imageRegistryNamespaceOperator: cpopen
76
imageRegistryNamespaceOperand: cpopen/cpfs
7+
imageRegistryNamespaceOperator: cpopen
8+
operatorImage: ibm-common-service-operator
89
operatorNamespace: operator-ns
9-
operatorImage: ibm-common-service-operator
1010
tag: latest
11-
affinity: {}
12-
nodeSelector: {}
13-
podSecurityContext: {}
14-
resources: {}
15-
securityContext: {}
16-
tolerations: {}
1711
globalConfig:
1812
metadata.labels:
1913
- strategy: newline
@@ -29,8 +23,8 @@ fileConfig:
2923
generate-helm/ibm-common-service-operator-generated/ibm-common-service-operator-cr.yaml: {}
3024
generate-helm/ibm-common-service-operator-generated/ibm-common-service-operator-crb.yaml:
3125
subjects[0].namespace:
32-
- strategy: inline
33-
key: sharedValues.operatorNamespace
26+
- strategy: inline
27+
key: sharedValues.operatorNamespace
3428
generate-helm/ibm-common-service-operator-generated/ibm-common-service-operator-deployment.yaml:
3529
spec.template.spec.containers[0].image:
3630
- strategy: inline
@@ -41,10 +35,10 @@ fileConfig:
4135
key: sharedValues.operatorImage
4236
- strategy: inline
4337
key: sharedValues.tag
44-
generate-helm/ibm-common-service-operator-generated/ibm-common-service-operator-rb.yaml:
38+
generate-helm/ibm-common-service-operator-generated/ibm-common-service-operator-rb.yaml:
4539
subjects[0].namespace:
46-
- strategy: inline
47-
key: sharedValues.operatorNamespace
40+
- strategy: inline
41+
key: sharedValues.operatorNamespace
4842
generate-helm/ibm-common-service-operator-generated/ibm-common-service-operator-role.yaml: {}
4943
generate-helm/ibm-common-service-operator-generated/ibm-common-service-operator-sa.yaml: {}
5044
generate-helm/ibm-common-service-operator-generated/mutating-webhook-configuration-mutatingwebhookconfiguration.yaml: {}

helm-cluster-scoped/templates/cluster-rbac.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Generated by [Kustohelmize](https://github.com/yeahdongcn/kustohelmize)
21
apiVersion: rbac.authorization.k8s.io/v1
32
kind: ClusterRoleBinding
43
metadata:
@@ -15,7 +14,6 @@ subjects:
1514
namespace: {{ .Values.operatorNamespace }}
1615

1716
---
18-
# Generated by [Kustohelmize](https://github.com/yeahdongcn/kustohelmize)
1917
apiVersion: rbac.authorization.k8s.io/v1
2018
kind: ClusterRole
2119
metadata:
@@ -96,7 +94,6 @@ rules:
9694
- watch
9795

9896
---
99-
# Generated by [Kustohelmize](https://github.com/yeahdongcn/kustohelmize)
10097
apiVersion: v1
10198
kind: ServiceAccount
10299
metadata:

helm-cluster-scoped/values.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
# Generated by [Kustohelmize](https://github.com/yeahdongcn/kustohelmize)
2-
affinity: {}
31
imagePullPrefix: icr.io
42
imagePullSecret: ibm-entitlement-key
53
imageRegistryNamespaceOperand: cpopen/cpfs
64
imageRegistryNamespaceOperator: cpopen
7-
nodeSelector: {}
85
operatorImage: ibm-common-service-operator
96
operatorNamespace: operator-ns
10-
podSecurityContext: {}
11-
resources: {}
12-
securityContext: {}
137
tag: latest
14-
tolerations: {}
158

169
commonservicesOperatorIbmComCrd: {}
1710
ibmCommonServiceOperatorCr: {}

helm/templates/operator-deployment.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Generated by [Kustohelmize](https://github.com/yeahdongcn/kustohelmize)
21
apiVersion: apps/v1
32
kind: Deployment
43
metadata:

helm/templates/rbac.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Generated by [Kustohelmize](https://github.com/yeahdongcn/kustohelmize)
21
apiVersion: rbac.authorization.k8s.io/v1
32
kind: RoleBinding
43
metadata:
@@ -16,7 +15,6 @@ subjects:
1615
namespace: {{ .Values.operatorNamespace }}
1716

1817
---
19-
# Generated by [Kustohelmize](https://github.com/yeahdongcn/kustohelmize)
2018
apiVersion: rbac.authorization.k8s.io/v1
2119
kind: Role
2220
metadata:
@@ -208,7 +206,6 @@ rules:
208206
- watch
209207

210208
---
211-
# Generated by [Kustohelmize](https://github.com/yeahdongcn/kustohelmize)
212209
apiVersion: v1
213210
kind: ServiceAccount
214211
metadata:

helm/values.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
# Generated by [Kustohelmize](https://github.com/yeahdongcn/kustohelmize)
2-
affinity: {}
31
imagePullPrefix: icr.io
42
imagePullSecret: ibm-entitlement-key
53
imageRegistryNamespaceOperand: cpopen/cpfs
64
imageRegistryNamespaceOperator: cpopen
7-
nodeSelector: {}
85
operatorImage: ibm-common-service-operator
96
operatorNamespace: operator-ns
10-
podSecurityContext: {}
11-
resources: {}
12-
securityContext: {}
137
tag: latest
14-
tolerations: {}
158

169
commonservicesOperatorIbmComCrd: {}
1710
ibmCommonServiceOperatorCr: {}

scripts/restructure_helm.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ merge_yaml() {
5050
echo -e "\n---" >> $output_file
5151
cat $HELM_SRC_DIR/templates/ibm-common-service-operator-sa.yaml >> $output_file
5252
fi
53+
54+
sed -i '/^# Generated by \[Kustohelmize\]/d' $output_file
5355
}
5456

5557
# ----------------- Namespace-scoped resources -----------------
@@ -68,6 +70,7 @@ cp $HELM_SRC_DIR/crds/* $CLUSTER_SCOPED_DIR/templates/crds.yaml
6870
# Todo: rest of resources
6971

7072
# Copy Helm values, Chart.yaml and helper.tpl
73+
sed -i '/^# Generated by \[Kustohelmize\]/d' $HELM_SRC_DIR/values.yaml
7174
for dir in $HELM_DIR $CLUSTER_SCOPED_DIR; do cp $HELM_SRC_DIR/{values.yaml,Chart.yaml} "$dir/"; done
7275
for dir in $HELM_DIR $CLUSTER_SCOPED_DIR; do cp $HELM_SRC_DIR/templates/_helpers.tpl "$dir/templates/"; done
7376

0 commit comments

Comments
 (0)