This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ test-set-label-config-file eksctl set labels --nodegroup ng-1 --cluster test-set-labels-5 --labels asdf=asdf | |
2021-11-29 22:03:37 [ℹ] eksctl version 0.77.0-dev+32cdc500.2021-11-29T22:02:28Z | |
2021-11-29 22:03:37 [ℹ] using region us-west-2 | |
2021-11-29 22:03:37 [ℹ] setting label(s) on nodegroup ng-1 in cluster test-set-labels-5.us-west-2.eksctl.io | |
2021-11-29 22:03:39 [ℹ] updating nodegroup stack | |
2021-11-29 22:03:40 [ℹ] waiting for CloudFormation changeset "eksctl-update-nodegroup-1638219819" for stack "eksctl-test-set-labels-5-nodegroup-ng-1" | |
2021-11-29 22:03:56 [ℹ] waiting for CloudFormation changeset "eksctl-update-nodegroup-1638219819" for stack "eksctl-test-set-labels-5-nodegroup-ng-1" | |
2021-11-29 22:03:58 [ℹ] waiting for CloudFormation stack "eksctl-test-set-labels-5-nodegroup-ng-1" | |
2021-11-29 22:04:16 [ℹ] waiting for CloudFormation stack "eksctl-test-set-labels-5-nodegroup-ng-1" | |
2021-11-29 22:04:37 [ℹ] waiting for CloudFormation stack "eksctl-test-set-labels-5-nodegroup-ng-1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Context("can add a nodegroup into a new subnet", func() { | |
FIt("creates a new nodegroup", func() { | |
cfg := &api.ClusterConfig{ | |
Metadata: &api.ClusterMeta{ | |
Name: params.ClusterName, | |
Region: params.Region, | |
}, | |
} | |
ctl, err := eks.New(&api.ProviderConfig{Region: params.Region}, cfg) | |
Expect(err).NotTo(HaveOccurred()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 | |
kind: Kustomization | |
metadata: | |
creationTimestamp: null | |
name: pctl-profile-dependson-nginx-nginx-chart | |
namespace: default | |
spec: | |
dependsOn: | |
- name: pctl-profile-dependson-nginx-dependon | |
namespace: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Deals with the following formats: | |
// image/tag:v1.0.0 | |
// 123.123.123.123:123/image/tag:v1.0.0 | |
// your-domain.com/image/tag | |
// your-domain.com/image/tag:v1.1.1-patch1 | |
// image/tag | |
// image | |
// image:v1.1.1-patch | |
// ubuntu@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2 | |
// etc... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// going with the transpose / reverse solution | |
func rotate(matrix [][]int) { | |
n := len(matrix); | |
for i := 0; i<n; i++ { | |
for j := i + 1; j < n; j++ { | |
matrix[i][j], matrix[j][i] = matrix[j][i], matrix[i][j] | |
} | |
} | |
for i := 0; i<n; i++ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func isValidSudoku(board [][]byte) bool { | |
var colV [9][9]int | |
var rowV [9][9]int | |
var boxV [9][9]int | |
for row := 0; row < 9; row++ { | |
for col := 0; col < 9; col++ { | |
value := board[row][col] - '0' | |
if value > 0 && value <= 9 { | |
if rowV[row][value-1] != 0 || colV[col][value-1] != 0 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func longestPalindrome(s string) string { | |
if len(s) < 1 { | |
return "" | |
} | |
start := 0 | |
end := 0 | |
for i := 0; i < len(s); i++ { | |
len1 := expandAroundCenter(s, i, i) | |
len2 := expandAroundCenter(s, i, i+1) | |
len := int(math.Max(float64(len1), float64(len2))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tree | |
import ( | |
"errors" | |
"sort" | |
) | |
type Record struct { | |
ID int | |
Parent int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"crypto/tls" | |
"encoding/xml" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"net/http" |