1
0
mirror of https://github.com/oVirt/ovirt-openshift-extensions.git synced 2026-02-05 09:46:02 +01:00

15 Commits

Author SHA1 Message Date
Roy Golan
d79be7b056 make: generify targets and cleanups
The Makefile is even more generic now, clean, and easy to interact with
and extend.

The main targets are: build, build-containers, push-containers

Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-11-07 22:49:52 +02:00
Roy Golan
2c19d7fdcb Produce a container list after pushing them
Motivation:
I want a CI pipeline to get the list of built containers, pull them by
version and run system tests on it.

Modification
First improved the Makefile to use pattern rules so its easy to get
evertyhing under one push target, and in there write every container
pushed into a containers-artifacts.list file.
Finally copying this file the EXPORTED_ARTIFACTS dir

Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-11-07 11:16:52 +02:00
Roy Golan
da1cc1fa89 cloud-provider: Move from rgolangh/ovirt-k8-cloud-provider
This patch moves the mono-repo under rgolangh to here as
ovirt-cloudprovider.

- Makefile
  - add build
  - add container
  - add rpm
- Compile against k8s 1.11 api (should be compatible with 1.10)

Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-08-27 12:57:25 +03:00
Roy Golan
b37d913b6d ci: Move to 3.10
Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-08-15 14:59:42 +03:00
Roy Golan
fff3a9c18a Add vendor directory
Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-03-12 15:42:34 +02:00
Roy Golan
f19f53bb6e Fix the build package name
It is now rgolangh, and it will be set to ovirt when I'll transfer the
the repo to the ovirt organization.
2018-02-15 16:14:12 +02:00
Roy Golan
ad2f4b77e9 gitignore update
Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-02-15 11:42:10 +02:00
Roy Golan
286dc44b96 flexdriver: Produce RPM
Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-02-14 13:29:03 +02:00
Roy Golan
0cf9db1593 initiate ovirt api using ini-file created by configmap
Since the provisioner runs in a container we can use a config map to
hold ovirt details. This would be translated into a file in the
container using the pod spec definition.

First create the config map file:
```
cat ovirt-configmap

url=https://hostname:8443/ovirt-engine/api
username=admin@internal
password=pass
insecure=false
cafile=
```

On k8s master, create the config map, name it 'ovirt' and map it to
'connection' key:
```
kubectl create configmap ovirt
--from-file=connection=ovirt-configmap
```

In the provisioner pod spec, map the config map to a file using a
volume:
```
cat pod-provisioner
apiVersion: v1
metadata:
  name: ovirt-provisioner
spec:
  containers:
    - name: ovirt-provisioner
      image: rgolangh/ovirt-provisioner:v0.1
      securityContext:
      imagePullPolicy: "IfNotPresent"
      volumeMounts:
      - name: config-volume
        mountPath: /etc
  volumes:
    - name: config-volume
      configMap:
        name: ovirt
        items:
          - key: connection
            path: ovirt-api.conf

```

Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-01-31 14:31:35 +02:00
Roy Golan
3efbd594e2 Proper container lifecycle for the provisioner
- Minor fixes to the docker file
- Add makefile targets for building and pushing

Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-01-30 14:24:00 +02:00
Roy Golan
7662c5da65 gitignore temp vendor dirs
Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-01-29 16:53:02 +02:00
Roy Golan
9cff2cfa3f Manage dependencies using go dep
Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-01-25 15:55:33 +02:00
Roy Golan
54de537f2e Ignore ansible retry files
Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-01-18 16:55:31 +02:00
Roy Golan
dcfc5f1254 Cleanup conf files from the repo
Signed-off-by: Roy Golan <rgolan@redhat.com>
2018-01-11 15:39:19 +02:00
Roy Golan
1bd1522b99 Initial commit
Signed-off-by: Roy Golan <rgolan@redhat.com>
2017-12-26 13:50:11 +02:00