Skip to content

Commit

Permalink
operators [N] [CI] sap-commerce-operator (0.0.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
myeung18 authored Aug 13, 2021
1 parent 130956e commit cb48518
Show file tree
Hide file tree
Showing 9 changed files with 822 additions and 0 deletions.
15 changes: 15 additions & 0 deletions operators/sap-commerce-operator/0.0.2/bundle.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM scratch

# Core bundle labels.
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=sap-commerce-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.6.1+git
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1

# Copy files to locations specified by labels.
COPY bundle/manifests /manifests/
COPY bundle/metadata /metadata/
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: hybrisapps.hybris.hybris.org
spec:
group: hybris.hybris.org
names:
kind: HybrisApp
listKind: HybrisAppList
plural: hybrisapps
singular: hybrisapp
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: HybrisApp is the Schema for the hybrisapps API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: HybrisAppSpec defines the desired state of HybrisApp
properties:
apachejvmRouteName:
description: Hybris app Apache Tomcat server.xml jvmRoute name
type: string
baseImageName:
description: Hybris base image name
type: string
baseImageTag:
description: Hybris base image tag
type: string
hybrisANTTaskNames:
description: Hybris app ANT tasks
type: string
podHealthyProbePath:
description: Pod Healthy Probe path for startup and readiness probe
type: string
sourceRepoContext:
description: Hybris app repository source location
type: string
sourceRepoLocalPropertiesOverride:
description: Hybris app repository local.properties override location
type: string
sourceRepoRef:
description: Hybris app source repository reference
type: string
sourceRepoURL:
description: Hybris app source repository URL
type: string
startupProbeFailureThreshold:
description: Failure Threshold second for Startup Probe
format: int32
type: integer
startupProbePeriodSecond:
description: Period Second for Startup Probe
format: int32
type: integer
type: object
status:
description: HybrisAppStatus defines the observed state of HybrisApp
properties:
buildConditions:
items:
properties:
buildName:
description: Name of the build for the Hybris base image
type: string
conditions:
items:
description: "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. \n Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API."
properties:
lastTransitionTime:
format: date-time
type: string
message:
type: string
reason:
description: ConditionReason is intended to be a one-word, CamelCase representation of the category of cause of the current status. It is intended to be used in concise output, such as one-line kubectl get output, and in summarizing occurrences of causes.
type: string
status:
type: string
type:
description: "ConditionType is the type of the condition and is typically a CamelCased word or short phrase. \n Condition types should indicate state in the \"abnormal-true\" polarity. For example, if the condition indicates when a policy is invalid, the \"is valid\" case is probably the norm, so the condition should be called \"Invalid\"."
type: string
required:
- status
- type
type: object
type: array
required:
- buildName
- conditions
type: object
type: array
deploymentConfigConditions:
properties:
conditions:
description: Conditions of the deploymentConfig for the Hybris app
items:
description: "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. \n Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API."
properties:
lastTransitionTime:
format: date-time
type: string
message:
type: string
reason:
description: ConditionReason is intended to be a one-word, CamelCase representation of the category of cause of the current status. It is intended to be used in concise output, such as one-line kubectl get output, and in summarizing occurrences of causes.
type: string
status:
type: string
type:
description: "ConditionType is the type of the condition and is typically a CamelCased word or short phrase. \n Condition types should indicate state in the \"abnormal-true\" polarity. For example, if the condition indicates when a policy is invalid, the \"is valid\" case is probably the norm, so the condition should be called \"Invalid\"."
type: string
required:
- status
- type
type: object
type: array
required:
- conditions
type: object
routeConditions:
items:
properties:
conditions:
description: Conditions of the route for the Hybris app
items:
description: "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. \n Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API."
properties:
lastTransitionTime:
format: date-time
type: string
message:
type: string
reason:
description: ConditionReason is intended to be a one-word, CamelCase representation of the category of cause of the current status. It is intended to be used in concise output, such as one-line kubectl get output, and in summarizing occurrences of causes.
type: string
status:
type: string
type:
description: "ConditionType is the type of the condition and is typically a CamelCased word or short phrase. \n Condition types should indicate state in the \"abnormal-true\" polarity. For example, if the condition indicates when a policy is invalid, the \"is valid\" case is probably the norm, so the condition should be called \"Invalid\"."
type: string
required:
- status
- type
type: object
type: array
host:
description: Host of the route for the Hybris app
type: string
routeName:
description: Name of the route for the Hybris app
type: string
required:
- conditions
- host
- routeName
type: object
type: array
required:
- buildConditions
- deploymentConfigConditions
- routeConditions
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: hybrisbases.hybris.hybris.org
spec:
group: hybris.hybris.org
names:
kind: HybrisBase
listKind: HybrisBaseList
plural: hybrisbases
singular: hybrisbase
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: HybrisBase is the Schema for the Hybris Base API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: HybrisBaseSpec defines the desired state of HybrisBase
properties:
URL:
description: Hybris package download URL used to download the package and build the base image
type: string
buildSourceRepo:
description: Source Repo stores the s2i Dockerfile
type: string
buildSourceRepoBranch:
description: Source Repo branch stores the s2i Dockerfile
type: string
imageName:
description: Name of the Hybris base image to be built
type: string
imageTag:
description: Tag of the Hybris base image to be built
type: string
jdkURL:
description: SAP Jdk download URL used to build the base image
type: string
password:
description: SAP account password used to download the Hybris package
format: password
type: string
username:
description: SAP account username used to download the Hybris package
type: string
type: object
status:
description: HybrisBaseStatus defines the observed state of HybrisBase
properties:
buildConditions:
items:
properties:
buildName:
description: Name of the build for the Hybris base image
type: string
conditions:
items:
description: "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. \n Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API."
properties:
lastTransitionTime:
format: date-time
type: string
message:
type: string
reason:
description: ConditionReason is intended to be a one-word, CamelCase representation of the category of cause of the current status. It is intended to be used in concise output, such as one-line kubectl get output, and in summarizing occurrences of causes.
type: string
status:
type: string
type:
description: "ConditionType is the type of the condition and is typically a CamelCased word or short phrase. \n Condition types should indicate state in the \"abnormal-true\" polarity. For example, if the condition indicates when a policy is invalid, the \"is valid\" case is probably the norm, so the condition should be called \"Invalid\"."
type: string
required:
- status
- type
type: object
type: array
required:
- buildName
- conditions
type: object
type: array
required:
- buildConditions
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
control-plane: hybris-controller-manager
name: sap-commerce-operator-hybris-controller-manager-metrics-service
spec:
ports:
- name: https
port: 8443
targetPort: https
selector:
control-plane: hybris-controller-manager
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: ac2bd06b.hybris.org
kind: ConfigMap
metadata:
name: sap-commerce-operator-manager-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: sap-commerce-operator-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get
Loading

0 comments on commit cb48518

Please sign in to comment.