Skip to content

Commit

Permalink
add SSCS config
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed May 21, 2018
1 parent aae9688 commit 1e46ae9
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ build:
go build github.com/openshift/api/quota/...
go build github.com/openshift/api/route/...
go build github.com/openshift/api/security/...
go build github.com/openshift/api/serviceservingcertsigner/...
go build github.com/openshift/api/template/...
go build github.com/openshift/api/user/...
go build github.com/openshift/api/webconsole/...
Expand Down
2 changes: 2 additions & 0 deletions hack/lib/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ project/v1 \
quota/v1 \
route/v1 \
security/v1 \
serviceservingcertsigner/v1alpha1 \
template/v1 \
user/v1 \
webconsole/v1 \
Expand All @@ -39,6 +40,7 @@ github.com/openshift/api/project/v1,\
github.com/openshift/api/quota/v1,\
github.com/openshift/api/route/v1,\
github.com/openshift/api/security/v1,\
github.com/openshift/api/serviceservingcertsigner/v1alpha1,\
github.com/openshift/api/template/v1,\
github.com/openshift/api/user/v1,\
github.com/openshift/api/webconsole/v1\
Expand Down
2 changes: 1 addition & 1 deletion hack/update-deepcopy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ verify="${VERIFY:-}"
${CODEGEN_PKG}/generate-groups.sh "deepcopy" \
github.com/openshift/api/generated \
github.com/openshift/api \
"apps:v1 authorization:v1 build:v1 config:v1 image:v1,docker10,dockerpre012 network:v1 oauth:v1 operator:v1alpha1 project:v1 quota:v1 route:v1 security:v1 template:v1 user:v1 webconsole:v1" \
"apps:v1 authorization:v1 build:v1 config:v1 image:v1,docker10,dockerpre012 network:v1 oauth:v1 operator:v1alpha1 project:v1 quota:v1 route:v1 security:v1 serviceservingcertsigner:v1alpha1 template:v1 user:v1 webconsole:v1" \
--go-header-file ${SCRIPT_ROOT}/hack/empty.txt \
${verify}
6 changes: 6 additions & 0 deletions serviceservingcertsigner/v1alpha1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// +k8s:deepcopy-gen=package,register
// +k8s:defaulter-gen=TypeMeta
// +k8s:openapi-gen=true

// +groupName=servicecertsigner.config.openshift.io
package v1alpha1
26 changes: 26 additions & 0 deletions serviceservingcertsigner/v1alpha1/register.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package v1alpha1

import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)

// SchemeGroupVersion is group version used to register these objects
var SchemeGroupVersion = schema.GroupVersion{Group: "servicecertsigner.config.openshift.io", Version: "v1alpha1"}

var (
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
AddToScheme = SchemeBuilder.AddToScheme
)

func Resource(resource string) schema.GroupResource {
return SchemeGroupVersion.WithResource(resource).GroupResource()
}

func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&ServiceServingCertSignerConfig{},
)

return nil
}

0 comments on commit 1e46ae9

Please sign in to comment.