Skip to content

Commit

Permalink
chore: remove deprecate Context field
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelvillard committed Dec 5, 2018
1 parent a1d11f8 commit 7f56ba0
Show file tree
Hide file tree
Showing 18 changed files with 8 additions and 521 deletions.
44 changes: 0 additions & 44 deletions api/swagger/swagger-doc.json
Expand Up @@ -47,26 +47,6 @@
}
}
},
"lib.ibmcloud.v1.ResourceContext": {
"description": "ResourceContext defines the CloudFoundry context and resource group",
"properties": {
"org": {
"type": "string"
},
"region": {
"type": "string"
},
"resourcegroup": {
"type": "string"
},
"resourcelocation": {
"type": "string"
},
"space": {
"type": "string"
}
}
},
"openwhisk.v1beta1.Composition": {
"description": "Composition is the Schema for the compositions API",
"properties": {
Expand Down Expand Up @@ -139,10 +119,6 @@
"description": "The location of the composition to deploy. Support `http(s)` and `file` protocols.",
"type": "string"
},
"context": {
"description": "Where to deploy the composition. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down Expand Up @@ -270,10 +246,6 @@
"description": "The location of the code to deploy. Support `http(s)` and `file` protocols.",
"type": "string"
},
"context": {
"description": "Where to deploy the function. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down Expand Up @@ -457,10 +429,6 @@
"function"
],
"properties": {
"context": {
"description": "Where to deploy the invocation. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down Expand Up @@ -635,10 +603,6 @@
"description": "Name of the package for which a binding should be created",
"type": "string"
},
"context": {
"description": "Where to deploy the package. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down Expand Up @@ -762,10 +726,6 @@
"function"
],
"properties": {
"context": {
"description": "Where to deploy the rule. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down Expand Up @@ -884,10 +844,6 @@
"$ref": "#/definitions/keyvalue.v1.KeyValue"
}
},
"context": {
"description": "Where to deploy the trigger. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down
44 changes: 0 additions & 44 deletions api/swagger/swagger.json
Expand Up @@ -47,26 +47,6 @@
}
}
},
"lib.ibmcloud.v1.ResourceContext": {
"description": "ResourceContext defines the CloudFoundry context and resource group",
"properties": {
"org": {
"type": "string"
},
"region": {
"type": "string"
},
"resourcegroup": {
"type": "string"
},
"resourcelocation": {
"type": "string"
},
"space": {
"type": "string"
}
}
},
"openwhisk.v1beta1.Composition": {
"description": "Composition is the Schema for the compositions API",
"properties": {
Expand Down Expand Up @@ -139,10 +119,6 @@
"description": "The location of the composition to deploy. Support `http(s)` and `file` protocols.",
"type": "string"
},
"context": {
"description": "Where to deploy the composition. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down Expand Up @@ -252,10 +228,6 @@
"description": "The location of the code to deploy. Support `http(s)` and `file` protocols.",
"type": "string"
},
"context": {
"description": "Where to deploy the function. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down Expand Up @@ -414,10 +386,6 @@
"function"
],
"properties": {
"context": {
"description": "Where to deploy the invocation. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down Expand Up @@ -574,10 +542,6 @@
"description": "Name of the package for which a binding should be created",
"type": "string"
},
"context": {
"description": "Where to deploy the package. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down Expand Up @@ -690,10 +654,6 @@
"function"
],
"properties": {
"context": {
"description": "Where to deploy the rule. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down Expand Up @@ -802,10 +762,6 @@
"$ref": "#/definitions/keyvalue.v1.KeyValue"
}
},
"context": {
"description": "Where to deploy the trigger. If not specified, the controller reads the wsk properties from `seed-default-owprops` secret in the resource namespace. This secret must defined two keys, `apihost` and `auth` `seed-default-owprops` is automatically created from `seed-defaults` or it can be manually set",
"$ref": "#/definitions/lib.ibmcloud.v1.ResourceContext"
},
"contextFrom": {
"description": "Reference to a secret representing where to deploy this entity Default is `seed-default-owprops` The secret must defines these fields: apihost (string) : The OpenWhisk host auth (string): the authorization key cert (string): the client certificate (optional) insecure (bool): Whether or not to bypass certificate checking (optional, default is false)",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource"
Expand Down
19 changes: 0 additions & 19 deletions config/crds/openwhisk_v1beta1_composition.yaml
Expand Up @@ -28,25 +28,6 @@ spec:
type: string
compositionURI:
type: string
context:
properties:
org:
type: string
region:
type: string
resourcegroup:
type: string
resourcelocation:
type: string
space:
type: string
required:
- org
- space
- region
- resourcegroup
- resourcelocation
type: object
contextFrom:
type: object
name:
Expand Down
19 changes: 0 additions & 19 deletions config/crds/openwhisk_v1beta1_function.yaml
Expand Up @@ -46,25 +46,6 @@ spec:
type: string
codeURI:
type: string
context:
properties:
org:
type: string
region:
type: string
resourcegroup:
type: string
resourcelocation:
type: string
space:
type: string
required:
- org
- space
- region
- resourcegroup
- resourcelocation
type: object
contextFrom:
type: object
docker:
Expand Down
19 changes: 0 additions & 19 deletions config/crds/openwhisk_v1beta1_invocation.yaml
Expand Up @@ -24,25 +24,6 @@ spec:
type: object
spec:
properties:
context:
properties:
org:
type: string
region:
type: string
resourcegroup:
type: string
resourcelocation:
type: string
space:
type: string
required:
- org
- space
- region
- resourcegroup
- resourcelocation
type: object
contextFrom:
type: object
finalizer:
Expand Down
19 changes: 0 additions & 19 deletions config/crds/openwhisk_v1beta1_package.yaml
Expand Up @@ -44,25 +44,6 @@ spec:
type: array
bind:
type: string
context:
properties:
org:
type: string
region:
type: string
resourcegroup:
type: string
resourcelocation:
type: string
space:
type: string
required:
- org
- space
- region
- resourcegroup
- resourcelocation
type: object
contextFrom:
type: object
name:
Expand Down
19 changes: 0 additions & 19 deletions config/crds/openwhisk_v1beta1_rule.yaml
Expand Up @@ -24,25 +24,6 @@ spec:
type: object
spec:
properties:
context:
properties:
org:
type: string
region:
type: string
resourcegroup:
type: string
resourcelocation:
type: string
space:
type: string
required:
- org
- space
- region
- resourcegroup
- resourcelocation
type: object
contextFrom:
type: object
function:
Expand Down
19 changes: 0 additions & 19 deletions config/crds/openwhisk_v1beta1_trigger.yaml
Expand Up @@ -42,25 +42,6 @@ spec:
- name
type: object
type: array
context:
properties:
org:
type: string
region:
type: string
resourcegroup:
type: string
resourcelocation:
type: string
space:
type: string
required:
- org
- space
- region
- resourcegroup
- resourcelocation
type: object
contextFrom:
type: object
feed:
Expand Down

0 comments on commit 7f56ba0

Please sign in to comment.