Loading .meepctl-repocfg.yaml +2 −1 Original line number Diff line number Diff line Loading @@ -119,9 +119,10 @@ repo: src: go-apps/meep-virt-engine bin: bin/meep-virt-engine chart: charts/meep-virt-engine template: charts/meep-virt-engine/virt-templates codecov: true lint: true docker-data: data: go-apps/meep-virt-engine/docker-data meep-webhook: src: go-apps/meep-webhook bin: bin/meep-webhook Loading charts/meep-virt-engine/templates/clusterrolebinding.yaml 0 → 100644 +12 −0 Original line number Diff line number Diff line apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: "{{ .Values.serviceAccount }}-{{ .Values.namespace }}" roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: {{ .Values.serviceAccount }} namespace: {{ .Values.namespace }} No newline at end of file charts/meep-virt-engine/templates/codecov-pv.yaml 0 → 100644 +35 −0 Original line number Diff line number Diff line {{- if .Values.codecov.enabled}} kind: PersistentVolume apiVersion: v1 metadata: name: meep-virt-engine-codecov-pv spec: storageClassName: meep-virt-engine-codecov-sc capacity: storage: 100Mi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain hostPath: path: "/home/englab/.meep/codecov/meep-virt-engine" --- kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: meep-virt-engine-codecov-sc provisioner: kubernetes.io/no-provisioner volumeBindingMode: WaitForFirstConsumer --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: meep-virt-engine-codecov-pvc spec: storageClassName: meep-virt-engine-codecov-sc accessModes: - ReadWriteOnce resources: requests: storage: 100Mi {{- end}} charts/meep-virt-engine/templates/deployment.yaml 0 → 100644 +54 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "meep-virt-engine.fullname" . }} namespace: {{ .Values.namespace }} labels: app: {{ template "meep-virt-engine.name" . }} chart: {{ template "meep-virt-engine.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} meepOrigin: {{ .Values.meepOrigin }} spec: replicas: {{ .Values.deployment.replicas }} selector: matchLabels: app: {{ template "meep-virt-engine.name" . }} release: {{ .Release.Name }} template: metadata: namespace: {{ .Values.namespace }} labels: app: {{ template "meep-virt-engine.name" . }} release: {{ .Release.Name }} meepOrigin: {{ .Values.meepOrigin }} spec: serviceAccountName: {{ .Values.serviceAccount }} {{- if .Values.codecov.enabled}} volumes: - name: codecov-storage persistentVolumeClaim: claimName: meep-virt-engine-codecov-pvc {{- end}} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" {{- if .Values.codecov.enabled}} command: [ "/meep-virt-engine" ] args: [ "-test.coverprofile=/codecov/codecov-meep-virt-engine.out", "__DEVEL--code-cov" ] {{- end}} imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: {{ .Values.deployment.port }} protocol: {{ .Values.deployment.protocol }} {{- if .Values.codecov.enabled}} volumeMounts: - name: codecov-storage mountPath: /codecov {{- end}} terminationGracePeriodSeconds: 5 {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | indent 8 }} {{- end }} charts/meep-virt-engine/templates/endpoints.yamldeleted 100644 → 0 +0 −10 Original line number Diff line number Diff line apiVersion: v1 kind: Endpoints metadata: name: {{ template "meep-virt-engine.fullname" . }} namespace: {{ .Values.namespace }} subsets: - addresses: - ip: {{ .Values.service.ip }} ports: - port: {{ .Values.service.targetPort }} Loading
.meepctl-repocfg.yaml +2 −1 Original line number Diff line number Diff line Loading @@ -119,9 +119,10 @@ repo: src: go-apps/meep-virt-engine bin: bin/meep-virt-engine chart: charts/meep-virt-engine template: charts/meep-virt-engine/virt-templates codecov: true lint: true docker-data: data: go-apps/meep-virt-engine/docker-data meep-webhook: src: go-apps/meep-webhook bin: bin/meep-webhook Loading
charts/meep-virt-engine/templates/clusterrolebinding.yaml 0 → 100644 +12 −0 Original line number Diff line number Diff line apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: "{{ .Values.serviceAccount }}-{{ .Values.namespace }}" roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: {{ .Values.serviceAccount }} namespace: {{ .Values.namespace }} No newline at end of file
charts/meep-virt-engine/templates/codecov-pv.yaml 0 → 100644 +35 −0 Original line number Diff line number Diff line {{- if .Values.codecov.enabled}} kind: PersistentVolume apiVersion: v1 metadata: name: meep-virt-engine-codecov-pv spec: storageClassName: meep-virt-engine-codecov-sc capacity: storage: 100Mi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain hostPath: path: "/home/englab/.meep/codecov/meep-virt-engine" --- kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: meep-virt-engine-codecov-sc provisioner: kubernetes.io/no-provisioner volumeBindingMode: WaitForFirstConsumer --- kind: PersistentVolumeClaim apiVersion: v1 metadata: name: meep-virt-engine-codecov-pvc spec: storageClassName: meep-virt-engine-codecov-sc accessModes: - ReadWriteOnce resources: requests: storage: 100Mi {{- end}}
charts/meep-virt-engine/templates/deployment.yaml 0 → 100644 +54 −0 Original line number Diff line number Diff line apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "meep-virt-engine.fullname" . }} namespace: {{ .Values.namespace }} labels: app: {{ template "meep-virt-engine.name" . }} chart: {{ template "meep-virt-engine.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} meepOrigin: {{ .Values.meepOrigin }} spec: replicas: {{ .Values.deployment.replicas }} selector: matchLabels: app: {{ template "meep-virt-engine.name" . }} release: {{ .Release.Name }} template: metadata: namespace: {{ .Values.namespace }} labels: app: {{ template "meep-virt-engine.name" . }} release: {{ .Release.Name }} meepOrigin: {{ .Values.meepOrigin }} spec: serviceAccountName: {{ .Values.serviceAccount }} {{- if .Values.codecov.enabled}} volumes: - name: codecov-storage persistentVolumeClaim: claimName: meep-virt-engine-codecov-pvc {{- end}} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" {{- if .Values.codecov.enabled}} command: [ "/meep-virt-engine" ] args: [ "-test.coverprofile=/codecov/codecov-meep-virt-engine.out", "__DEVEL--code-cov" ] {{- end}} imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: {{ .Values.deployment.port }} protocol: {{ .Values.deployment.protocol }} {{- if .Values.codecov.enabled}} volumeMounts: - name: codecov-storage mountPath: /codecov {{- end}} terminationGracePeriodSeconds: 5 {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | indent 8 }} {{- end }}
charts/meep-virt-engine/templates/endpoints.yamldeleted 100644 → 0 +0 −10 Original line number Diff line number Diff line apiVersion: v1 kind: Endpoints metadata: name: {{ template "meep-virt-engine.fullname" . }} namespace: {{ .Values.namespace }} subsets: - addresses: - ip: {{ .Values.service.ip }} ports: - port: {{ .Values.service.targetPort }}