-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconcile ServiceTemplates in ManagedCluster controller #270
Comments
UpdateI am trying to get a service (defined by a ServiceTemplate) installed via Sveltos in the "managedcluster_controller". For now I am trying to get nginx installed this way on the target cluster: apiVersion: hmc.mirantis.com/v1alpha1
kind: ServiceTemplate
metadata:
name: ingress-nginx
spec:
helm:
chartName: ingress-nginx
chartVersion: 2.0.0 Which is referenced via the apiVersion: hmc.mirantis.com/v1alpha1
kind: ManagedCluster
metadata:
name: wali-aws-dev
namespace: ${NAMESPACE}
spec:
. . . . . . . .
services:
- template: ingress-nginx
install: true
config:
releaseName: ingress-nginx
releaseNamespace: ingress-nginx
createNamespace: true
. . . . . . . . Each template referes to a flux
This URL for our dev environment is kind: ClusterProfile
. . . . . . . .
helmCharts:
# NOTE: The reason chartName == repositoryURL is because of
# https://projectsveltos.github.io/sveltos/addons/helm_charts/#:~:text=For%20OCI%20charts%2C%20the%20chartName%20needs%20to%20have%20whole%20URL.
- chartName: oci://hmc-local-registry:5000/charts/ingress-nginx
chartVersion: 2.0.0
releaseName: ingress-nginx
releaseNamespace: ingress-nginx
repositoryName: ingress-nginx
repositoryURL: oci://hmc-local-registry:5000/charts/ingress-nginx
. . . . . . . . However, Sveltos fails to install nginx on the target cluster due to following (seen in the
There is a flag # helm pull oci://hmc-local-registry:5000/charts/ingress-nginx --version 2.0.0 --plain-http
Pulled: hmc-local-registry:5000/charts/ingress-nginx:2.0.0
Digest: sha256:ae349c7ae29737912640fcf8c0d0514fbf6fc1a5de6209a37f34572c96e853a6 But # helm pull oci://hmc-local-registry:5000/charts/ingress-nginx --version 2.0.0 --insecure-skip-tls-verify
Error: failed to do request: Head "https://hmc-local-registry:5000/v2/charts/ingress-nginx/manifests/2.0.0": http: server gave HTTP response to HTTPS client So we need Sveltos to support passing options = append(options, registry.ClientOptPlainHTTP()) |
The text was updated successfully, but these errors were encountered: