Commit Graph

20 Commits

Author SHA1 Message Date
Gasmi Christophe 256765aa74 Networkpolicy kind sort (#6266)
* Add NetworkPolicy in kind sorter

Signed-off-by: Christophe GASMI <rekcah78@gmail.com>

* Added NetworkPolicy to sort order test

Signed-off-by: Christophe GASMI <rekcah78@gmail.com>
2019-08-26 10:43:07 +01:00
Constantin Bugneac 535df90cc8 Added HorizontalPodAutoscaler to sort order.
Signed-off-by: Constantin Bugneac <constantin.bugneac@worldfirst.com>
2019-07-19 11:37:03 +01:00
Seb Ospina 320e853b8d Added List mode for Role, ClusterRole and Bindings
Kubernetes supports RoleList, RoleBindingList, ClusterRoleList and
ClusterRoleBindingList, in order for a Role to be bound, it must
already exist.
For the List reference, see: https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/rbac/types.go

Signed-off-by: Seb Ospina <kraige@gmail.com>
2019-07-13 09:17:49 +02:00
Gábor Lipták bed4054c41 Correct golint warning (#5287)
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2019-02-10 01:14:32 -08:00
Alexander Matyushentsev f5df47b1c8 Fix: kind sorter incorrectly compares unknown and namespace (#5186)
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
2019-02-01 09:02:06 -08:00
Matt Tucker 147c8217c7 fix(tiller): correctly sort PodDisruptionBudget objects before pods that might use them (#4769)
Signed-off-by: Matt Tucker <ultimateboy@gmail.com>
2018-10-12 13:49:45 -06:00
Matthew Fisher 2d77db11fa change copyright to "Copyright The Helm Authors" 2018-07-30 08:29:17 -07:00
Sergii Manannikov 7631b8a926 Create PodSecurityPolicy before Pods and ServiceAccounts 2018-04-14 18:10:21 +02:00
Taylor Thomas 29c3b5276f fix(tiller): Adds CRD ordering
This adds CRD ordering into the explicit kind sorter list

Closes #2925
2017-10-09 23:21:44 -07:00
Justin Scott b642ba2087 Merge pull request #2831 from jascott1/sort_unknown_kind
bug(tiller): sort unknown but different kinds alphabetically based on kind name
2017-10-02 13:13:04 -07:00
NauxLiu c3f9120e02
Load StorageClass before PersistentVolume is loaded. 2017-09-22 21:29:46 +08:00
Justin Scott ed24b3199a bug(tiller): sort unknown but different kinds alphabetically based on kind name
Adds additional manifest sorting logic so that different unknown kinds
are sorted alphabetically so that manifest order is more deterministic.
2017-09-06 15:55:30 -07:00
Justin Scott 4a02a71f1e WIP feat(helm): add `template` command
This adds the functionality from the helm-template plugin to allow the
rendering of templates without Tiller.

Closes #2755
2017-08-28 18:04:56 -07:00
Justin Scott f239050996 Update kind subsort to sort unknown kinds alphabetically.
Remove length check from subsort test. Add check for unknowns.
2017-08-16 00:32:33 -07:00
Justin Scott 66c4f7453e feat(tiller): sort manifests alphabetically if they are same kind
Updates Tiller manifest sorting so that manifests of the same kind are
then sorted alphabetically.

Closes #1696
2017-08-16 00:32:33 -07:00
Aaron Schlesinger 5ff75f84a6 Adding APIService to the sort order
This ensures that APIService resources are installed last and
uninstalled first
2017-07-06 14:21:32 -07:00
Steven E. Harris 4178ec08ac Add more object kinds to sorted installation order
The following kinds are newly addressed:

  CronJob
  LimitRange
  ReplicaSet
  ResourceQuota
  StatefulSet

Furthermore, adjust the installation and uninstallation order to
better respect likely dependencies. Bare pods remain a difficult one
to place properly in both sequences.
2017-03-30 12:11:36 -04:00
Steven E. Harris 7ccfc6d7d4 Sort dependent RBAC role and binding kinds
During installation and uninstallation, handle the RBAC-related
ClusterRole, ClusterRoleBinding, Role, and RoleBinding kinds in an
order that respects their potential referential integrity, namely that
ClusterRoleBindings can refer to ClusterRoles and ServiceAccounts, and
RoleBindings can refer to ClusterRoles, Roles, and ServiceAccounts.

Fixes #2199.
2017-03-29 17:31:21 -04:00
Matthew Fisher 3f463783a5 add PersistentVolumeClaim to the kind sorter list
At the present time, PersistentVolumeClaims are not a recognized object so it is installed last.
PVCs should be installed shortly after PersistentVolumes have been bound.
2017-02-02 08:32:29 -08:00
adieu c0850efeb5 Separate tiller into pkg and cmd so we can use tiller as a library. 2016-11-02 22:53:07 +08:00