loft-sh / cluster-api-provider-vcluster

Mozilla Public License 2.0
73 stars 21 forks source link

ingress annotation stops successful provisioning #35

Closed lknite closed 12 months ago

lknite commented 1 year ago

These lines apparently break things:

        annotations:
          cert-manager\.io\/issuer: "cluster-adcs-issuer"
          cert-manager\.io\/issuer-kind: "ClusterAdcsIssuer"
          cert-manager\.io\/issuer-group: "adcs.certmanager.csf.nokia.com"

Without those lines the provisioning succeeds.

apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
  name: vc-test
  namespace: vc-test
spec:
  controlPlaneRef:
    apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
    kind: VCluster
    name: vc-test
  infrastructureRef:
    apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
    kind: VCluster
    name: vc-test
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: VCluster
metadata:
  name: vc-test
  namespace: vc-test
spec:
  controlPlaneEndpoint:
    host: ""
    port: 0
  helmRelease:
    chart:
      name: vcluster
      repo: https://charts.loft.sh
      version: v0.13.0
    values: |
      storage:
        className: cephfs
      ingress:
        enabled: "true"
        ingressClassName: "nginx"
        host: vc-test.root.k.home.net
#        annotations:
#          cert-manager\.io\/issuer: "cluster-adcs-issuer"
#          cert-manager\.io\/issuer-kind: "ClusterAdcsIssuer"
#          cert-manager\.io\/issuer-group: "adcs.certmanager.csf.nokia.com"

  kubernetesVersion: 1.24.0
ishankhare07 commented 12 months ago

Hi @lknite , thanks for creating this issue. Are you only seeing this with cluster-api-provider-vcluster? What happens if you try to spin up this configuration with vcluster cli for example? Are you seeing issues there as well?

It would be also helpful if you can post more details about the error messages that you encounter / logs etc.

ishankhare07 commented 12 months ago

close as duplicate of https://github.com/loft-sh/cluster-api-provider-vcluster/issues/36