1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/osdk-hh-create-project.adoc
2024-09-11 15:59:29 +00:00

39 lines
1.1 KiB
Plaintext

// Module included in the following assemblies:
//
// * operators/operator_sdk/helm/osdk-hybrid-helm.adoc
:_mod-docs-content-type: PROCEDURE
[id="osdk-hh-create-project_{context}"]
= Creating a project
Use the Operator SDK CLI to create a project called `memcached-operator`.
.Procedure
. Create a directory for the project:
+
[source,terminal]
----
$ mkdir -p $HOME/github.com/example/memcached-operator
----
. Change to the directory:
+
[source,terminal]
----
$ cd $HOME/github.com/example/memcached-operator
----
. Run the `operator-sdk init` command to initialize the project. This example uses a domain of `my.domain` so that all API groups are `<group>.my.domain`:
+
[source,terminal]
----
$ operator-sdk init \
--plugins=hybrid.helm.sdk.operatorframework.io \
--project-version="3" \
--domain my.domain \
--repo=github.com/example/memcached-operator
----
+
The `init` command generates the RBAC rules in the `config/rbac/role.yaml` file based on the resources that would be deployed by the chart's default manifests. Verify that the rules generated in the `config/rbac/role.yaml` file meet your Operator's permission requirements.