-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix uploading vm images using virtctl (#422)
Upstream fix: kubevirt/containerized-data-importer#3461 Signed-off-by: Andrei Kvapil <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new version (`v1beta1`) for the CDI operator alongside the existing version, enhancing configuration options. - Expanded `spec` section with detailed descriptions for various configurations including data volume management and TLS security profiles. - Added a new Ingress resource for the `cdi-uploadproxy` service, improving traffic routing capabilities. - Introduced new configuration parameters for dynamic upload proxy URL management. - **Improvements** - Updated permissions for the CDI operator to manage additional resources, improving its data handling capabilities. - Refined deployment configuration with updated container image references and environment variables for better operational control. - Enhanced network policy definitions by adding specific rules for new services while maintaining existing policies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Andrei Kvapil <[email protected]>
- Loading branch information
Showing
14 changed files
with
104 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ description: Separated tenant namespace | |
icon: /logos/tenant.svg | ||
|
||
type: application | ||
version: 1.4.0 | ||
version: 1.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }} | ||
{{- $issuerType := (index $cozyConfig.data "clusterissuer") | default "http01" }} | ||
|
||
{{- $myNS := lookup "v1" "Namespace" "" .Release.Namespace }} | ||
{{- $host := index $myNS.metadata.annotations "namespace.cozystack.io/host" }} | ||
|
||
{{- if .Values.cdiUploadProxy }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
nginx.ingress.kubernetes.io/backend-protocol: HTTPS | ||
cert-manager.io/cluster-issuer: letsencrypt-prod | ||
{{- if eq $issuerType "cloudflare" }} | ||
{{- else }} | ||
acme.cert-manager.io/http01-ingress-class: {{ .Release.Namespace }} | ||
{{- end }} | ||
name: cdi-uploadproxy-{{ .Release.Namespace }} | ||
namespace: cozy-kubevirt-cdi | ||
spec: | ||
ingressClassName: {{ .Release.Namespace }} | ||
rules: | ||
- host: cdi-uploadproxy.{{ $host }} | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: cdi-uploadproxy | ||
port: | ||
number: 443 | ||
path: / | ||
pathType: Prefix | ||
tls: | ||
- hosts: | ||
- cdi-uploadproxy.{{ $host }} | ||
secretName: cdi-uploadproxy-{{ .Release.Namespace }}-tls | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }} | ||
{{- $issuerType := (index $cozyConfig.data "clusterissuer") | default "http01" }} | ||
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }} | ||
{{- $issuerType := (index $cozyConfig.data "clusterissuer") | default "http01" }} | ||
|
||
{{- $myNS := lookup "v1" "Namespace" "" .Release.Namespace }} | ||
{{- $host := index $myNS.metadata.annotations "namespace.cozystack.io/host" }} | ||
{{- $myNS := lookup "v1" "Namespace" "" .Release.Namespace }} | ||
{{- $host := index $myNS.metadata.annotations "namespace.cozystack.io/host" }} | ||
|
||
{{- if .Values.dashboard }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt-prod | ||
{{- if .Values.dashboard }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt-prod | ||
{{- if eq $issuerType "cloudflare" }} | ||
{{- else }} | ||
acme.cert-manager.io/http01-ingress-class: {{ .Release.Namespace }} | ||
{{- end }} | ||
name: dashboard-{{ .Release.Namespace }} | ||
namespace: cozy-dashboard | ||
spec: | ||
ingressClassName: {{ .Release.Namespace }} | ||
rules: | ||
- host: dashboard.{{ $host }} | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: dashboard | ||
port: | ||
number: 80 | ||
path: / | ||
pathType: Prefix | ||
tls: | ||
- hosts: | ||
- dashboard.{{ $host }} | ||
secretName: dashboard-{{ .Release.Namespace }}-tls | ||
{{- else }} | ||
acme.cert-manager.io/http01-ingress-class: {{ .Release.Namespace }} | ||
{{- end }} | ||
name: dashboard-{{ .Release.Namespace }} | ||
namespace: cozy-dashboard | ||
spec: | ||
ingressClassName: {{ .Release.Namespace }} | ||
rules: | ||
- host: dashboard.{{ $host }} | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: dashboard | ||
port: | ||
number: 80 | ||
path: / | ||
pathType: Prefix | ||
tls: | ||
- hosts: | ||
- dashboard.{{ $host }} | ||
secretName: dashboard-{{ .Release.Namespace }}-tls | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
uploadProxyURL: "" |