summaryrefslogtreecommitdiffstats
path: root/cps-ri/src/main/resources/changelog/db/changes/03-loadData-schema-set.yaml
diff options
context:
space:
mode:
authorputhuparambil.aditya <aditya.puthuparambil@bell.ca>2021-02-23 15:51:00 +0000
committerputhuparambil.aditya <aditya.puthuparambil@bell.ca>2021-02-24 10:10:34 +0000
commit495ae8e49f0131bf461ea52baa87004c39f40bd3 (patch)
tree667898db10d46db52617e92157c13781537c3796 /cps-ri/src/main/resources/changelog/db/changes/03-loadData-schema-set.yaml
parent861ecab596c548d77cc18f1581a992159ada82ee (diff)
Schema creation and Data pre-load to on cps-xnf-proxy start-up using liquibase
1. Common change-log master used only to specify the different change sets. 2. Specific change set created for cpsTables creation and for loading data to each cps component like dataspace, schema-set, anchor and dataNode 3. The data load cabability is configurable in the sense, it will be trigered only if the label is specified in the application.yaml Issue-ID: CPS-173, CPS-242 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I44c640ce50b7203f5799d722149397478a98bc05
Diffstat (limited to 'cps-ri/src/main/resources/changelog/db/changes/03-loadData-schema-set.yaml')
-rw-r--r--cps-ri/src/main/resources/changelog/db/changes/03-loadData-schema-set.yaml53
1 files changed, 53 insertions, 0 deletions
diff --git a/cps-ri/src/main/resources/changelog/db/changes/03-loadData-schema-set.yaml b/cps-ri/src/main/resources/changelog/db/changes/03-loadData-schema-set.yaml
new file mode 100644
index 0000000000..fd214dab3f
--- /dev/null
+++ b/cps-ri/src/main/resources/changelog/db/changes/03-loadData-schema-set.yaml
@@ -0,0 +1,53 @@
+databaseChangeLog:
+ - changeSet:
+ author: cps
+ label: xnf-data-preload
+ id: 3.1
+ loadUpdateData:
+ encoding: UTF-8
+ file: 'changelog/db/changes/data/schema_set.csv'
+ onlyUpdate: 'false'
+ primaryKey: 'id'
+ quotchar: '"'
+ separator: '|'
+ tableName: 'schema_set'
+
+ - changeSet:
+ author: cps
+ label: xnf-data-preload
+ id: 3.2
+ loadUpdateData:
+ encoding: UTF-8
+ file: 'changelog/db/changes/data/yang_resource.csv'
+ onlyUpdate: 'false'
+ primaryKey: 'id'
+ quotchar: '"'
+ separator: '|'
+ tableName: 'yang_resource'
+ columns:
+ - column:
+ header: name
+ name: name
+ type: STRING
+ - column:
+ header: content
+ name: content
+ type: STRING
+ - column:
+ header: checkstyle
+ name: checkstyle
+ type: STRING
+
+ - changeSet:
+ author: cps
+ label: xnf-data-preload
+ id: 3.3
+ loadUpdateData:
+ encoding: UTF-8
+ file: 'changelog/db/changes/data/schema_set_yang_resources.csv'
+ quotchar: '"'
+ primaryKey: 'schema_set_id,yang_resource_id'
+ separator: '|'
+ tableName: 'schema_set_yang_resources'
+ usePreparedStatements: true
+
d2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  labels:
    app: healthy
    version: 1.0.0
  name: healthy
spec:
  selector:
    matchLabels:
      app: healthy
      version: 1.0.0
  template:
    metadata:
      labels:
        app: healthy
        version: 1.0.0
      name: healthy
    spec:
      containers:
      - args:
        - --container-name
        - hbase
        command:
        - /root/ready.py
        image: oomk8s/readiness-check:1.0.0
        imagePullPolicy: Always
        name: healthy
        env:
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace