doc/tutorial/kubernetes: update definitions
Change-Id: I289e6361f42fe6f58ecbf68d75742a809a343432
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/3540
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/doc/tutorial/kubernetes/quick/pkg/k8s.io/api/core/v1/types_go_gen.cue b/doc/tutorial/kubernetes/quick/pkg/k8s.io/api/core/v1/types_go_gen.cue
index 913e44e..8aed250 100644
--- a/doc/tutorial/kubernetes/quick/pkg/k8s.io/api/core/v1/types_go_gen.cue
+++ b/doc/tutorial/kubernetes/quick/pkg/k8s.io/api/core/v1/types_go_gen.cue
@@ -4631,7 +4631,7 @@
// Deprecated. Not all kubelets will set this field. Remove field after 1.13.
// see: https://issues.k8s.io/61966
// +optional
- externalID?: string @go(DoNotUse_ExternalID) @protobuf(2,bytes,opt)
+ externalID?: string @go(DoNotUseExternalID) @protobuf(2,bytes,opt)
}
// NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.
@@ -5107,7 +5107,9 @@
enumNamespaceConditionType ::
NamespaceDeletionDiscoveryFailure |
NamespaceDeletionContentFailure |
- NamespaceDeletionGVParsingFailure
+ NamespaceDeletionGVParsingFailure |
+ NamespaceContentRemaining |
+ NamespaceFinalizersRemaining
// NamespaceDeletionDiscoveryFailure contains information about namespace deleter errors during resource discovery.
NamespaceDeletionDiscoveryFailure :: NamespaceConditionType & "NamespaceDeletionDiscoveryFailure"
@@ -5118,6 +5120,12 @@
// NamespaceDeletionGVParsingFailure contains information about namespace deleter errors parsing GV for legacy types.
NamespaceDeletionGVParsingFailure :: NamespaceConditionType & "NamespaceDeletionGroupVersionParsingFailure"
+// NamespaceContentRemaining contains information about resources remaining in a namespace.
+NamespaceContentRemaining :: NamespaceConditionType & "NamespaceContentRemaining"
+
+// NamespaceFinalizersRemaining contains information about which finalizers are on resources remaining in a namespace.
+NamespaceFinalizersRemaining :: NamespaceConditionType & "NamespaceFinalizersRemaining"
+
// NamespaceCondition contains details about state of namespace.
NamespaceCondition :: {
// Type of namespace controller condition.
diff --git a/doc/tutorial/kubernetes/quick/pkg/k8s.io/api/extensions/v1beta1/types_go_gen.cue b/doc/tutorial/kubernetes/quick/pkg/k8s.io/api/extensions/v1beta1/types_go_gen.cue
index 54e2ecd..83308fd 100644
--- a/doc/tutorial/kubernetes/quick/pkg/k8s.io/api/extensions/v1beta1/types_go_gen.cue
+++ b/doc/tutorial/kubernetes/quick/pkg/k8s.io/api/extensions/v1beta1/types_go_gen.cue
@@ -974,7 +974,56 @@
// FSType gives strong typing to different file systems that are used by volumes.
// Deprecated: use FSType from policy API Group instead.
-FSType :: string
+FSType :: string // enumFSType
+
+enumFSType ::
+ AzureFile |
+ Flocker |
+ FlexVolume |
+ HostPath |
+ EmptyDir |
+ GCEPersistentDisk |
+ AWSElasticBlockStore |
+ GitRepo |
+ Secret |
+ NFS |
+ ISCSI |
+ Glusterfs |
+ PersistentVolumeClaim |
+ RBD |
+ Cinder |
+ CephFS |
+ DownwardAPI |
+ FC |
+ ConfigMap |
+ Quobyte |
+ AzureDisk |
+ CSI |
+ All
+
+AzureFile :: FSType & "azureFile"
+Flocker :: FSType & "flocker"
+FlexVolume :: FSType & "flexVolume"
+HostPath :: FSType & "hostPath"
+EmptyDir :: FSType & "emptyDir"
+GCEPersistentDisk :: FSType & "gcePersistentDisk"
+AWSElasticBlockStore :: FSType & "awsElasticBlockStore"
+GitRepo :: FSType & "gitRepo"
+Secret :: FSType & "secret"
+NFS :: FSType & "nfs"
+ISCSI :: FSType & "iscsi"
+Glusterfs :: FSType & "glusterfs"
+PersistentVolumeClaim :: FSType & "persistentVolumeClaim"
+RBD :: FSType & "rbd"
+Cinder :: FSType & "cinder"
+CephFS :: FSType & "cephFS"
+DownwardAPI :: FSType & "downwardAPI"
+FC :: FSType & "fc"
+ConfigMap :: FSType & "configMap"
+Quobyte :: FSType & "quobyte"
+AzureDisk :: FSType & "azureDisk"
+CSI :: FSType & "csi"
+All :: FSType & "*"
// AllowedFlexVolume represents a single Flexvolume that is allowed to be used.
// Deprecated: use AllowedFlexVolume from policy API Group instead.
diff --git a/doc/tutorial/kubernetes/quick/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue b/doc/tutorial/kubernetes/quick/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue
index a3a075a..cd81023 100644
--- a/doc/tutorial/kubernetes/quick/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue
+++ b/doc/tutorial/kubernetes/quick/pkg/k8s.io/apimachinery/pkg/apis/meta/v1/types_go_gen.cue
@@ -250,8 +250,6 @@
// "ci-cd". The set of fields is always in the version that the
// workflow used when modifying the object.
//
- // This field is alpha and can be changed or removed without notice.
- //
// +optional
managedFields?: [...ManagedFieldsEntry] @go(ManagedFields,[]ManagedFieldsEntry) @protobuf(17,bytes,rep)
}
diff --git a/doc/tutorial/kubernetes/quick/pkg/k8s.io/apimachinery/pkg/runtime/codec_go_gen.cue b/doc/tutorial/kubernetes/quick/pkg/k8s.io/apimachinery/pkg/runtime/codec_go_gen.cue
index 3ffad36..8a401fa 100644
--- a/doc/tutorial/kubernetes/quick/pkg/k8s.io/apimachinery/pkg/runtime/codec_go_gen.cue
+++ b/doc/tutorial/kubernetes/quick/pkg/k8s.io/apimachinery/pkg/runtime/codec_go_gen.cue
@@ -13,6 +13,3 @@
NoopDecoder :: {
Encoder: Encoder
}
-
-// GroupVersioners implements GroupVersioner and resolves to the first exact match for any kind.
-GroupVersioners :: [...GroupVersioner]