Class: Kustomize::Transform::ApplicationOrderTransform
- Inherits:
-
Kustomize::Transform
- Object
- Kustomize::Transform
- Kustomize::Transform::ApplicationOrderTransform
- Includes:
- Singleton
- Defined in:
- lib/kustomize/transform/application_order_transform.rb
Constant Summary collapse
- KIND_PRIORITIES =
[ "Namespace", "NetworkPolicy", "ResourceQuota", "LimitRange", "PodSecurityPolicy", "PodDisruptionBudget", "ServiceAccount", "SealedSecret", "Secret", "SecretList", "ConfigMap", "StorageClass", "PersistentVolume", "PersistentVolumeClaim", "CustomResourceDefinition", "ClusterRole", "ClusterRoleList", "ClusterRoleBinding", "ClusterRoleBindingList", "Role", "RoleList", "RoleBinding", "RoleBindingList", "Service", "DaemonSet", "Pod", "ReplicationController", "ReplicaSet", "Deployment", "HorizontalPodAutoscaler", "StatefulSet", :unknown_kind, "Job", "CronJob", "IngressClass", "Ingress", "APIService", ].each_with_index.to_h
Instance Method Summary collapse
Methods inherited from Kustomize::Transform
Instance Method Details
#rewrite_all(rcs) ⇒ Object
51 52 53 54 55 |
# File 'lib/kustomize/transform/application_order_transform.rb', line 51 def rewrite_all(rcs) rcs.sort_by do |rc| KIND_PRIORITIES[rc['kind']] || KIND_PRIORITIES[:unknown_kind] end end |