Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

add update payload manifests #27

Merged
merged 2 commits into from
Sep 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ RUN cd /go/src/github.com/openshift/service-serving-cert-signer && go build ./cm

FROM centos:7
COPY --from=0 /go/src/github.com/openshift/service-serving-cert-signer/service-serving-cert-signer /usr/bin/service-serving-cert-signer

COPY manifests /manifests
LABEL io.openshift.release.operator=true
4 changes: 2 additions & 2 deletions hack/update-generated-bindata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ pushd "${OS_ROOT}" > /dev/null
"$(os::util::find::gopath_binary go-bindata)" \
-nocompress \
-nometadata \
-prefix "manifests" \
-prefix "bindata" \
-pkg "v310_00_assets" \
-o "${OUTPUT_PARENT}/pkg/operator/v310_00_assets/bindata.go" \
-ignore "OWNERS" \
manifests/v3.10.0/...
bindata/v3.10.0/...

popd > /dev/null

Expand Down
11 changes: 11 additions & 0 deletions manifests/01_serviceservingcertsigner_00_roles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:openshift:operator:service-cert-signer
roleRef:
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
namespace: openshift-core-operators
name: openshift-service-cert-signer-operator
6 changes: 6 additions & 0 deletions manifests/01_serviceservingcertsigner_01_namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
openshift.io/run-level: "1"
name: openshift-core-operators
14 changes: 14 additions & 0 deletions manifests/01_serviceservingcertsigner_02_crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: servicecertsigneroperatorconfigs.servicecertsigner.config.openshift.io
spec:
scope: Cluster
group: servicecertsigner.config.openshift.io
version: v1alpha1
names:
kind: ServiceCertSignerOperatorConfig
plural: servicecertsigneroperatorconfigs
singular: servicecertsigneroperatorconfig
subresources:
status: {}
9 changes: 9 additions & 0 deletions manifests/01_serviceservingcertsigner_03_cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
namespace: openshift-core-operators
name: openshift-service-cert-signer-operator-config
data:
operator-config.yaml: |
apiVersion: operator.openshift.io/v1alpha1
kind: GenericOperatorConfig
40 changes: 40 additions & 0 deletions manifests/01_serviceservingcertsigner_04_deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: openshift-core-operators
name: openshift-service-cert-signer-operator
labels:
app: openshift-service-cert-signer-operator
spec:
replicas: 1
selector:
matchLabels:
app: openshift-service-cert-signer-operator
template:
metadata:
name: openshift-service-cert-signer-operator
labels:
app: openshift-service-cert-signer-operator
spec:
serviceAccountName: openshift-service-cert-signer-operator
containers:
- name: operator
image: openshift/origin-service-serving-cert-signer:latest
imagePullPolicy: IfNotPresent
command: ["service-serving-cert-signer", "operator"]
args:
- "--config=/var/run/configmaps/config/operator-config.yaml"
- "-v=4"
volumeMounts:
- mountPath: /var/run/configmaps/config
name: config
volumes:
- name: serving-cert
secret:
defaultMode: 400
secretName: openshift-service-cert-signer-operator-serving-cert
optional: true
- name: config
configMap:
defaultMode: 440
name: openshift-service-cert-signer-operator-config
7 changes: 7 additions & 0 deletions manifests/01_serviceservingcertsigner_05_sa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
namespace: openshift-core-operators
name: openshift-service-cert-signer-operator
labels:
app: openshift-service-cert-signer-operator
11 changes: 11 additions & 0 deletions manifests/01_serviceservingcertsigner_06_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: servicecertsigner.config.openshift.io/v1alpha1
kind: ServiceCertSignerOperatorConfig
metadata:
name: instance
spec:
managementState: Managed
imagePullSpec: openshift/origin-service-serving-cert-signer:latest
version: 3.10.0
logging:
level: 4
replicas: 1
8 changes: 8 additions & 0 deletions manifests/image-references
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: ImageStream
apiVersion: image.openshift.io/v1
spec:
tags:
- name: service-serving-cert-signer
from:
kind: DockerImage
name: quay.io/openshift/origin-service-serving-cert-signer
36 changes: 18 additions & 18 deletions pkg/operator/v310_00_assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.