Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
Signed-off-by: souravbiswassanto <saurov@appscode.com>
  • Loading branch information
souravbiswassanto committed Oct 29, 2024
1 parent 82844c2 commit 3605624
Show file tree
Hide file tree
Showing 15 changed files with 107 additions and 74 deletions.
1 change: 0 additions & 1 deletion apis/apps/fuzzer/fuzzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package fuzzer

import (

"kubeops.dev/sidekick/apis/apps/v1alpha1"

fuzz "github.com/google/gofuzz"
Expand Down
1 change: 0 additions & 1 deletion apis/apps/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package install

import (

"kubeops.dev/sidekick/apis/apps/v1alpha1"

"k8s.io/apimachinery/pkg/runtime"
Expand Down
6 changes: 0 additions & 6 deletions apis/apps/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,3 @@ package apps
const (
GroupName = "apps.k8s.appscode.com"
)






8 changes: 2 additions & 6 deletions apis/apps/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions apis/apps/v1alpha1/sidekick_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ type SidekickSpec struct {
// terminated once the job backoff limit has been reached. This can make debugging the Job's executable
// more difficult. We suggest setting restartPolicy = "Never" when debugging the Job or using a logging
// system to ensure output from failed Jobs is not lost inadvertently.
// +kubebuilder:validation:Enum=Never;Always;OnFailure
// +optional
RestartPolicy core.RestartPolicy `json:"restartPolicy,omitempty"`
// Specifies the number of retries before marking this job failed.
Expand Down Expand Up @@ -537,13 +538,13 @@ type VolumeMount struct {
}

type LeaderStatus struct {
Name string `json:"name"`
Name string `json:"name,omitempty"`
}

// SidekickStatus defines the observed state of Sidekick
type SidekickStatus struct {
Leader LeaderStatus `json:"leader"`
Pod core.PodPhase `json:"pod"`
Leader LeaderStatus `json:"leader,omitempty"`
Pod core.PodPhase `json:"pod,omitempty"`

// Specifies the current phase of the sidekick CR
// +optional
Expand Down
3 changes: 2 additions & 1 deletion client/clientset/versioned/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions client/clientset/versioned/fake/clientset_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client/clientset/versioned/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client/clientset/versioned/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions client/clientset/versioned/typed/apps/v1alpha1/sidekick.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions crds/apps.k8s.appscode.com_sidekicks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5411,6 +5411,10 @@ spec:
more difficult. We suggest setting restartPolicy = "Never" when
debugging the Job or using a logging system to ensure output from
failed Jobs is not lost inadvertently.'
enum:
- Never
- Always
- OnFailure
type: string
runtimeClassName:
description: 'RuntimeClassName refers to a RuntimeClass object in
Expand Down Expand Up @@ -7686,8 +7690,6 @@ spec:
properties:
name:
type: string
required:
- name
type: object
observedGeneration:
description: observedGeneration is the most recent generation observed
Expand All @@ -7707,9 +7709,6 @@ spec:
description: PodPhase is a label for the condition of a pod at the
current time.
type: string
required:
- leader
- pod
type: object
type: object
served: true
Expand Down
Loading

0 comments on commit 3605624

Please sign in to comment.