Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

References to missing hidden.core.v1.persistentVolumeClaim #77

Closed
glindstedt opened this issue Sep 20, 2017 · 2 comments
Closed

References to missing hidden.core.v1.persistentVolumeClaim #77

glindstedt opened this issue Sep 20, 2017 · 2 comments

Comments

@glindstedt
Copy link
Contributor

There are several references in k8s.libsonnet to the field hidden.core.v1.persistentVolumeClaim which does not exist. However there is a field in core.v1.persistentVolumeClaim which seems to fit the bill. I assume it was moved but the references weren't updated for some reason.

@bryanl
Copy link
Member

bryanl commented Apr 26, 2018

hidden.core.v1.persistentVolumeClaim exists in ksonnet-lib 0.1.0

@bryanl bryanl closed this as completed Apr 26, 2018
@sillydong
Copy link

still there are errors came out saying persistentVolumeClaim not found

bash-5.0# jsonnet -J /root/deploy/roles/app-platform/../../  -m /etc/jimu/manifests/platform/minio  --ext-str-file config=/etc/jimu/hostvars  /root/deploy/roles/app-platform/files/app/minio.jsonnet
RUNTIME ERROR: field does not exist: persistentVolumeClaim
        /root/deploy/roles/app-platform/../../jsonnet/ksonnet-lib/v1.10.0/k8s.libsonnet:1939:40-76      object <anonymous>
        /root/deploy/roles/app-platform/files/app/minio.jsonnet:136:13-60       object <anonymous>
        During manifestation

the code calling it was

local k = import 'jsonnet/ksonnet-lib/v1.10.0/k.libsonnet';
local statefulset = k.apps.v1.statefulSet;

{
    'test': statefulset.mixin.spec.volumeClaimTemplatesType            
}

I have checked the k8s.libsonnet, there is persistentVolumeClaim exists in hidden.core.v1.persistentVolumeClaim

Am I wrong using this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants