Skip to content

Commit

Permalink
V1.1.0 (#150)
Browse files Browse the repository at this point in the history
* Bumping ansible operator base image.

* Issue  #45: Disabling secret tests and secret watching.

* Dropping image version to  see if  that's responsible for the failures.

* Added a reaction to secrets  using ansible code. Fixes a  possible infinite  loop in the password management code.

* Removing old go code, the operator is now pure ansible.

* Implemented a  hack to quickly check namespace state.

* Attempting a new method  for handling template creation/deletion.

* Moving the home of the health_check.sh script to hacks.

* Fixing when malformation.

* I think the secret watch processing can slow down the  CR creation  on the resource starved travis machine.

* Creating Dockerfile symlink so users can just run docker build  from operator root

* Disabling secret tests. Needs a rewrite.

* Removing Reserved name from secret_watch.

* Fixing  bug in secret watcher.

* Moving labels to metadata.

* Fixing arithmetic.

* Disabling the secret watching, it  seems to cause problems  for deletion.

* Removing deprecated k8s_facts, replacing with  k8s_info.

* Implementing a  string  trigger value, because the old integer trigger didn't work in ansible.

* Updating deployment to not include resources temporarily. It looks like the limits were breaking  the operators ability  to handle events properly.

* Adding a maintenance document  group for  day  2 operator  operations. Documented secret  watcher.

* Adding a fix to a helper script.

* In operatorhub public, they put the operator into my-ibm-spectrum-scale.. namespace, so to avoid confusion, minim the user and pass formatting above.

* Removing the spectrumscaleNode label in ui definition. Resolves Issue  #70

* Add driver and operator multi-arch Dockerfile (#66)

* add OWNERS

* need to keep legacy GOOS=linux

* Make driver build/dockerfile layout consistent with operator

* first try on env baked image versions

* default image versions should only be in a single file, we'll leave them baked into the role/defaults

* Fixing a bug where the operator would hang if a secret  was  not defined. Now exits  gracefully.

* leveraging isRunning status for failed secrets.

* removing version from the status tool

* Removing status setting, because it  appears to  be bugged in some instances. Namely on travisci.

* Adding debug logging to secret test.

* Trying to fix secret tester on travis.

* trying to speed  up test time for this issue.

* Adding  even more logging.

* This  should fix the  travis checks.

* I think the rbac test might cause some problems, reordering.

* Re-enabling rbac and node_selectors.

* fixing the deploy script to use correct build type.

:q

* Updating CSV to match operatorhub pr

* renaming crs to match rules for operatorhub.

* Removing old csv

* bumping operator version

* Moving additional references to the old cr/crd format to the new one.

* Implementing a mechanism for generating automatic CSV applications in  travis. Added documentation for developers and testers.

* Formatting fix  for bullets.

* Forgot to running the generator.

* Fix some formatting in the olm doc after doing a local build

* Driver version bumped up (#100)

* Driver version bumped up
* Bumped up version in operator files, docs and Dockerfiles

* Fixing symbolic links, removing stale folder, adding a cert document for handling  pull requests.

Signed-off-by: John Dunham <jdunham@us.ibm.com>

* Issue #17
RTC 236476
Bumping up external attacher, provisioner and driver registrar versions.
With this change the minimum required kubernetes version becomes 1.14

* Adding a dev stream to  the generated YAML. (#104)

* Adding a  ibm-spectrum-scale-csi-operator-dev.yaml to the generated YAML to facilitate better testing.

* Change the linting sections in yaml to support molecule v3

* Fix linting errors on the osdk-scorecard.yaml file

* Using a YAML formatter, fix the role.yaml file

* Run the YAML formatter

* Run the YAML formatter, fix linting errors

* Using YAML formatter, Fix more linting errors in various files

* More linting fixing

* More linting issues

* Fix playbook.yaml linting issues

* disable line-length test on yamllint-er

* Update the generated yaml based on the linting changes

* Add YAML doc start. Remove hack to add dashes in generated yaml

* Need better yamllint rules

* missing newline at end of file

* Linting issues with the  yamllint file

* More YAML Lint fixes

* too many blank lines lint

* Removing the docs build for now, I want to see molecule run

* Let's try changing the operator.yaml file using a playbook insead of the Python Script

* Fix the linting issues with the change_deploy_image file

* Update the references to change_deploy_image.py to the playbook alternative

* Leave off the other linters to get this back up and running

* Removing funky character

* Run the build docs again

* Testing block in this playbook was formatted incorrectly

* Need newling at end

* Put the operator image back into a single line

* Update the generated yaml file based on operator.yaml changes

* Removing array from csv-path

* Reinstating the  tasks I accidentally removed in the merge.

* Adding the missing CSI_DRIVER_IMAGE.

* Fixing linter errors.

* One Day I'll remember to run the  generator.

Co-authored-by: Victor Hu <whowutwut@gmail.com>
Co-authored-by: Smita Raut <31980889+smitaraut@users.noreply.github.com>

* fix typo in error messages (#119)

Co-authored-by: Smita Raut <31980889+smitaraut@users.noreply.github.com>

* Adding timeout and worker-threads to provisioner command line (#130)

* Resolves #129

Added timeout parameter to provisioner and attacher command line and
worker-threads parameter to the provisioner command line

* Fix check if only operator is running

* changing default namespace to ibm-spectrum-scale-csi-driver

* fix provisioner name

* Adding KC doc link.

* Updating the OperatorHub doc.

* Fixing repo links for 1.1.0 in CRD.

* Updating Documentation Links.

* Changing verbiage and adding support statement.

* Fixing numbering.

* Adding node mapping details (#143)

* Fixing linter errors

* Bumping  GUI doc.

* Removing RTD links.

* Changed support statement.

* Issue #145: Adding missing attacher role permissions.

* doc update (#148)

* KC link update

Co-authored-by: Victor Hu <whowutwut@gmail.com>
Co-authored-by: Evan Dunn <dunnevan@users.noreply.github.com>
Co-authored-by: Smita Raut <31980889+smitaraut@users.noreply.github.com>
Co-authored-by: Smita Raut <smita.raut@in.ibm.com>
Co-authored-by: Deepak Ghuge <deeghuge@in.ibm.com>
  • Loading branch information
6 people authored Mar 25, 2020
1 parent 572a94a commit 679d41f
Show file tree
Hide file tree
Showing 130 changed files with 2,924 additions and 3,987 deletions.
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ env:
# Format quay image target
- IMAGE_REPO_DRIVER=quay.io/${IMAGE_REPO_OWNER}/${REPO_NAME_DRIVER}
- IMAGE_REPO_OPERATOR=quay.io/${IMAGE_REPO_OWNER}/${REPO_NAME_OPERATOR}

# Add image tag
- IMAGE_TAG=$(
if [[ $TRAVIS_EVENT_TYPE == 'cron' ]];
Expand All @@ -44,6 +45,11 @@ env:
- BUILD_DIR_OPERATOR="${TRAVIS_BUILD_DIR}/operator"
- BUILD_DIR_DRIVER="${TRAVIS_BUILD_DIR}/driver"

# For the quay app
- BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- OPERATOR_DIR=deploy/olm-catalog/ibm-spectrum-scale-csi-operator
- QUAY_NAMESPACE=${IMAGE_REPO_OWNER}
- PACKAGE_NAME=${REPO_NAME}-${BRANCH}

# Operator ENV
- OCTOKIT_API_ENDPOINT="https://github.ibm.com/api/v3/"
Expand Down Expand Up @@ -72,6 +78,7 @@ stages:
- test
jobs:
fast_finish: true

include:

# Install operator-courier and run the lint on the manifest.
Expand Down Expand Up @@ -156,7 +163,7 @@ jobs:
on:
all_branches: true
condition: -n "$QUAY_BOT_USERNAME" && -n "$QUAY_BOT_PASSWORD"

# stage: build
- name: "Build - Operator: image and push to registry"
install:
Expand All @@ -172,10 +179,15 @@ jobs:
- docker tag ${REPO_NAME_OPERATOR} ${IMAGE_FQN_OPERATOR}
deploy:
- provider: script
script: docker push ${IMAGE_FQN_OPERATOR}
script: docker push ${IMAGE_FQN_OPERATOR}
on:
all_branches: true
condition: -n "$QUAY_BOT_USERNAME" && -n "$QUAY_BOT_PASSWORD"
- provider: script
script: ../tools/scripts/push_app.sh
on:
all_branches: true
condition: -n "$QUAY_BOT_USERNAME" && -n "$QUAY_BOT_PASSWORD" && -n "$QUAY_APP"

# stage: build
- name: "Build - Operator: docs"
Expand All @@ -200,7 +212,7 @@ jobs:
- docker tag ${REPO_NAME_OPERATOR} ${OPERATOR_LOCAL_IMAGE}
script:
# molecule
- python hacks/change_deploy_image.py -i ${OPERATOR_LOCAL_IMAGE} --ifnotpresent
- ansible-playbook hacks/change_deploy_image.yml --extra-vars "quay_operator_endpoint=${OPERATOR_LOCAL_IMAGE}"
- kubectl create -f deploy/namespace.yaml
- molecule test -s test-local
# sc
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<<<<<<< HEAD
###############################################################################
# Licensed Materials - Property of IBM.
# Copyright IBM Corporation 2017. All Rights Reserved.
Expand Down Expand Up @@ -50,7 +49,7 @@ NAME=ibm-spectrum-scale-csi

.PHONY: all $NAME

IMAGE_VERSION=v1.0.1
IMAGE_VERSION=v1.1.0
IMAGE_NAME=$(NAME)

all: $NAME
Expand Down
18 changes: 18 additions & 0 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
filters:
".*":
reviewers:
- edunn-us
approvers:
- edunn-us

"driver/.*":
reviewers:
- edunn-us
approvers:
- edunn-us

"operator/.*":
reviewers:
- edunn-us
approvers:
- edunn-us
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# IBM Spectrum Scale CSI (Container Storage Interface)

[![Documentation Status](https://readthedocs.org/projects/ibm-spectrum-scale-csi/badge/?version=latest)](https://ibm-spectrum-scale-csi.readthedocs.io/en/latest/?badge=latest)
[Official Knowledge Center Documentation](https://www.ibm.com/support/knowledgecenter/STXKQY_CSI_SHR)


The IBM Spectrum Scale Container Storage Interface (CSI) project enables container orchestrators, such as Kubernetes and OpenShift, to manage the life-cycle of persistent storage.

Expand All @@ -11,20 +12,21 @@ If you are looking to deploy released versions of the IBM Spectrum Scale CSI Ope
* OpenShift - Under Operator -> OperatorHub in the OpenShift Console, search 'IBM Spectrum Scale CSI" and install
* Kubernetes - See the project on [OperatorHub.io - ibm-spectrum-scale-csi-operator](https://operatorhub.io/operator/ibm-spectrum-scale-csi-operator)

## Report Bugs
## Support

To file issues, suggestions, new features, etc., Open an [Issue](https://github.com/IBM/ibm-spectrum-scale-csi/issues).
IBM Spectrum Scale CSI driver is part of the IBM Spectrum Scale offering. Please follow the [IBM support procedure](https://www.ibm.com/mysupport/s/) for any issues with the driver.

## Getting Started and Documentation
## Report Bugs

To get started, see our [Documentation](https://ibm-spectrum-scale-csi.rtfd.io/)
For help with urgent situations, please use the IBM PMR process. All Spectrum Scale customers using CSI,
who also have ongoing support contracts, are entitled to the PMR process. Feature requests through the official RFE channels are also encouraged.

For non-urgent issues, suggestions, recommendations, feel free to open an issue in [github](https://github.com/IBM/ibm-spectrum-scale-csi/issues).
Issues will be addressed as team availability permits.

## Contributing

We welcome contributions to this project, see [Contributing](CONTRIBUTING.md) for more details.

## Troubleshooting

See the [Troubleshooting](https://ibm-spectrum-scale-csi.readthedocs.io/en/latest/troubleshoot/index.html) section for more information.


109 changes: 0 additions & 109 deletions TESTCONFIG.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ibm-spectrum-scale-csi-operator
specVersion: 1.0.0
version: 1.0.0
version: 1.1.0
appVersion: 1.0.0
description: "Represents a deployment of the IBM CSI Spectrum Scale driver."
displayName: "IBM CSI Spectrum Scale Driver CASE"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
###############################################################################

images:
- image: quay.io/ibm-spectrum-scale/ibm-spectrum-scale-csi-operator:v1.0.0
- image: quay.io/ibm-spectrum-scale/ibm-spectrum-scale-csi-operator:v1.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ resources:
resourceDefs:
files:
- mediaType: application/vnd.case.resource.k8s.v1+yaml
ref: deploy/crds/ibm-spectrum-scale-csi-operator-cr.yaml
ref: deploy/crds/csiscaleoperators.csi.ibm.com.cr.yaml
- mediaType: application/vnd.case.resource.image.manifest.v1
ref: manifest.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
###############################################################################

images:
- image: quay.io/ibm-spectrum-scale/ibm-spectrum-scale-csi-operator:v1.0.0
- image: quay.io/ibm-spectrum-scale/ibm-spectrum-scale-csi-operator:v1.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resources:
resourceDefs:
files:
- mediaType: application/vnd.case.resource.k8s.v1+yaml
ref: deploy/crds/ibm-spectrum-scale-csi-operator-crd.yaml
ref: deploy/crds/csiscaleoperators.csi.ibm.com.crd.yaml
- mediaType: application/vnd.case.resource.k8s.v1+yaml
ref: deploy/operator.yaml
- mediaType: application/vnd.case.resource.k8s.v1+yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo "deleteDir is "
echo $deleteDir
$APP_TEST_LIBRARY_FUNCTIONS/operatorDelete.sh \
--serviceaccount $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/service_account.yaml \
--crd $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/ibm-spectrum-scale-csi-operator-crd.yaml \
--cr $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/ibm-spectrum-scale-csi-operator-cr.yaml \
--crd $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/csiscaleoperators.csi.ibm.com.crd.yaml \
--cr $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/csiscaleoperators.csi.ibm.com.cr.yaml \
--role $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/role.yaml \
--rolebinding $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/role_binding.yaml \
--operator $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/operator.yaml \
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ operator=ibm-spectrum-scale-csi-operator
installDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

$APP_TEST_LIBRARY_FUNCTIONS/operatorInstall.sh \
--cr $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/ibm-spectrum-scale-csi-operator-cr.yaml
--cr $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/csiscaleoperators.csi.ibm.com.cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ setNamespace ${CV_TEST_USER} ${CV_TEST_NAMESPACE}

$APP_TEST_LIBRARY_FUNCTIONS/operatorDeployment.sh \
--serviceaccount $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/service_account.yaml \
--crd $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/ibm-spectrum-scale-csi-operator-crd.yaml \
--crd $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/csiscaleoperators.csi.ibm.com.crd.yaml \
--role $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/role.yaml \
--rolebinding $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/role_binding.yaml \
--operator $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/operator.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ echo "deleteDir is "
echo $deleteDir
$APP_TEST_LIBRARY_FUNCTIONS/operatorDelete.sh \
--serviceaccount $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/service_account.yaml \
--crd $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/ibm-spectrum-scale-csi-operator-crd.yaml \
--cr $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/ibm-spectrum-scale-csi-operator-cr.yaml \
--crd $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/csiscaleoperators.csi.ibm.com.crd.yaml \
--cr $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/csiscaleoperators.csi.ibm.com.cr.yaml \
--role $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/role.yaml \
--rolebinding $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/role_binding.yaml \
--operator $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/operator.yaml \
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ operator=ibm-spectrum-scale-csi-operator
installDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

$APP_TEST_LIBRARY_FUNCTIONS/operatorInstall.sh \
--cr $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/ibm-spectrum-scale-csi-operator-cr.yaml
--cr $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/csiscaleoperators.csi.ibm.com.cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ setNamespace ${CV_TEST_USER} ${CV_TEST_NAMESPACE}

$APP_TEST_LIBRARY_FUNCTIONS/operatorDeployment.sh \
--serviceaccount $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/service_account.yaml \
--crd $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/ibm-spectrum-scale-csi-operator-crd.yaml \
--crd $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/crds/csiscaleoperators.csi.ibm.com.crd.yaml \
--role $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/role.yaml \
--rolebinding $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/role_binding.yaml \
--operator $CV_TEST_BUNDLE_DIR/operators/${operator}/deploy/operator.yaml
Expand Down
21 changes: 0 additions & 21 deletions cloudpak/stable/scripts/operator-push.sh

This file was deleted.

2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
master_doc = 'index'

# The full version, including alpha/beta/rc tags
release = '1.0.1'
release = '1.1.0'


# -- General configuration ---------------------------------------------------
Expand Down
23 changes: 23 additions & 0 deletions docs/source/developers/cert.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Cert Process
============

Creating the Pull Request
-------------------------

1. Fork `https://github.ibm.com/IBMPrivateCloud/charts`_.
2. Clone the forked repository .
3. From the root dir (of this project) execute the following:

.. code-block:: bash
export CHARTS=<Local Chart Repo Root>
cp -R -L cloudpak/ ${CHARTS}
cd ${CHARTS}/stable
git checkout -b ibm-spectrum-scale-csi-operator-bundle
git add ibm-spectrum-scale-csi-operator-bundle
git commit -S -m "Some message"
git push origin ibm-spectrum-scale-csi-operator-bundle
4. Follow standard Pull Request procedures.
Loading

0 comments on commit 679d41f

Please sign in to comment.