KusionStack / konfig

Shared repository of application models and components, and CI suite for GitOps workflows
Apache License 2.0
27 stars 32 forks source link

frontend.Env.ValueFrom.ResourceFieldRef is not supported #35

Closed howieyuen closed 2 years ago

howieyuen commented 2 years ago

k8s api :

// EnvVarSource represents a source for the value of an EnvVar.
type EnvVarSource struct {
    // Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
    // spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
    // +optional
    FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty" protobuf:"bytes,1,opt,name=fieldRef"`
    // Selects a resource of the container: only resources limits and requests
    // (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
    // +optional
    ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty" protobuf:"bytes,2,opt,name=resourceFieldRef"`
    // Selects a key of a ConfigMap.
    // +optional
    ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty" protobuf:"bytes,3,opt,name=configMapKeyRef"`
    // Selects a key of a secret in the pod's namespace
    // +optional
    SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty" protobuf:"bytes,4,opt,name=secretKeyRef"`
}