Skip to content

Instantly share code, notes, and snippets.

title weight
v1.0.0
999000000

Since v0.19

Upgrade your project from version "2" to "3-alpha"

The SDK's default Go plugin no longer supports OLM- or scorecard-related project files nor writes a plugins PROJECT field for projects scaffolded previously with operator-sdk init --project-version=2, Please migrate to project version "3-alpha" for support of these features by adding the following to your PROJECT file:

v1.0.0

Since v0.19

Additions

  • The Ansible and Helm operators have a version subcommand that prints the version information for the ansible-operator and helm-operator binaries. (#3596)
  • Added --ansible-args command-line flag that allows users to specify arbitrary CLI arguments for Ansible-based operators that are passed through ansible-runner. For example, passing --ansible-vault as an arbitrary argument allows user to store sensitive data in encrypted files. (#3374)
  • generate bundle and generate packagemanifests will write RBAC objects (Roles, RoleBindings, their Cluster equivalents, and ServiceAccounts) not bound to CSV deployment service accounts to the resulting manifests directory. (#3610)
  • The snakeCaseParameters option has been added to the watches.yaml for Ansible-based Operato

The Operator SDK maintainers are hard at work to implement run bundle to improve integration with the Operator Lifecycle Manager.

The purpose of this issue is to communicate with the community what will be in run bundle.

TODO

  • create registry image pod (#3337)
  • create grpc catalogsource (#3467)
  • update OperatorGroup logic to handle install mode for run bundle
  • create Subscription logic
  • connect run bundle to the Operator SDK CLI

Which is better?

  • Breaking change: Removed support for the legacy layout. Operator SDK has a new CLI and project layout that is aligned with Kubebuilder.
    • Removed legacy new and add api commands from Helm-based Operators. (#3343)
    • Removed the add crd subcommand. (#3547)
    • Removed the build subcommand. (#3566)
    • The Helm legacy layout is no longer supported. (#3343)
    • Removed legacy metrics generation code from Ansible-based Operators. (#3466)
    • Removed legacy new and add api commands from Ansible-based Operators. (#3531)
  • Removed legacy metrics generation code from Helm-based Operat
.
├── bin
│   ├── bar
│   └── foo
├── changelog
│   └── fragments
│   ├── 00-template.yaml
│   ├── 1036-ansible-liveness.yaml
│   ├── 2727-helm-support-annotations.yaml
│   ├── 2729-addition.yaml
.
├── bin
├── changelog
│   └── fragments
├── cmd
│   └── operator-sdk
│   ├── add
│   ├── alpha
│   │   └── scorecard
│   ├── build
func newTestUnstructured(containers []interface{}) *unstructured.Unstructured {
return &unstructured.Unstructured{
Object: map[string]interface{}{
"kind": containers["kind"],
"apiVersion": containers["apiVersion"],
"metadata": containers["metadata"],
},
}
}
option 1
cases := []testcase{
{
name: "This test should pass",
restMapper: restMapper,
owner: &unstructured.Unstructured{
Object: map[string]interface{}{
"kind": "Deployment",
"apiVersion": "rbac.authorization.k8s.io/v1",
3,4c3,4
< Domain Name: reopenmd.com
< Registry Domain ID: 2515645280_DOMAIN_COM-VRSN
---
> Domain Name: reopennc.com
> Registry Domain ID: 2514599800_DOMAIN_COM-VRSN
7,9c7,9
< Updated Date: 2020-04-17T04:19:17Z
< Creation Date: 2020-04-17T04:19:16Z
< Registrar Registration Expiration Date: 2021-04-17T04:19:16Z
@jmrodri
jmrodri / openshift-service-catalog-removed-ALL.yaml
Created April 3, 2020 20:57
oc get all -o yaml > openshift-service-catalog-removed-ALL.yaml
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
metadata:
annotations:
k8s.v1.cni.cncf.io/networks-status: ""
openshift.io/scc: anyuid
creationTimestamp: "2020-04-02T16:03:05Z"
generateName: openshift-service-catalog-apiserver-remover-