Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
breimers committed Apr 3, 2020
1 parent 38816f8 commit 1e863eb
Show file tree
Hide file tree
Showing 8 changed files with 1,165 additions and 666 deletions.
18 changes: 18 additions & 0 deletions django_kubernetes_manager/consts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
PULL_POLICY = [
('Always', 'Always'),
('IfNotPresent', 'IfNotPresent'),
('Never', 'Never')
]

RESTART_POLICY = [
('Always', 'Always'),
('OnFailure', 'OnFailure'),
('Never', 'Never')
]

byte_units = {
"E": 1000**6, "P": 1000**5, "T": 1000**4,
"G": 1000**3, "M": 1000**2, "K": 1000,
"Ei": 1024**6, "Pi": 1024**5, "Ti": 1024**4,
"Gi": 1024**3, "Mi": 1024**2, "Ki": 1024
}
461 changes: 461 additions & 0 deletions django_kubernetes_manager/migrations/0003_auto_20200403_1847.py

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions django_kubernetes_manager/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .base import (KubernetesContainer, KubernetesDeployment,
KubernetesIngress, KubernetesJob, KubernetesNamespace,
KubernetesPodTemplate, KubernetesService, KubernetesVolume,
KubernetesVolumeMount, KubernetesNamespace, KubernetesBase,
KubernetesMetadataObjBase, KubernetesNetworkingBase,
KubernetesConfigMap)
from .base import (KubernetesBase, KubernetesMetadataObjBase,
KubernetesNetworkingBase)
from .kube import (KubernetesConfigMap, KubernetesContainer,
KubernetesDeployment, KubernetesIngress, KubernetesJob,
KubernetesNamespace, KubernetesPodTemplate,
KubernetesService, KubernetesVolume, KubernetesVolumeMount)
from .target_cluster import TargetCluster
Loading

0 comments on commit 1e863eb

Please sign in to comment.