blob: 4a191cd72e3117c7306fe27e79a90dba22e92503 [file] [log] [blame]
Matteo Scandolod1fd1462019-02-21 08:12:26 -08001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# -*- coding: utf-8 -*-
16# Generated by Django 1.11.11 on 2019-02-21 16:10
17from __future__ import unicode_literals
18
19import core.models.xosbase_header
20from django.db import migrations, models
21import django.db.models.deletion
22import django.utils.timezone
23
24
25class Migration(migrations.Migration):
26
27 initial = True
28
29 dependencies = [
30 ('core', '0002_initial_data'),
31 ]
32
33 operations = [
34 migrations.CreateModel(
35 name='KubernetesConfigVolumeMount',
36 fields=[
37 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
38 ('created', models.DateTimeField(auto_now_add=True, help_text=b'Time this model was created')),
39 ('updated', models.DateTimeField(default=django.utils.timezone.now, help_text=b'Time this model was changed by a non-synchronizer')),
40 ('enacted', models.DateTimeField(blank=True, default=None, help_text=b'When synced, set to the timestamp of the data that was synced', null=True)),
41 ('policed', models.DateTimeField(blank=True, default=None, help_text=b'When policed, set to the timestamp of the data that was policed', null=True)),
42 ('backend_register', models.CharField(blank=True, default=b'{}', max_length=1024, null=True)),
43 ('backend_need_delete', models.BooleanField(default=False)),
44 ('backend_need_reap', models.BooleanField(default=False)),
45 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=1024, null=True)),
46 ('backend_code', models.IntegerField(default=0)),
47 ('deleted', models.BooleanField(default=False)),
48 ('write_protect', models.BooleanField(default=False)),
49 ('lazy_blocked', models.BooleanField(default=False)),
50 ('no_sync', models.BooleanField(default=False)),
51 ('no_policy', models.BooleanField(default=False)),
52 ('policy_status', models.CharField(blank=True, default=b'Policy in process', max_length=1024, null=True)),
53 ('policy_code', models.IntegerField(blank=True, default=0, null=True)),
54 ('leaf_model_name', models.CharField(help_text=b'The most specialized model in this chain of inheritance, often defined by a service developer', max_length=1024)),
55 ('backend_need_delete_policy', models.BooleanField(default=False, help_text=b'True if delete model_policy must be run before object can be reaped')),
56 ('xos_managed', models.BooleanField(default=True, help_text=b'True if xos is responsible for creating/deleting this object')),
57 ('backend_handle', models.CharField(blank=True, help_text=b'Handle used by the backend to track this object', max_length=1024, null=True)),
58 ('changed_by_step', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a sync step', null=True)),
59 ('changed_by_policy', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a model policy', null=True)),
60 ('mount_path', models.CharField(blank=True, help_text=b'Path to mount secret', max_length=1024, null=True)),
61 ('sub_path', models.CharField(blank=True, help_text=b'Subpath within secret to mount', max_length=1024, null=True)),
62 ],
63 options={
64 'verbose_name': 'KubernetesConfigVolumeMount',
65 },
66 bases=(models.Model, core.models.xosbase_header.PlModelMixIn),
67 ),
68 migrations.CreateModel(
69 name='KubernetesData',
70 fields=[
71 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
72 ('created', models.DateTimeField(auto_now_add=True, help_text=b'Time this model was created')),
73 ('updated', models.DateTimeField(default=django.utils.timezone.now, help_text=b'Time this model was changed by a non-synchronizer')),
74 ('enacted', models.DateTimeField(blank=True, default=None, help_text=b'When synced, set to the timestamp of the data that was synced', null=True)),
75 ('policed', models.DateTimeField(blank=True, default=None, help_text=b'When policed, set to the timestamp of the data that was policed', null=True)),
76 ('backend_register', models.CharField(blank=True, default=b'{}', max_length=1024, null=True)),
77 ('backend_need_delete', models.BooleanField(default=False)),
78 ('backend_need_reap', models.BooleanField(default=False)),
79 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=1024, null=True)),
80 ('backend_code', models.IntegerField(default=0)),
81 ('deleted', models.BooleanField(default=False)),
82 ('write_protect', models.BooleanField(default=False)),
83 ('lazy_blocked', models.BooleanField(default=False)),
84 ('no_sync', models.BooleanField(default=False)),
85 ('no_policy', models.BooleanField(default=False)),
86 ('policy_status', models.CharField(blank=True, default=b'Policy in process', max_length=1024, null=True)),
87 ('policy_code', models.IntegerField(blank=True, default=0, null=True)),
88 ('leaf_model_name', models.CharField(help_text=b'The most specialized model in this chain of inheritance, often defined by a service developer', max_length=1024)),
89 ('backend_need_delete_policy', models.BooleanField(default=False, help_text=b'True if delete model_policy must be run before object can be reaped')),
90 ('xos_managed', models.BooleanField(default=True, help_text=b'True if xos is responsible for creating/deleting this object')),
91 ('backend_handle', models.CharField(blank=True, help_text=b'Handle used by the backend to track this object', max_length=1024, null=True)),
92 ('changed_by_step', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a sync step', null=True)),
93 ('changed_by_policy', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a model policy', null=True)),
94 ('name', models.CharField(blank=True, help_text=b'Name of this data store', max_length=256, null=True)),
95 ('data', models.TextField(blank=True, help_text=b'Set of key,value pairs encoded as a json dictionary', null=True)),
96 ],
97 options={
98 'verbose_name': 'KubernetesData',
99 },
100 bases=(models.Model, core.models.xosbase_header.PlModelMixIn),
101 ),
102 migrations.CreateModel(
103 name='KubernetesResourceInstance',
104 fields=[
105 ('serviceinstance_decl_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.ServiceInstance_decl')),
106 ('resource_definition', models.TextField(blank=True, help_text=b'yaml blob', null=True)),
107 ('kubectl_state', models.CharField(blank=True, choices=[(b'created', b'CREATED'), (b'updated', b'UPDATED'), (b'deleted', b'DELETED')], help_text=b'Most recent state of kubectl', max_length=32, null=True)),
108 ],
109 options={
110 'verbose_name': 'Kubernetes Resource Instance',
111 },
112 bases=('core.serviceinstance',),
113 ),
114 migrations.CreateModel(
115 name='KubernetesSecretVolumeMount',
116 fields=[
117 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
118 ('created', models.DateTimeField(auto_now_add=True, help_text=b'Time this model was created')),
119 ('updated', models.DateTimeField(default=django.utils.timezone.now, help_text=b'Time this model was changed by a non-synchronizer')),
120 ('enacted', models.DateTimeField(blank=True, default=None, help_text=b'When synced, set to the timestamp of the data that was synced', null=True)),
121 ('policed', models.DateTimeField(blank=True, default=None, help_text=b'When policed, set to the timestamp of the data that was policed', null=True)),
122 ('backend_register', models.CharField(blank=True, default=b'{}', max_length=1024, null=True)),
123 ('backend_need_delete', models.BooleanField(default=False)),
124 ('backend_need_reap', models.BooleanField(default=False)),
125 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=1024, null=True)),
126 ('backend_code', models.IntegerField(default=0)),
127 ('deleted', models.BooleanField(default=False)),
128 ('write_protect', models.BooleanField(default=False)),
129 ('lazy_blocked', models.BooleanField(default=False)),
130 ('no_sync', models.BooleanField(default=False)),
131 ('no_policy', models.BooleanField(default=False)),
132 ('policy_status', models.CharField(blank=True, default=b'Policy in process', max_length=1024, null=True)),
133 ('policy_code', models.IntegerField(blank=True, default=0, null=True)),
134 ('leaf_model_name', models.CharField(help_text=b'The most specialized model in this chain of inheritance, often defined by a service developer', max_length=1024)),
135 ('backend_need_delete_policy', models.BooleanField(default=False, help_text=b'True if delete model_policy must be run before object can be reaped')),
136 ('xos_managed', models.BooleanField(default=True, help_text=b'True if xos is responsible for creating/deleting this object')),
137 ('backend_handle', models.CharField(blank=True, help_text=b'Handle used by the backend to track this object', max_length=1024, null=True)),
138 ('changed_by_step', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a sync step', null=True)),
139 ('changed_by_policy', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a model policy', null=True)),
140 ('mount_path', models.CharField(blank=True, help_text=b'Path to mount secret', max_length=256, null=True)),
141 ('sub_path', models.CharField(blank=True, help_text=b'Subpath within secret to mount', max_length=1024, null=True)),
142 ],
143 options={
144 'verbose_name': 'KubernetesSecretVolumeMount',
145 },
146 bases=(models.Model, core.models.xosbase_header.PlModelMixIn),
147 ),
148 migrations.CreateModel(
149 name='KubernetesService',
150 fields=[
151 ('service_decl_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Service_decl')),
152 ],
153 options={
154 'verbose_name': 'Kubernetes Service',
155 },
156 bases=('core.service',),
157 ),
158 migrations.CreateModel(
159 name='KubernetesServiceInstance',
160 fields=[
161 ('computeserviceinstance_decl_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.ComputeServiceInstance_decl')),
162 ('pod_ip', models.CharField(blank=True, help_text=b'IP address of pod', max_length=32, null=True)),
163 ('need_event', models.BooleanField(default=False, help_text=b'True if a kafka event needs to be sent by the pull step')),
164 ('last_event_sent', models.CharField(blank=True, choices=[(b'created', b'CREATED'), (b'updated', b'UPDATED'), (b'deleted', b'DELETED')], help_text=b'Type of last event sent', max_length=32, null=True)),
165 ],
166 options={
167 'verbose_name': 'Kubernetes Service Instance',
168 },
169 bases=('core.computeserviceinstance',),
170 ),
171 migrations.CreateModel(
172 name='KubernetesConfigMap',
173 fields=[
174 ('kubernetesdata_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='kubernetes.KubernetesData')),
175 ],
176 options={
177 'verbose_name': 'KubernetesConfigMap',
178 },
179 bases=('kubernetes.kubernetesdata',),
180 ),
181 migrations.CreateModel(
182 name='KubernetesSecret',
183 fields=[
184 ('kubernetesdata_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='kubernetes.KubernetesData')),
185 ],
186 options={
187 'verbose_name': 'KubernetesSecret',
188 },
189 bases=('kubernetes.kubernetesdata',),
190 ),
191 migrations.AddField(
192 model_name='kubernetessecretvolumemount',
193 name='service_instance',
194 field=models.ForeignKey(help_text=b'Service instance in which to mount secret', on_delete=django.db.models.deletion.CASCADE, related_name='kubernetes_secret_volume_mounts', to='kubernetes.KubernetesServiceInstance'),
195 ),
196 migrations.AddField(
197 model_name='kubernetesdata',
198 name='trust_domain',
199 field=models.ForeignKey(help_text=b'Trust domain this data resides in', on_delete=django.db.models.deletion.CASCADE, related_name='kubernetes_configmaps', to='core.TrustDomain'),
200 ),
201 migrations.AddField(
202 model_name='kubernetesconfigvolumemount',
203 name='service_instance',
204 field=models.ForeignKey(help_text=b'Service instance in which to mount config', on_delete=django.db.models.deletion.CASCADE, related_name='kubernetes_config_volume_mounts', to='kubernetes.KubernetesServiceInstance'),
205 ),
206 migrations.AddField(
207 model_name='kubernetessecretvolumemount',
208 name='secret',
209 field=models.ForeignKey(help_text=b'Secret to mount', on_delete=django.db.models.deletion.CASCADE, related_name='kubernetes_secret_volume_mounts', to='kubernetes.KubernetesSecret'),
210 ),
211 migrations.AddField(
212 model_name='kubernetesconfigvolumemount',
213 name='config',
214 field=models.ForeignKey(help_text=b'Config to mount', on_delete=django.db.models.deletion.CASCADE, related_name='kubernetes_config_voume_mounts', to='kubernetes.KubernetesConfigMap'),
215 ),
216 ]