type: string
description: OCI image
default: opensourcemano/lcm:8
+ image_username:
+ description: Docker repository username
+ type: string
+ default: ""
+ image_password:
+ description: Docker repository password
+ type: string
+ default: ""
data = {
"name": md.get("name"),
- "docker_image": cfg.get("image"),
"ro_host": ro_host,
"ro_port": ro_port,
"kafka_host": kafka_host,
version: 2
containers:
- name: %(name)s
- image: %(docker_image)s
+ imageDetails:
+ imagePath: %(image)s
+ username: %(image_username)s
+ password: %(image_password)s
ports:
# This is a fake port; lcm doesn't listen, since it's just reading
# and responding to the kafka bus. Fix this in post.
type: string
description: OCI image
default: opensourcemano/mon:8
+ image_username:
+ description: Docker repository username
+ type: string
+ default: ""
+ image_password:
+ description: Docker repository password
+ type: string
+ default: ""
data = {
"name": md.get("name"),
- "docker_image": cfg.get("image"),
"kafka_host": kafka_host,
"kafka_port": kafka_port,
"mongo_uri": mongo_uri,
version: 2
containers:
- name: %(name)s
- image: %(docker_image)s
+ imageDetails:
+ imagePath: %(image)s
+ username: %(image_username)s
+ password: %(image_password)s
ports:
- containerPort: %(advertised-port)s
protocol: TCP
type: string
description: OCI image
default: opensourcemano/nbi:8
+ image_username:
+ description: Docker repository username
+ type: string
+ default: ""
+ image_password:
+ description: Docker repository password
+ type: string
+ default: ""
auth-backend:
type: string
description: Authentication backend ('internal' or 'keystone')
prometheus_host, prometheus_port = parse_hostport(prometheus_uri)
data = {
"name": md.get("name"),
- "docker_image": cfg.get("image"),
"mongo_uri": mongo_uri,
"kafka_host": "{}".format(kafka_host),
"kafka_port": "{}".format(kafka_port),
version: 2
containers:
- name: %(name)s
- image: %(docker_image)s
+ imageDetails:
+ imagePath: %(image)s
+ username: %(image_username)s
+ password: %(image_password)s
ports:
- containerPort: %(advertised-port)s
protocol: TCP
description: Docker image name
type: string
default: opensourcemano/ng-ui:8
+ image_username:
+ description: Docker repository username
+ type: string
+ default: ""
+ image_password:
+ description: Docker repository password
+ type: string
+ default: ""
port:
description: Port number
type: int
+++ /dev/null
-../src/charm.py
\ No newline at end of file
+++ /dev/null
-../mod/operator/ops
\ No newline at end of file
+++ /dev/null
-Subproject commit a84ce8776b368a8b2bccdb173716e342db9a6b36
)
-sys.path.append("lib")
-
-
logger = logging.getLogger(__name__)
]
port = config["https_port"] if ssl_enabled else config["port"]
ports = [
- {"name": "port", "containerPort": port, "protocol": "TCP", },
+ {
+ "name": "port",
+ "containerPort": port,
+ "protocol": "TCP",
+ },
]
kubernetes = {
"containers": [
{
"name": self.framework.model.app.name,
- "image": "{}".format(config["image"]),
+ "imageDetails": {
+ "imagePath": config["image"],
+ "username": config["image_username"],
+ "password": config["image_password"],
+ },
"ports": ports,
"kubernetes": kubernetes,
"files": files,
description: Docker image name
type: string
default: opensourcemano/pla:8
+ image_username:
+ description: Docker repository username
+ type: string
+ default: ""
+ image_password:
+ description: Docker repository password
+ type: string
+ default: ""
port:
description: Port number
type: int
+++ /dev/null
-../src/charm.py
\ No newline at end of file
+++ /dev/null
-../src/charm.py
\ No newline at end of file
+++ /dev/null
-../src/charm.py
\ No newline at end of file
+++ /dev/null
-../mod/operator/ops
\ No newline at end of file
+++ /dev/null
-Subproject commit a84ce8776b368a8b2bccdb173716e342db9a6b36
)
-sys.path.append("lib")
-
-
logger = logging.getLogger(__name__)
config = self.framework.model.config
ports = [
- {"name": "port", "containerPort": config["port"], "protocol": "TCP", },
+ {
+ "name": "port",
+ "containerPort": config["port"],
+ "protocol": "TCP",
+ },
]
config_spec = {
"containers": [
{
"name": self.framework.model.app.name,
- "image": config["image"],
+ "imageDetails": {
+ "imagePath": config["image"],
+ "username": config["image_username"],
+ "password": config["image_password"],
+ },
"ports": ports,
"config": config_spec,
}
self._apply_spec()
def on_mongo_relation_changed(self, event):
- mongodb_uri = event.relation.data[event.unit].get(
- "connection_string"
- )
+ mongodb_uri = event.relation.data[event.unit].get("connection_string")
if mongodb_uri and self.state.mongodb_uri != mongodb_uri:
self.state.mongodb_uri = mongodb_uri
self._apply_spec()
type: string
description: OCI image
default: opensourcemano/pol:8
+ image_username:
+ description: Docker repository username
+ type: string
+ default: ""
+ image_password:
+ description: Docker repository password
+ type: string
+ default: ""
cfg = config()
data = {
"name": md.get("name"),
- "docker_image": cfg.get("image"),
"kafka_host": kafka_host,
"kafka_port": kafka_port,
"mongo_uri": mongo_uri,
version: 2
containers:
- name: %(name)s
- image: %(docker_image)s
+ imageDetails:
+ imagePath: %(image)s
+ username: %(image_username)s
+ password: %(image_password)s
ports:
# This is a fake port; lcm doesn't listen, since it's just reading
# and responding to the kafka bus. Fix this in post.
type: string
description: OCI image
default: opensourcemano/ro:8
+ image_username:
+ description: Docker repository username
+ type: string
+ default: ""
+ image_password:
+ description: Docker repository password
+ type: string
+ default: ""
data = {
"name": md.get("name"),
- "docker_image": cfg.get("image"),
"mysql_host": mysql_host,
"mysql_port": mysql_port,
"mysql_user": mysql_user,
scalePolicy: serial
containers:
- name: %(name)s
- image: %(docker_image)s
+ imageDetails:
+ imagePath: %(image)s
+ username: %(image_username)s
+ password: %(image_password)s
kubernetes:
readinessProbe:
httpGet:
type: string
description: OCI image
default: opensourcemano/light-ui:8
+ image_username:
+ description: Docker repository username
+ type: string
+ default: ""
+ image_password:
+ description: Docker repository password
+ type: string
+ default: ""
version: 2
containers:
- name: %(name)s
- image: %(docker_image)s
+ imageDetails:
+ imagePath: %(image)s
+ username: %(image_username)s
+ password: %(image_password)s
ports:
- containerPort: %(advertised-port)s
protocol: TCP
data = {
"name": md.get("name"),
- "docker_image": cfg.get("image"),
"mysql_host": mysql_host,
"mysql_port": mysql_port,
"mysql_user": mysql_user,