Skip to content

Commit

Permalink
Merge pull request #442 from vshn/add/nextcloud_api
Browse files Browse the repository at this point in the history
Add Nextcloud backup API
  • Loading branch information
Kidswiss authored Aug 13, 2024
2 parents b63c333 + b5fa8de commit 2091b87
Show file tree
Hide file tree
Showing 69 changed files with 553 additions and 93 deletions.
2 changes: 1 addition & 1 deletion class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ parameters:
appcat:
registry: ghcr.io
repository: vshn/appcat
tag: v4.91.0
tag: v4.92.0
functionAppcat:
registry: ${appcat:images:appcat:registry}
repository: ${appcat:images:appcat:repository}
Expand Down
6 changes: 5 additions & 1 deletion component/appcat_apiserver.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ local serviceAccount = loadManifest('service-account.yaml') {
},
};

local clusterRoleAPIServer = loadManifest('role.yaml');
local clusterRoleAPIServer = loadManifest('role.yaml') {
metadata+: {
name: 'appcat-apiserver',
},
};

local clusterRoleBinding = kube.ClusterRoleBinding(clusterRoleAPIServer.metadata.name) {
roleRef: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.91.0-func
package: ghcr.io/vshn/appcat:v4.92.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: appcat
name: appcat-apiserver
rules:
- apiGroups:
- ''
Expand Down Expand Up @@ -72,7 +72,45 @@ rules:
- vshn.appcat.vshn.io
resources:
- vshnmariadbs
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnnextclouds
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnpostgresqls
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnredis
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnnextclouds
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnpostgresqls
verbs:
- get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ kind: ClusterRoleBinding
metadata:
annotations: {}
labels:
name: appcat
name: appcat
name: appcat-apiserver
name: appcat-apiserver
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: appcat
name: appcat-apiserver
subjects:
- kind: ServiceAccount
name: appcat-apiserver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- --secure-port=9443
- --tls-cert-file=/apiserver.local.config/certificates/tls.crt
- --tls-private-key-file=/apiserver.local.config/certificates/tls.key
image: ghcr.io/vshn/appcat:v4.91.0
image: ghcr.io/vshn/appcat:v4.92.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.91.0-func
package: ghcr.io/vshn/appcat:v4.92.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: appcat
name: appcat-apiserver
rules:
- apiGroups:
- ''
Expand Down Expand Up @@ -72,7 +72,45 @@ rules:
- vshn.appcat.vshn.io
resources:
- vshnmariadbs
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnnextclouds
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnpostgresqls
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnredis
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnnextclouds
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnpostgresqls
verbs:
- get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ kind: ClusterRoleBinding
metadata:
annotations: {}
labels:
name: appcat
name: appcat
name: appcat-apiserver
name: appcat-apiserver
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: appcat
name: appcat-apiserver
subjects:
- kind: ServiceAccount
name: appcat-apiserver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- --secure-port=9443
- --tls-cert-file=/apiserver.local.config/certificates/tls.crt
- --tls-private-key-file=/apiserver.local.config/certificates/tls.key
image: ghcr.io/vshn/appcat:v4.91.0
image: ghcr.io/vshn/appcat:v4.92.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
value: "false"
- name: APPCAT_SLI_VSHNMARIADB
value: "false"
image: ghcr.io/vshn/appcat:v4.91.0
image: ghcr.io/vshn/appcat:v4.92.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.91.0-func
package: ghcr.io/vshn/appcat:v4.92.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: appcat
name: appcat-apiserver
rules:
- apiGroups:
- ''
Expand Down Expand Up @@ -72,7 +72,45 @@ rules:
- vshn.appcat.vshn.io
resources:
- vshnmariadbs
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnnextclouds
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnpostgresqls
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnredis
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnnextclouds
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnpostgresqls
verbs:
- get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ kind: ClusterRoleBinding
metadata:
annotations: {}
labels:
name: appcat
name: appcat
name: appcat-apiserver
name: appcat-apiserver
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: appcat
name: appcat-apiserver
subjects:
- kind: ServiceAccount
name: appcat-apiserver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- --secure-port=9443
- --tls-cert-file=/apiserver.local.config/certificates/tls.crt
- --tls-private-key-file=/apiserver.local.config/certificates/tls.key
image: ghcr.io/vshn/appcat:v4.91.0
image: ghcr.io/vshn/appcat:v4.92.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
value: "false"
- name: APPCAT_SLI_VSHNMARIADB
value: "false"
image: ghcr.io/vshn/appcat:v4.91.0
image: ghcr.io/vshn/appcat:v4.92.0
livenessProbe:
httpGet:
path: /healthz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.91.0-func
package: ghcr.io/vshn/appcat:v4.92.0-func
runtimeConfigRef:
name: function-appcat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: appcat
name: appcat-apiserver
rules:
- apiGroups:
- ''
Expand Down Expand Up @@ -72,7 +72,45 @@ rules:
- vshn.appcat.vshn.io
resources:
- vshnmariadbs
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnnextclouds
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnpostgresqls
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- vshnredis
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnnextclouds
verbs:
- get
- list
- watch
- apiGroups:
- vshn.appcat.vshn.io
resources:
- xvshnpostgresqls
verbs:
- get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ kind: ClusterRoleBinding
metadata:
annotations: {}
labels:
name: appcat
name: appcat
name: appcat-apiserver
name: appcat-apiserver
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: appcat
name: appcat-apiserver
subjects:
- kind: ServiceAccount
name: appcat-apiserver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
- --secure-port=9443
- --tls-cert-file=/apiserver.local.config/certificates/tls.crt
- --tls-private-key-file=/apiserver.local.config/certificates/tls.key
image: ghcr.io/vshn/appcat:v4.91.0
image: ghcr.io/vshn/appcat:v4.92.0
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: Function
metadata:
name: function-appcat
spec:
package: ghcr.io/vshn/appcat:v4.91.0-func
package: ghcr.io/vshn/appcat:v4.92.0-func
runtimeConfigRef:
name: function-appcat
Loading

0 comments on commit 2091b87

Please sign in to comment.