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

chore(release): Releasing '0.0.8' version of the operator #50

Merged
merged 1 commit into from
Aug 6, 2021
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions deploy/crds/che.eclipse.org_kubernetesimagepullers_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ spec:
type: string
imagePullSecrets:
type: string
imagePullerImage:
type: string
images:
type: string
nodeSelector:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: kubernetesimagepullers.che.eclipse.org
spec:
group: che.eclipse.org
names:
kind: KubernetesImagePuller
listKind: KubernetesImagePullerList
plural: kubernetesimagepullers
singular: kubernetesimagepuller
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: KubernetesImagePuller is the Schema for the kubernetesimagepullers
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: KubernetesImagePullerSpec defines the desired state of KubernetesImagePuller
properties:
affinity:
type: string
cachingCPULimit:
type: string
cachingCPURequest:
type: string
cachingIntervalHours:
type: string
cachingMemoryLimit:
type: string
cachingMemoryRequest:
type: string
configMapName:
type: string
daemonsetName:
type: string
deploymentName:
type: string
imagePullSecrets:
type: string
imagePullerImage:
type: string
images:
type: string
nodeSelector:
type: string
type: object
status:
description: KubernetesImagePullerStatus defines the observed state of
KubernetesImagePuller
type: object
type: object
served: true
storage: true
subresources:
status: {}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ packageName: kubernetes-imagepuller-operator
defaultChannel: stable
channels:
- name: stable
currentCSV: kubernetes-imagepuller-operator.v0.0.7
currentCSV: kubernetes-imagepuller-operator.v0.0.8
1 change: 1 addition & 0 deletions pkg/apis/che/v1alpha1/kubernetesimagepuller_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type KubernetesImagePullerSpec struct {
NodeSelector string `json:"nodeSelector,omitempty"`
ImagePullSecrets string `json:"imagePullSecrets,omitempty"`
Affinity string `json:"affinity,omitempty"`
ImagePullerImage string `json:"imagePullerImage,omitempty"`
}

// KubernetesImagePullerStatus defines the observed state of KubernetesImagePuller
Expand Down
4 changes: 4 additions & 0 deletions pkg/config/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func DefaultImagePullerConfigMap(namespace string, name string) *corev1.ConfigMa
"NODE_SELECTOR": "{}",
"IMAGE_PULL_SECRETS": "",
"AFFINITY": "{}",
"KIP_IMAGE": "quay.io/eclipse/kubernetes-image-puller:next",
"NAMESPACE": namespace,
},
}
Expand Down Expand Up @@ -88,5 +89,8 @@ func mergeConfigMapWithCR(instance *chev1alpha1.KubernetesImagePuller, defaultCo
if instance.Spec.DaemonsetName != "" {
defaultConfigMap.Data["DAEMONSET_NAME"] = instance.Spec.DaemonsetName
}
if instance.Spec.ImagePullerImage != "" {
defaultConfigMap.Data["KIP_IMAGE"] = instance.Spec.ImagePullerImage
}
return defaultConfigMap
}
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func NewImagePullerDeployment(cr *chev1alpha1.KubernetesImagePuller) *appsv1.Dep
Containers: []corev1.Container{
{
Name: "kubernetes-image-puller",
Image: "quay.io/eclipse/kubernetes-image-puller:latest",
Image: "quay.io/eclipse/kubernetes-image-puller:next",
Env: []corev1.EnvVar{{
Name: "DEPLOYMENT_NAME",
Value: deploymentName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ func TestCreatesConfigMap(t *testing.T) {
"NODE_SELECTOR": "{}",
"IMAGE_PULL_SECRETS": "",
"AFFINITY": "{}",
"KIP_IMAGE": "quay.io/eclipse/kubernetes-image-puller:next",
"NAMESPACE": "test",
},
ObjectMeta: metav1.ObjectMeta{
Expand Down Expand Up @@ -431,6 +432,7 @@ func TestCreatesConfigMap(t *testing.T) {
"NODE_SELECTOR": "{}",
"IMAGE_PULL_SECRETS": "",
"AFFINITY": "{}",
"KIP_IMAGE": "quay.io/eclipse/kubernetes-image-puller:next",
"NAMESPACE": "test",
},
ObjectMeta: metav1.ObjectMeta{
Expand Down Expand Up @@ -475,6 +477,7 @@ func TestCreatesConfigMap(t *testing.T) {
"NODE_SELECTOR": "{}",
"IMAGE_PULL_SECRETS": "",
"AFFINITY": "{}",
"KIP_IMAGE": "quay.io/eclipse/kubernetes-image-puller:next",
"NAMESPACE": "test",
},
ObjectMeta: metav1.ObjectMeta{
Expand Down Expand Up @@ -565,6 +568,7 @@ func TestUpdatesConfigMap(t *testing.T) {
"NODE_SELECTOR": "{}",
"IMAGE_PULL_SECRETS": "",
"AFFINITY": "{}",
"KIP_IMAGE": "quay.io/eclipse/kubernetes-image-puller:next",
"NAMESPACE": "test",
},
},
Expand Down Expand Up @@ -605,6 +609,7 @@ func TestUpdatesConfigMap(t *testing.T) {
"NODE_SELECTOR": "{}",
"IMAGE_PULL_SECRETS": "",
"AFFINITY": "{}",
"KIP_IMAGE": "quay.io/eclipse/kubernetes-image-puller:next",
"NAMESPACE": "test",
},
},
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package version

var (
Version = "0.0.7"
Version = "0.0.8"
)