Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation #11

Merged
merged 1 commit into from
Aug 17, 2020
Merged
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
55 changes: 53 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,55 @@
# jira-service-desk-operator
# [WIP] jira-service-desk-operator
Kubernetes operator for Jira Service Desk

# WORK IN PROGRESS
## About

Jira service desk(JSD) operator is used to automate the process of setting up JSD for alertmanager in a k8s native way. By using CRDs it lets you:

1. Manage Projects
2. Manage customer/organization for projects
3. Configure Issues

It uses [Jira REST API](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/) in it's underlying layer and can be extended to perform other tasks that are supported via the REST API.

## Usage

### Prerequisites

- Atlassian account
- API Token to access Jira REST API (https://id.atlassian.com/manage-profile/security/api-tokens)

### Create secret

Create the following secret which is required for jira-service-desk-operator:

```yaml
kind: Secret
apiVersion: v1
metadata:
name: jira-service-desk-config
namespace: default
data:
JIRA_SERVICE_DESK_API_TOKEN: <API_TOKEN>
#Example: https://stakater-cloud.atlassian.net/
JIRA_SERVICE_DESK_API_BASE_URL: <JSD_BASE_URL>
JIRA_SERVICE_DESK_EMAIL: <EMAIL>
type: Opaque
```

### Deploy operator

```terminal
$ oc apply -f bundle/manifests
```

## Local Development

[Operator-sdk v0.19.0](https://github.com/operator-framework/operator-sdk/releases/tag/v0.19.0) is required for local development.

1. Create `jira-service-desk-config` secret
2. Run `make run ENABLE_WEBHOOKS=false WATCH_NAMESPACE=default OPERATOR_NAMESPACE=default` where `WATCH_NAMESPACE` denotes the namespaces that the operator is supposed to watch and `OPERATOR_NAMESPACE` is the namespace in which it's supposed to be deployed.

3. Before committing your changes run the following to ensure that everything is verified and up-to-date:
- `make verify`
- `make bundle`
- `make packagemanifests`