Permalink
Browse files

initial commit after operator-sdk generation

  • Loading branch information...
Francesco Gualazzi
Francesco Gualazzi committed May 5, 2018
1 parent f9dc0c7 commit bd7a1cf8790cf02169057f759e40272993673181
Showing 5,304 changed files with 2,120,247 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,17 @@
[[override]]
name = "k8s.io/api"
version = "kubernetes-1.9.3"

[[override]]
name = "k8s.io/apimachinery"
version = "kubernetes-1.9.3"

[[override]]
name = "k8s.io/client-go"
version = "kubernetes-1.9.3"

[[constraint]]
name = "github.com/operator-framework/operator-sdk"
# The version rule is used for a specific release and the master branch for in between releases.
branch = "master"
# version = "=v0.0.5"
@@ -0,0 +1,25 @@
package main

import (
"context"
"runtime"

stub "github.com/inge4pres/cdkube/cdkube/pkg/stub"
sdk "github.com/operator-framework/operator-sdk/pkg/sdk"
sdkVersion "github.com/operator-framework/operator-sdk/version"

"github.com/sirupsen/logrus"
)

func printVersion() {
logrus.Infof("Go Version: %s", runtime.Version())
logrus.Infof("Go OS/Arch: %s/%s", runtime.GOOS, runtime.GOARCH)
logrus.Infof("operator-sdk Version: %v", sdkVersion.Version)
}

func main() {
printVersion()
sdk.Watch("delivery.inge.4pr.es/v1alpha1", "Pipeline", "default", 5)
sdk.Handle(stub.NewHandler())
sdk.Run(context.TODO())
}
@@ -0,0 +1,3 @@
apiVersion: delivery.inge.4pr.es/v1alpha1
kind: Pipeline
projectName: cdkube
@@ -0,0 +1,4 @@
apiVersion: "delivery.inge.4pr.es/v1alpha1"
kind: "Pipeline"
metadata:
name: "example"
@@ -0,0 +1,13 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: pipelines.delivery.inge.4pr.es
spec:
group: delivery.inge.4pr.es
names:
kind: Pipeline
listKind: PipelineList
plural: pipelines
singular: pipeline
scope: Namespaced
version: v1alpha1
@@ -0,0 +1,46 @@
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: cdkube
rules:
- apiGroups:
- delivery.inge.4pr.es
resources:
- "*"
verbs:
- "*"
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
verbs:
- "*"
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- "*"

---

kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: default-account-cdkube
subjects:
- kind: ServiceAccount
name: default
roleRef:
kind: Role
name: cdkube
apiGroup: rbac.authorization.k8s.io
@@ -0,0 +1,3 @@
// +k8s:deepcopy-gen=package
// +groupName=delivery.inge.4pr.es
package v1alpha1
Oops, something went wrong.

0 comments on commit bd7a1cf

Please sign in to comment.