mirror of
https://github.com/kairos-io/helm-charts.git
synced 2025-08-22 08:56:15 +00:00
updated os builder to include new export changes
Signed-off-by: Jacob Payne <jacob@spectrocloud.com>
This commit is contained in:
parent
2338e81060
commit
e92881378e
@ -1,10 +1,10 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: kairos-crds
|
name: kairos-crds
|
||||||
description: A Helm chart for deploying the Kairos CRDs
|
description: A Helm chart for deploying the Kairos CRDs
|
||||||
icon:
|
icon: ""
|
||||||
type: application
|
type: application
|
||||||
home: https://kairos.io/
|
home: https://kairos.io/
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Ettore Di Giacinto
|
- name: Ettore Di Giacinto
|
||||||
email: mudler@kairos.io
|
email: mudler@kairos.io
|
||||||
version: 0.0.13
|
version: 0.0.14
|
||||||
|
File diff suppressed because it is too large
Load Diff
0
charts/kairos-crds/values.yaml
Normal file
0
charts/kairos-crds/values.yaml
Normal file
@ -1,12 +1,12 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: osbuilder
|
name: osbuilder
|
||||||
description: A Helm chart for osbuilder
|
description: A Helm chart for osbuilder
|
||||||
icon:
|
icon: ""
|
||||||
type: application
|
type: application
|
||||||
home: https://kairos.io/
|
home: https://kairos.io/
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Ettore Di Giacinto
|
- name: Ettore Di Giacinto
|
||||||
email: mudler@kairos.io
|
email: mudler@kairos.io
|
||||||
|
|
||||||
version: 0.5.5
|
version: 0.6.0
|
||||||
appVersion: "v0.5.2"
|
appVersion: "v0.7.0"
|
||||||
|
21
charts/osbuilder/templates/NOTES.txt
Normal file
21
charts/osbuilder/templates/NOTES.txt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
To access the artifacts generated by your OSArtifact objects from the included nginx server add the following export to
|
||||||
|
your OSArtifact at `.spec.exporters[]`.
|
||||||
|
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
restartPolicy: Never
|
||||||
|
containers:
|
||||||
|
- name: upload
|
||||||
|
image: {{ .Values.image.toolsRepository | default "quay.io/kairos/osbuilder-tools" }}:{{ .Values.image.tag | default .Chart.AppVersion }}
|
||||||
|
command:
|
||||||
|
- bash
|
||||||
|
args:
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
for f in $(ls /artifacts)
|
||||||
|
do
|
||||||
|
curl -T /artifacts/$f http://osartifactbuilder-operator-osbuilder-nginx/upload/$f
|
||||||
|
done
|
||||||
|
volumeMounts:
|
||||||
|
- name: artifacts
|
||||||
|
mountPath: /artifacts
|
@ -17,3 +17,38 @@ kind: ConfigMap
|
|||||||
metadata:
|
metadata:
|
||||||
name: osartifactbuilder-operator-manager-config
|
name: osartifactbuilder-operator-manager-config
|
||||||
namespace: '{{.Release.Namespace}}'
|
namespace: '{{.Release.Namespace}}'
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: nginx-config
|
||||||
|
data:
|
||||||
|
nginx.conf: |
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
client_max_body_size 5000M;
|
||||||
|
|
||||||
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
|
location ~ "/upload/([0-9a-zA-Z-.]*)$" {
|
||||||
|
alias /usr/share/nginx/html/$1;
|
||||||
|
client_body_temp_path /tmp;
|
||||||
|
dav_methods PUT DELETE MKCOL COPY MOVE;
|
||||||
|
create_full_put_path on;
|
||||||
|
dav_access group:rw all:r;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
autoindex on;
|
||||||
|
}
|
||||||
|
|
||||||
|
# redirect server error pages to the static page /50x.html
|
||||||
|
#
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -48,12 +48,7 @@ spec:
|
|||||||
- --health-probe-bind-address=:8081
|
- --health-probe-bind-address=:8081
|
||||||
- --metrics-bind-address=127.0.0.1:8080
|
- --metrics-bind-address=127.0.0.1:8080
|
||||||
- --leader-elect
|
- --leader-elect
|
||||||
- --tool-image={{ .Values.image.repository | default "quay.io/kairos/osbuilder-tools" }}:{{ .Values.image.tag | default .Chart.AppVersion }}
|
- '--tool-image={{ .Values.image.toolsRepository | default "quay.io/kairos/osbuilder-tools" }}:{{ .Values.image.tag | default .Chart.AppVersion }}'
|
||||||
- --serve-image={{ .Values.image.serving | default "nginx" }}
|
|
||||||
- --copy-to-namespace={{ .Release.Namespace }}
|
|
||||||
- --copy-role=osartifactbuilder-operator-artifactCopier
|
|
||||||
- --copy-to-pod-label=app.kubernetes.io/name=osbuilder-nginx
|
|
||||||
- --copy-to-path="/usr/share/nginx/html"
|
|
||||||
command:
|
command:
|
||||||
- /manager
|
- /manager
|
||||||
image: '{{ .Values.image.repository | default "quay.io/kairos/osbuilder" }}:{{ .Values.image.tag | default .Chart.AppVersion }}'
|
image: '{{ .Values.image.repository | default "quay.io/kairos/osbuilder" }}:{{ .Values.image.tag | default .Chart.AppVersion }}'
|
||||||
@ -118,9 +113,20 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /usr/share/nginx/html
|
- mountPath: /usr/share/nginx/html
|
||||||
name: nginx-public
|
name: nginx-public
|
||||||
|
- mountPath: /etc/nginx/conf.d
|
||||||
|
name: config
|
||||||
|
readOnly: true
|
||||||
serviceAccountName: '{{ include "helm-chart.serviceAccountName" . }}'
|
serviceAccountName: '{{ include "helm-chart.serviceAccountName" . }}'
|
||||||
terminationGracePeriodSeconds: 10
|
terminationGracePeriodSeconds: 10
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 101
|
||||||
volumes:
|
volumes:
|
||||||
- name: nginx-public
|
- name: nginx-public
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: osartifactbuilder-operator-nginx-public
|
claimName: osartifactbuilder-operator-nginx-public
|
||||||
|
- name: config
|
||||||
|
configMap:
|
||||||
|
name: nginx-config
|
||||||
|
items:
|
||||||
|
- key: nginx.conf
|
||||||
|
path: default.conf
|
@ -1,25 +1,5 @@
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
|
||||||
name: osartifactbuilder-operator-artifactCopier
|
|
||||||
namespace: '{{.Release.Namespace}}'
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- pods
|
|
||||||
verbs:
|
|
||||||
- list
|
|
||||||
- get
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- pods/exec
|
|
||||||
verbs:
|
|
||||||
- create
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: Role
|
|
||||||
metadata:
|
metadata:
|
||||||
name: osartifactbuilder-operator-leader-election-role
|
name: osartifactbuilder-operator-leader-election-role
|
||||||
namespace: '{{.Release.Namespace}}'
|
namespace: '{{.Release.Namespace}}'
|
||||||
@ -64,27 +44,45 @@ rules:
|
|||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- serviceaccounts
|
- configmaps
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
- get
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- persistentvolumeclaims
|
||||||
verbs:
|
verbs:
|
||||||
- create
|
- create
|
||||||
- delete
|
- delete
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- patch
|
|
||||||
- update
|
|
||||||
- watch
|
- watch
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- rbac.authorization.k8s.io
|
- ""
|
||||||
resources:
|
resources:
|
||||||
- roles
|
- pods
|
||||||
- rolebindings
|
verbs:
|
||||||
|
- create
|
||||||
|
- delete
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- secrets
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- apiGroups:
|
||||||
|
- batch
|
||||||
|
resources:
|
||||||
|
- jobs
|
||||||
verbs:
|
verbs:
|
||||||
- create
|
- create
|
||||||
- delete
|
- delete
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- patch
|
|
||||||
- update
|
|
||||||
- watch
|
- watch
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- build.kairos.io
|
- build.kairos.io
|
||||||
@ -112,41 +110,6 @@ rules:
|
|||||||
- get
|
- get
|
||||||
- patch
|
- patch
|
||||||
- update
|
- update
|
||||||
- apiGroups:
|
|
||||||
- build.kairos.io
|
|
||||||
resources:
|
|
||||||
- osartifacts/finalizers
|
|
||||||
verbs:
|
|
||||||
- update
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- configmaps
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- create
|
|
||||||
- update
|
|
||||||
- apiGroups:
|
|
||||||
- batch
|
|
||||||
resources:
|
|
||||||
- jobs
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- create
|
|
||||||
- update
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- pods
|
|
||||||
verbs:
|
|
||||||
- list
|
|
||||||
- get
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- pods/exec
|
|
||||||
verbs:
|
|
||||||
- create
|
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
|
@ -12,6 +12,7 @@ imagePullSecrets: []
|
|||||||
image:
|
image:
|
||||||
# controller image to be used. Leave empty to use
|
# controller image to be used. Leave empty to use
|
||||||
repository: ""
|
repository: ""
|
||||||
|
toolsRepository: ""
|
||||||
# image tag, leave empty to use chart's AppVersion
|
# image tag, leave empty to use chart's AppVersion
|
||||||
tag: ""
|
tag: ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user