Skip to content

Commit

Permalink
Merge pull request #1 from czoczo/develop
Browse files Browse the repository at this point in the history
0.1.1 Release
  • Loading branch information
czoczo authored Nov 11, 2024
2 parents 946779c + c7cecb8 commit d0d972a
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 10 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CasaVue Changelog

## 0.1.1
- App: added self skip on Kubernetes Ingress crawl.
- Helm Chart: fixed passing empty static items list array to CasaVue via ConfigMap.
- WebUI: added auto refresh after PWA update button click.

## 0.1.0
- Initial release.
2 changes: 1 addition & 1 deletion VERSION_APP.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1
2 changes: 1 addition & 1 deletion VERSION_CHART.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1
9 changes: 6 additions & 3 deletions deployment/helm/templates/config_items.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{{- with .Values.config.items }}
{{- $items := .Values.config.items }}
apiVersion: v1
kind: ConfigMap
metadata:
name: casavue-cfg-items
data:
items.yaml: |-
{{- if $items }}
items:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- toYaml $items | nindent 4 }}
{{- else }}
items: []
{{- end }}
4 changes: 0 additions & 4 deletions deployment/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ spec:
subPath: main.yaml
name: casavue-cfg-main
{{- end }}
{{- if .Values.config.items }}
- mountPath: /app/config/items.yaml
subPath: items.yaml
name: casavue-cfg-items
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if or .Values.config.items .Values.config.main }}
Expand All @@ -63,12 +61,10 @@ spec:
defaultMode: 420
name: casavue-cfg-main
{{- end }}
{{- if .Values.config.items }}
- name: casavue-cfg-items
configMap:
defaultMode: 420
name: casavue-cfg-items
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/mixins/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default {
if (!this.registration || !this.registration.waiting) return
// send message to SW to skip the waiting and activate the new SW
this.registration.waiting.postMessage({ type: 'SKIP_WAITING' })
window.location.reload(true)
},
},
}
}
9 changes: 9 additions & 0 deletions kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ func getAndWatchKubernetesIngressItems() {
log.Debug("Skipping item '" + ingress.Name + "' due to pattern")
return
}

// skip self
if val, ok := ingress.Labels["app.kubernetes.io/name"]; ok {
if val == "casavue" {
log.Debug("Skipping self: ", ingress.Name)
return
}
}

_, annotationPresent := ingress.Annotations["casavue.app/enable"]
if config.Content_filters.Item.Mode == "ingressAnnotation" && !annotationPresent {
log.Debug("Skipping item '" + ingress.Name + "' due to Ingress Annotation mode and lack of annotation.")
Expand Down

0 comments on commit d0d972a

Please sign in to comment.